Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/internal/styles/typography/mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
@mixin font-body-m {
font-size: awsui.$font-size-body-m;
line-height: awsui.$line-height-body-m;
letter-spacing: awsui.$letter-spacing-body-m;
}

@mixin font-heading-xs($weight: true, $family: true) {
Expand Down
7 changes: 7 additions & 0 deletions style-dictionary/one-theme/typography.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,27 @@ const tokens: StyleDictionary.DensityTypographyDictionary = {
fontSizeHeadingXl: '24px',
lineHeightHeadingXl: '30px',
fontWeightHeadingXl: '500',
letterSpacingHeadingXl: '-0.015em',

fontSizeHeadingL: '20px',
lineHeightHeadingL: '24px',
fontWeightHeadingL: '500',
letterSpacingHeadingL: '-0.01em',

fontSizeHeadingM: '18px',
lineHeightHeadingM: '22px',
fontWeightHeadingM: '500',
letterSpacingHeadingM: '-0.005em',

fontSizeHeadingS: '16px',
lineHeightHeadingS: '20px',
fontWeightHeadingS: '500',
letterSpacingHeadingS: 'normal',

fontSizeHeadingXs: '14px',
lineHeightHeadingXs: '20px',
fontWeightHeadingXs: '500',
letterSpacingHeadingXs: '0.005em',

fontWeightDisplayL: '500',
fontWeightDisplayXl: '400',
Expand All @@ -51,6 +56,8 @@ const tokens: StyleDictionary.DensityTypographyDictionary = {

// ── Body text ─────────────────────────────────────────────────────────────
fontWeightBold: '600',
letterSpacingBodyM: '0.005em',
letterSpacingBodyS: '0.01em',

// ── Key-value pairs ───────────────────────────────────────────────────────
fontWeightKeyValuePairsLabel: '400',
Expand Down
1 change: 1 addition & 0 deletions style-dictionary/utils/token-names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,7 @@ export type TypographyTokenName =
| 'fontWeightNormal'
| 'fontWeightTabs'
| 'fontWeightTabsDisabled'
| 'letterSpacingBodyM'
| 'letterSpacingBodyS'
| 'letterSpacingDisplayL'
| 'letterSpacingDisplayXl'
Expand Down
5 changes: 5 additions & 0 deletions style-dictionary/visual-refresh/metadata/typography.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ const metadata: StyleDictionary.MetadataIndex = {
themeable: true,
public: true,
},
letterSpacingBodyM: {
description: 'The default letter spacing for regular body text.',
themeable: true,
public: true,
},
letterSpacingBodyS: {
description: 'The default letter spacing for small body text.',
},
Expand Down
1 change: 1 addition & 0 deletions style-dictionary/visual-refresh/typography.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const tokens: StyleDictionary.TypographyDictionary = {
fontWeightNormal: '400',
fontWeightTabs: '700',
fontWeightTabsDisabled: '{fontWayfindingLinkActiveWeight}',
letterSpacingBodyM: 'normal',
letterSpacingBodyS: '0.005em',
letterSpacingDisplayL: '-0.03em',
letterSpacingDisplayXl: '-0.03em',
Expand Down
Loading