@atlaskit/tokens 1.26.1 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +114 -0
- package/dist/cjs/artifacts/atlassian-dark-token-value-for-contrast-check.js +2 -2
- package/dist/cjs/artifacts/palettes-raw/palette.js +77 -77
- package/dist/cjs/artifacts/theme-import-map.js +1 -13
- package/dist/cjs/artifacts/themes/atlassian-dark-increased-contrast.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-dark.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-light-increased-contrast.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-light.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-typography-minor3.js +2 -2
- package/dist/cjs/artifacts/token-default-values.js +101 -101
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +115 -115
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +115 -115
- package/dist/cjs/artifacts/tokens-raw/atlassian-light-increased-contrast.js +124 -124
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +109 -109
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-adg3.js +17 -9
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-minor3.js +17 -9
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +17 -9
- package/dist/cjs/get-token-value.js +1 -1
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/theme-config.js +1 -25
- package/dist/cjs/utils/get-theme-preferences.js +0 -13
- package/dist/es2019/artifacts/atlassian-dark-token-value-for-contrast-check.js +2 -2
- package/dist/es2019/artifacts/palettes-raw/palette.js +77 -77
- package/dist/es2019/artifacts/theme-import-map.js +1 -5
- package/dist/es2019/artifacts/themes/atlassian-dark-increased-contrast.js +115 -115
- package/dist/es2019/artifacts/themes/atlassian-dark.js +109 -109
- package/dist/es2019/artifacts/themes/atlassian-light-increased-contrast.js +124 -124
- package/dist/es2019/artifacts/themes/atlassian-light.js +101 -101
- package/dist/es2019/artifacts/themes/atlassian-typography-minor3.js +7 -1
- package/dist/es2019/artifacts/token-default-values.js +101 -101
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +115 -115
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +115 -115
- package/dist/es2019/artifacts/tokens-raw/atlassian-light-increased-contrast.js +124 -124
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +109 -109
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +17 -9
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-minor3.js +17 -9
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +17 -9
- package/dist/es2019/get-token-value.js +1 -1
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/theme-config.js +1 -25
- package/dist/es2019/utils/get-theme-preferences.js +0 -13
- package/dist/esm/artifacts/atlassian-dark-token-value-for-contrast-check.js +2 -2
- package/dist/esm/artifacts/palettes-raw/palette.js +77 -77
- package/dist/esm/artifacts/theme-import-map.js +1 -9
- package/dist/esm/artifacts/themes/atlassian-dark-increased-contrast.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-dark.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-light-increased-contrast.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-light.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-typography-minor3.js +2 -2
- package/dist/esm/artifacts/token-default-values.js +101 -101
- package/dist/esm/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +115 -115
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +115 -115
- package/dist/esm/artifacts/tokens-raw/atlassian-light-increased-contrast.js +124 -124
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +109 -109
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +17 -9
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-minor3.js +17 -9
- package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +17 -9
- package/dist/esm/get-token-value.js +1 -1
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/theme-config.js +1 -25
- package/dist/esm/utils/get-theme-preferences.js +0 -13
- package/dist/types/artifacts/atlassian-dark-token-value-for-contrast-check.d.ts +2 -2
- package/dist/types/artifacts/palettes-raw/palette.d.ts +1 -1
- package/dist/types/artifacts/theme-import-map.d.ts +1 -1
- package/dist/types/artifacts/themes/atlassian-dark-increased-contrast.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-dark.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-light-increased-contrast.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-light.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-typography-minor3.d.ts +2 -2
- package/dist/types/artifacts/token-default-values.d.ts +101 -101
- package/dist/types/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +36 -1
- package/dist/types/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +36 -1
- package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +36 -1
- package/dist/types/theme-config.d.ts +4 -4
- package/dist/types/types.d.ts +10 -3
- package/dist/types-ts4.5/artifacts/atlassian-dark-token-value-for-contrast-check.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/palettes-raw/palette.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/theme-import-map.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/themes/atlassian-dark-increased-contrast.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-dark.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-light-increased-contrast.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-light.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography-minor3.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/token-default-values.d.ts +101 -101
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +36 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +36 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +36 -1
- package/dist/types-ts4.5/theme-config.d.ts +4 -8
- package/dist/types-ts4.5/types.d.ts +10 -3
- package/figma/atlassian-dark-increased-contrast.json +114 -114
- package/figma/atlassian-dark.json +108 -108
- package/figma/atlassian-light-increased-contrast.json +123 -123
- package/figma/atlassian-light.json +100 -100
- package/package.json +1 -4
- package/report.api.md +59 -20
- package/tmp/api-report-tmp.d.ts +53 -7
- package/dist/cjs/artifacts/palettes-raw/updated-saturated-palette.js +0 -2257
- package/dist/cjs/artifacts/themes/atlassian-dark-saturated-palette-changes.js +0 -12
- package/dist/cjs/artifacts/themes/atlassian-light-saturated-palette-changes.js +0 -12
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.js +0 -8683
- package/dist/cjs/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.js +0 -8645
- package/dist/es2019/artifacts/palettes-raw/updated-saturated-palette.js +0 -2251
- package/dist/es2019/artifacts/themes/atlassian-dark-saturated-palette-changes.js +0 -399
- package/dist/es2019/artifacts/themes/atlassian-light-saturated-palette-changes.js +0 -399
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.js +0 -8677
- package/dist/es2019/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.js +0 -8639
- package/dist/esm/artifacts/palettes-raw/updated-saturated-palette.js +0 -2251
- package/dist/esm/artifacts/themes/atlassian-dark-saturated-palette-changes.js +0 -6
- package/dist/esm/artifacts/themes/atlassian-light-saturated-palette-changes.js +0 -6
- package/dist/esm/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.js +0 -8677
- package/dist/esm/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.js +0 -8639
- package/dist/types/artifacts/palettes-raw/updated-saturated-palette.d.ts +0 -41
- package/dist/types/artifacts/themes/atlassian-dark-saturated-palette-changes.d.ts +0 -7
- package/dist/types/artifacts/themes/atlassian-light-saturated-palette-changes.d.ts +0 -7
- package/dist/types/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.d.ts +0 -109
- package/dist/types/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.d.ts +0 -89
- package/dist/types-ts4.5/artifacts/palettes-raw/updated-saturated-palette.d.ts +0 -41
- package/dist/types-ts4.5/artifacts/themes/atlassian-dark-saturated-palette-changes.d.ts +0 -7
- package/dist/types-ts4.5/artifacts/themes/atlassian-light-saturated-palette-changes.d.ts +0 -7
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.d.ts +0 -109
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.d.ts +0 -89
- package/figma/atlassian-dark-saturated-palette-changes.json +0 -3540
- package/figma/atlassian-light-saturated-palette-changes.json +0 -3519
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tokens",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.28.0",
|
|
4
4
|
"description": "Design tokens are the single source of truth to name and store design decisions.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -113,9 +113,6 @@
|
|
|
113
113
|
"platform.design-system-team.border-checkbox_nyoiu": {
|
|
114
114
|
"type": "boolean"
|
|
115
115
|
},
|
|
116
|
-
"platform.design-system-team.saturated-palette-changes_asoro": {
|
|
117
|
-
"type": "boolean"
|
|
118
|
-
},
|
|
119
116
|
"platform.design-system-team.increased-contrast-themes": {
|
|
120
117
|
"type": "boolean"
|
|
121
118
|
}
|
package/report.api.md
CHANGED
|
@@ -1038,7 +1038,7 @@ type ExtensionThemeId = ThemeIds;
|
|
|
1038
1038
|
type FlattenKeys<T, Prefix extends string = ''> = {
|
|
1039
1039
|
[Key in keyof T]: T[Key] extends object
|
|
1040
1040
|
? T[Key] extends {
|
|
1041
|
-
value:
|
|
1041
|
+
value: any;
|
|
1042
1042
|
}
|
|
1043
1043
|
? `${Prefix}${Key & string}`
|
|
1044
1044
|
: `${Prefix}${Key & string}.${FlattenKeys<T[Key]>}`
|
|
@@ -1574,8 +1574,7 @@ type Palettes =
|
|
|
1574
1574
|
| 'legacyPalette'
|
|
1575
1575
|
| 'shapePalette'
|
|
1576
1576
|
| 'spacingScale'
|
|
1577
|
-
| 'typographyPalette'
|
|
1578
|
-
| 'updatedSaturatedPalette';
|
|
1577
|
+
| 'typographyPalette';
|
|
1579
1578
|
|
|
1580
1579
|
// @public (undocumented)
|
|
1581
1580
|
export type RawToken = DesignToken<string, 'raw'>;
|
|
@@ -1583,6 +1582,9 @@ export type RawToken = DesignToken<string, 'raw'>;
|
|
|
1583
1582
|
// @public (undocumented)
|
|
1584
1583
|
type Replacement = InternalTokenIds | InternalTokenIds[];
|
|
1585
1584
|
|
|
1585
|
+
// @public (undocumented)
|
|
1586
|
+
type ResponsiveTypographyTokens = FlattenKeys<TypographyTokenSchema<any>>;
|
|
1587
|
+
|
|
1586
1588
|
// @public
|
|
1587
1589
|
export const setGlobalTheme: (
|
|
1588
1590
|
{
|
|
@@ -1698,8 +1700,6 @@ const themeIdsWithOverrides: readonly [
|
|
|
1698
1700
|
'typography-minor3',
|
|
1699
1701
|
'light-new-input-border',
|
|
1700
1702
|
'dark-new-input-border',
|
|
1701
|
-
'light-saturated-palette-changes',
|
|
1702
|
-
'dark-saturated-palette-changes',
|
|
1703
1703
|
];
|
|
1704
1704
|
|
|
1705
1705
|
// @public
|
|
@@ -1734,16 +1734,12 @@ type ThemeOverrideIds = (typeof themeOverrideIds)[number];
|
|
|
1734
1734
|
const themeOverrideIds: readonly [
|
|
1735
1735
|
'light-new-input-border',
|
|
1736
1736
|
'dark-new-input-border',
|
|
1737
|
-
'light-saturated-palette-changes',
|
|
1738
|
-
'dark-saturated-palette-changes',
|
|
1739
1737
|
];
|
|
1740
1738
|
|
|
1741
1739
|
// @public
|
|
1742
1740
|
type ThemeOverrides =
|
|
1743
1741
|
| 'atlassian-dark-new-input-border'
|
|
1744
|
-
| 'atlassian-
|
|
1745
|
-
| 'atlassian-light-new-input-border'
|
|
1746
|
-
| 'atlassian-light-saturated-palette-changes';
|
|
1742
|
+
| 'atlassian-light-new-input-border';
|
|
1747
1743
|
|
|
1748
1744
|
// @public
|
|
1749
1745
|
export type Themes =
|
|
@@ -2313,6 +2309,15 @@ type TokenState =
|
|
|
2313
2309
|
| DeprecatedTokenState
|
|
2314
2310
|
| ExperimentalTokenState;
|
|
2315
2311
|
|
|
2312
|
+
// @public (undocumented)
|
|
2313
|
+
interface TypographyDesignToken<TValue>
|
|
2314
|
+
extends DesignToken<TValue, 'typography'> {
|
|
2315
|
+
// (undocumented)
|
|
2316
|
+
attributes: DesignToken<TValue, 'typography'>['attributes'] & {
|
|
2317
|
+
responsiveSmallerVariant?: ResponsiveTypographyTokens;
|
|
2318
|
+
};
|
|
2319
|
+
}
|
|
2320
|
+
|
|
2316
2321
|
// @public
|
|
2317
2322
|
export type TypographyToken<
|
|
2318
2323
|
TPalette extends {
|
|
@@ -2321,18 +2326,52 @@ export type TypographyToken<
|
|
|
2321
2326
|
lineHeight: string;
|
|
2322
2327
|
fontFamily: string;
|
|
2323
2328
|
letterSpacing: string;
|
|
2329
|
+
responsiveToken?: string;
|
|
2324
2330
|
},
|
|
2325
|
-
> =
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2331
|
+
> = TypographyDesignToken<{
|
|
2332
|
+
fontStyle: 'normal';
|
|
2333
|
+
fontWeight: TPalette['fontWeight'];
|
|
2334
|
+
fontFamily: FlattenKeys<FontFamilyTokenSchema<any>>;
|
|
2335
|
+
fontSize: TPalette['fontSize'];
|
|
2336
|
+
lineHeight: TPalette['lineHeight'];
|
|
2337
|
+
letterSpacing: TPalette['letterSpacing'];
|
|
2338
|
+
}>;
|
|
2339
|
+
|
|
2340
|
+
// @public
|
|
2341
|
+
interface TypographyTokenSchema<
|
|
2342
|
+
TPalette extends {
|
|
2343
|
+
fontWeight: string;
|
|
2344
|
+
fontSize: string;
|
|
2345
|
+
lineHeight: string;
|
|
2346
|
+
fontFamily: string;
|
|
2347
|
+
letterSpacing: string;
|
|
2333
2348
|
},
|
|
2334
|
-
|
|
2335
|
-
|
|
2349
|
+
> {
|
|
2350
|
+
// (undocumented)
|
|
2351
|
+
font: {
|
|
2352
|
+
heading: {
|
|
2353
|
+
xxlarge: TypographyToken<TPalette>;
|
|
2354
|
+
xlarge: TypographyToken<TPalette>;
|
|
2355
|
+
large: TypographyToken<TPalette>;
|
|
2356
|
+
medium: TypographyToken<TPalette>;
|
|
2357
|
+
small: TypographyToken<TPalette>;
|
|
2358
|
+
xsmall: TypographyToken<TPalette>;
|
|
2359
|
+
xxsmall: TypographyToken<TPalette>;
|
|
2360
|
+
};
|
|
2361
|
+
ui: {
|
|
2362
|
+
'[default]': TypographyToken<TPalette>;
|
|
2363
|
+
small: TypographyToken<TPalette>;
|
|
2364
|
+
};
|
|
2365
|
+
body: {
|
|
2366
|
+
'[default]': TypographyToken<TPalette>;
|
|
2367
|
+
small: TypographyToken<TPalette>;
|
|
2368
|
+
large: TypographyToken<TPalette>;
|
|
2369
|
+
};
|
|
2370
|
+
code: {
|
|
2371
|
+
'[default]': TypographyToken<TPalette>;
|
|
2372
|
+
};
|
|
2373
|
+
};
|
|
2374
|
+
}
|
|
2336
2375
|
|
|
2337
2376
|
// @public
|
|
2338
2377
|
export const useThemeObserver: () => Partial<ActiveThemeState>;
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -558,7 +558,7 @@ type ExtensionThemeId = ThemeIds;
|
|
|
558
558
|
// @public (undocumented)
|
|
559
559
|
type FlattenKeys<T, Prefix extends string = ''> = {
|
|
560
560
|
[Key in keyof T]: T[Key] extends object ? T[Key] extends {
|
|
561
|
-
value:
|
|
561
|
+
value: any;
|
|
562
562
|
} ? `${Prefix}${Key & string}` : `${Prefix}${Key & string}.${FlattenKeys<T[Key]>}` : `${Prefix}.${Key & string}`;
|
|
563
563
|
}[keyof T];
|
|
564
564
|
|
|
@@ -608,7 +608,7 @@ export type OpacityToken = DesignToken<string, 'opacity'>;
|
|
|
608
608
|
export type PaintToken<BaseToken> = DesignToken<BaseToken, 'paint'>;
|
|
609
609
|
|
|
610
610
|
// @public
|
|
611
|
-
type Palettes = 'defaultPalette' | 'legacyPalette' | 'shapePalette' | 'spacingScale' | 'typographyPalette'
|
|
611
|
+
type Palettes = 'defaultPalette' | 'legacyPalette' | 'shapePalette' | 'spacingScale' | 'typographyPalette';
|
|
612
612
|
|
|
613
613
|
// @public (undocumented)
|
|
614
614
|
export type RawToken = DesignToken<string, 'raw'>;
|
|
@@ -616,6 +616,9 @@ export type RawToken = DesignToken<string, 'raw'>;
|
|
|
616
616
|
// @public (undocumented)
|
|
617
617
|
type Replacement = InternalTokenIds | InternalTokenIds[];
|
|
618
618
|
|
|
619
|
+
// @public (undocumented)
|
|
620
|
+
type ResponsiveTypographyTokens = FlattenKeys<TypographyTokenSchema<any>>;
|
|
621
|
+
|
|
619
622
|
// @public
|
|
620
623
|
export const setGlobalTheme: ({ colorMode, contrastMode, dark, light, shape, spacing, typography, UNSAFE_themeOptions, }?: Partial<ThemeState>, themeLoader?: ((id: ThemeIdsWithOverrides) => Promise<void> | void) | undefined) => Promise<UnbindFn>;
|
|
621
624
|
|
|
@@ -685,7 +688,7 @@ const themeIds: readonly ["light-increased-contrast", "light", "dark", "dark-inc
|
|
|
685
688
|
type ThemeIdsWithOverrides = (typeof themeIdsWithOverrides)[number];
|
|
686
689
|
|
|
687
690
|
// @public (undocumented)
|
|
688
|
-
const themeIdsWithOverrides: readonly ["light-increased-contrast", "light", "dark", "dark-increased-contrast", "legacy-light", "legacy-dark", "spacing", "typography", "shape", "typography-adg3", "typography-minor3", "light-new-input-border", "dark-new-input-border"
|
|
691
|
+
const themeIdsWithOverrides: readonly ["light-increased-contrast", "light", "dark", "dark-increased-contrast", "legacy-light", "legacy-dark", "spacing", "typography", "shape", "typography-adg3", "typography-minor3", "light-new-input-border", "dark-new-input-border"];
|
|
689
692
|
|
|
690
693
|
// @public
|
|
691
694
|
type ThemeKinds = 'color' | 'shape' | 'spacing' | 'typography';
|
|
@@ -716,10 +719,10 @@ export interface ThemeOptionsSchema {
|
|
|
716
719
|
type ThemeOverrideIds = (typeof themeOverrideIds)[number];
|
|
717
720
|
|
|
718
721
|
// @public
|
|
719
|
-
const themeOverrideIds: readonly ["light-new-input-border", "dark-new-input-border"
|
|
722
|
+
const themeOverrideIds: readonly ["light-new-input-border", "dark-new-input-border"];
|
|
720
723
|
|
|
721
724
|
// @public
|
|
722
|
-
type ThemeOverrides = 'atlassian-dark-new-input-border' | 'atlassian-
|
|
725
|
+
type ThemeOverrides = 'atlassian-dark-new-input-border' | 'atlassian-light-new-input-border';
|
|
723
726
|
|
|
724
727
|
// @public
|
|
725
728
|
export type Themes = 'atlassian-dark' | 'atlassian-dark-increased-contrast' | 'atlassian-legacy-dark' | 'atlassian-legacy-light' | 'atlassian-light' | 'atlassian-light-increased-contrast' | 'atlassian-shape' | 'atlassian-spacing' | 'atlassian-typography' | 'atlassian-typography-adg3' | 'atlassian-typography-minor3';
|
|
@@ -1252,6 +1255,14 @@ type Tokens_2 = typeof tokens;
|
|
|
1252
1255
|
// @public (undocumented)
|
|
1253
1256
|
type TokenState = ActiveTokenState | DeletedTokenState | DeprecatedTokenState | ExperimentalTokenState;
|
|
1254
1257
|
|
|
1258
|
+
// @public (undocumented)
|
|
1259
|
+
interface TypographyDesignToken<TValue> extends DesignToken<TValue, 'typography'> {
|
|
1260
|
+
// (undocumented)
|
|
1261
|
+
attributes: DesignToken<TValue, 'typography'>['attributes'] & {
|
|
1262
|
+
responsiveSmallerVariant?: ResponsiveTypographyTokens;
|
|
1263
|
+
};
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1255
1266
|
// @public
|
|
1256
1267
|
export type TypographyToken<TPalette extends {
|
|
1257
1268
|
fontWeight: string;
|
|
@@ -1259,14 +1270,49 @@ export type TypographyToken<TPalette extends {
|
|
|
1259
1270
|
lineHeight: string;
|
|
1260
1271
|
fontFamily: string;
|
|
1261
1272
|
letterSpacing: string;
|
|
1262
|
-
|
|
1273
|
+
responsiveToken?: string;
|
|
1274
|
+
}> = TypographyDesignToken<{
|
|
1263
1275
|
fontStyle: 'normal';
|
|
1264
1276
|
fontWeight: TPalette['fontWeight'];
|
|
1265
1277
|
fontFamily: FlattenKeys<FontFamilyTokenSchema<any>>;
|
|
1266
1278
|
fontSize: TPalette['fontSize'];
|
|
1267
1279
|
lineHeight: TPalette['lineHeight'];
|
|
1268
1280
|
letterSpacing: TPalette['letterSpacing'];
|
|
1269
|
-
}
|
|
1281
|
+
}>;
|
|
1282
|
+
|
|
1283
|
+
// @public
|
|
1284
|
+
interface TypographyTokenSchema<TPalette extends {
|
|
1285
|
+
fontWeight: string;
|
|
1286
|
+
fontSize: string;
|
|
1287
|
+
lineHeight: string;
|
|
1288
|
+
fontFamily: string;
|
|
1289
|
+
letterSpacing: string;
|
|
1290
|
+
}> {
|
|
1291
|
+
// (undocumented)
|
|
1292
|
+
font: {
|
|
1293
|
+
heading: {
|
|
1294
|
+
xxlarge: TypographyToken<TPalette>;
|
|
1295
|
+
xlarge: TypographyToken<TPalette>;
|
|
1296
|
+
large: TypographyToken<TPalette>;
|
|
1297
|
+
medium: TypographyToken<TPalette>;
|
|
1298
|
+
small: TypographyToken<TPalette>;
|
|
1299
|
+
xsmall: TypographyToken<TPalette>;
|
|
1300
|
+
xxsmall: TypographyToken<TPalette>;
|
|
1301
|
+
};
|
|
1302
|
+
ui: {
|
|
1303
|
+
'[default]': TypographyToken<TPalette>;
|
|
1304
|
+
small: TypographyToken<TPalette>;
|
|
1305
|
+
};
|
|
1306
|
+
body: {
|
|
1307
|
+
'[default]': TypographyToken<TPalette>;
|
|
1308
|
+
small: TypographyToken<TPalette>;
|
|
1309
|
+
large: TypographyToken<TPalette>;
|
|
1310
|
+
};
|
|
1311
|
+
code: {
|
|
1312
|
+
'[default]': TypographyToken<TPalette>;
|
|
1313
|
+
};
|
|
1314
|
+
};
|
|
1315
|
+
}
|
|
1270
1316
|
|
|
1271
1317
|
// @public
|
|
1272
1318
|
export const useThemeObserver: () => Partial<ActiveThemeState>;
|