@atlaskit/tokens 1.14.2 → 1.15.1
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 +12 -0
- package/dist/cjs/artifacts/atlassian-dark-token-value-for-contrast-check.js +2 -2
- package/dist/cjs/artifacts/atlassian-light-token-value-for-contrast-check.js +2 -2
- package/dist/cjs/artifacts/palettes-raw/typography-palette.js +313 -43
- package/dist/cjs/artifacts/theme-import-map.js +16 -4
- package/dist/cjs/artifacts/themes/atlassian-typography-adg3.js +13 -0
- package/dist/cjs/artifacts/themes/atlassian-typography-minor3.js +13 -0
- package/dist/cjs/artifacts/themes/atlassian-typography.js +2 -2
- package/dist/cjs/artifacts/token-default-values.js +23 -2
- package/dist/cjs/artifacts/token-names.js +22 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-adg3.js +1084 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-minor3.js +666 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +465 -253
- package/dist/cjs/entry-points/tokens-raw.js +2 -2
- package/dist/cjs/get-token-value.js +1 -1
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/palettes/typography-palette.js +133 -16
- package/dist/cjs/theme-config.js +20 -4
- package/dist/cjs/tokens/atlassian-typography/font-family.js +11 -2
- package/dist/cjs/tokens/atlassian-typography/letter-spacing.js +29 -0
- package/dist/cjs/tokens/atlassian-typography/theme.js +140 -0
- package/dist/cjs/tokens/atlassian-typography-adg3/font-family.js +29 -0
- package/dist/cjs/tokens/{atlassian-typography → atlassian-typography-adg3}/font-size.js +8 -8
- package/dist/cjs/tokens/{atlassian-typography → atlassian-typography-adg3}/font-weight.js +4 -4
- package/dist/cjs/tokens/atlassian-typography-adg3/letter-spacing.js +29 -0
- package/dist/cjs/tokens/{atlassian-typography → atlassian-typography-adg3}/line-height.js +4 -1
- package/dist/cjs/tokens/atlassian-typography-adg3/theme.js +140 -0
- package/dist/cjs/tokens/atlassian-typography-minor3/font-family.js +29 -0
- package/dist/cjs/tokens/atlassian-typography-minor3/letter-spacing.js +29 -0
- package/dist/cjs/tokens/atlassian-typography-minor3/theme.js +140 -0
- package/dist/cjs/tokens/default/typography/font-family.js +24 -0
- package/dist/cjs/tokens/default/typography/font.js +133 -0
- package/dist/cjs/tokens/default/typography/letter-spacing.js +54 -0
- package/dist/cjs/tokens/default/typography/line-height.js +8 -0
- package/dist/es2019/artifacts/atlassian-dark-token-value-for-contrast-check.js +2 -2
- package/dist/es2019/artifacts/atlassian-light-token-value-for-contrast-check.js +2 -2
- package/dist/es2019/artifacts/palettes-raw/typography-palette.js +313 -43
- package/dist/es2019/artifacts/theme-import-map.js +8 -4
- package/dist/es2019/artifacts/themes/atlassian-typography-adg3.js +50 -0
- package/dist/es2019/artifacts/themes/atlassian-typography-minor3.js +31 -0
- package/dist/es2019/artifacts/themes/atlassian-typography.js +23 -21
- package/dist/es2019/artifacts/token-default-values.js +23 -2
- package/dist/es2019/artifacts/token-names.js +22 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +1077 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-minor3.js +659 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +465 -253
- package/dist/es2019/entry-points/tokens-raw.js +1 -1
- package/dist/es2019/get-token-value.js +1 -1
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/palettes/typography-palette.js +135 -17
- package/dist/es2019/theme-config.js +20 -4
- package/dist/es2019/tokens/atlassian-typography/font-family.js +11 -2
- package/dist/es2019/tokens/atlassian-typography/letter-spacing.js +22 -0
- package/dist/es2019/tokens/atlassian-typography/theme.js +133 -0
- package/dist/es2019/tokens/atlassian-typography-adg3/font-family.js +22 -0
- package/dist/es2019/tokens/atlassian-typography-adg3/font-size.js +31 -0
- package/dist/es2019/tokens/atlassian-typography-adg3/font-weight.js +19 -0
- package/dist/es2019/tokens/atlassian-typography-adg3/letter-spacing.js +22 -0
- package/dist/es2019/tokens/{atlassian-typography → atlassian-typography-adg3}/line-height.js +4 -1
- package/dist/es2019/tokens/atlassian-typography-adg3/theme.js +133 -0
- package/dist/es2019/tokens/atlassian-typography-minor3/font-family.js +22 -0
- package/dist/es2019/tokens/atlassian-typography-minor3/letter-spacing.js +22 -0
- package/dist/es2019/tokens/atlassian-typography-minor3/theme.js +133 -0
- package/dist/es2019/tokens/default/typography/font-family.js +24 -0
- package/dist/es2019/tokens/default/typography/font.js +126 -0
- package/dist/es2019/tokens/default/typography/letter-spacing.js +47 -0
- package/dist/es2019/tokens/default/typography/line-height.js +8 -0
- package/dist/esm/artifacts/atlassian-dark-token-value-for-contrast-check.js +2 -2
- package/dist/esm/artifacts/atlassian-light-token-value-for-contrast-check.js +2 -2
- package/dist/esm/artifacts/palettes-raw/typography-palette.js +313 -43
- package/dist/esm/artifacts/theme-import-map.js +12 -4
- package/dist/esm/artifacts/themes/atlassian-typography-adg3.js +6 -0
- package/dist/esm/artifacts/themes/atlassian-typography-minor3.js +6 -0
- package/dist/esm/artifacts/themes/atlassian-typography.js +2 -2
- package/dist/esm/artifacts/token-default-values.js +23 -2
- package/dist/esm/artifacts/token-names.js +22 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +1077 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-minor3.js +659 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +465 -253
- package/dist/esm/entry-points/tokens-raw.js +1 -1
- package/dist/esm/get-token-value.js +1 -1
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/palettes/typography-palette.js +133 -16
- package/dist/esm/theme-config.js +20 -4
- package/dist/esm/tokens/atlassian-typography/font-family.js +11 -2
- package/dist/esm/tokens/atlassian-typography/letter-spacing.js +22 -0
- package/dist/esm/tokens/atlassian-typography/theme.js +133 -0
- package/dist/esm/tokens/atlassian-typography-adg3/font-family.js +22 -0
- package/dist/esm/tokens/atlassian-typography-adg3/font-size.js +31 -0
- package/dist/esm/tokens/atlassian-typography-adg3/font-weight.js +19 -0
- package/dist/esm/tokens/atlassian-typography-adg3/letter-spacing.js +22 -0
- package/dist/esm/tokens/{atlassian-typography → atlassian-typography-adg3}/line-height.js +4 -1
- package/dist/esm/tokens/atlassian-typography-adg3/theme.js +133 -0
- package/dist/esm/tokens/atlassian-typography-minor3/font-family.js +22 -0
- package/dist/esm/tokens/atlassian-typography-minor3/letter-spacing.js +22 -0
- package/dist/esm/tokens/atlassian-typography-minor3/theme.js +133 -0
- package/dist/esm/tokens/default/typography/font-family.js +24 -0
- package/dist/esm/tokens/default/typography/font.js +126 -0
- package/dist/esm/tokens/default/typography/letter-spacing.js +47 -0
- package/dist/esm/tokens/default/typography/line-height.js +8 -0
- package/dist/types/artifacts/atlassian-dark-token-value-for-contrast-check.d.ts +2 -2
- package/dist/types/artifacts/atlassian-light-token-value-for-contrast-check.d.ts +2 -2
- package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +1 -1
- package/dist/types/artifacts/theme-import-map.d.ts +1 -1
- package/dist/types/artifacts/themes/atlassian-typography-adg3.d.ts +7 -0
- package/dist/types/artifacts/themes/atlassian-typography-minor3.d.ts +7 -0
- package/dist/types/artifacts/themes/atlassian-typography.d.ts +2 -2
- package/dist/types/artifacts/token-default-values.d.ts +23 -2
- package/dist/types/artifacts/token-names.d.ts +43 -1
- package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +101 -0
- package/dist/types/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +137 -0
- package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +111 -3
- package/dist/types/artifacts/types-internal.d.ts +2 -2
- package/dist/types/artifacts/types.d.ts +2 -2
- package/dist/types/entry-points/tokens-raw.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/palettes/typography-palette.d.ts +8 -6
- package/dist/types/theme-config.d.ts +4 -4
- package/dist/types/tokens/atlassian-typography/letter-spacing.d.ts +4 -0
- package/dist/types/tokens/atlassian-typography/theme.d.ts +10 -0
- package/dist/types/tokens/atlassian-typography-adg3/font-family.d.ts +4 -0
- package/dist/types/tokens/atlassian-typography-adg3/letter-spacing.d.ts +4 -0
- package/dist/types/tokens/atlassian-typography-adg3/theme.d.ts +10 -0
- package/dist/types/tokens/atlassian-typography-minor3/font-family.d.ts +4 -0
- package/dist/types/tokens/atlassian-typography-minor3/letter-spacing.d.ts +4 -0
- package/dist/types/tokens/atlassian-typography-minor3/theme.d.ts +10 -0
- package/dist/types/tokens/default/typography/font.d.ts +20 -0
- package/dist/types/tokens/default/typography/letter-spacing.d.ts +4 -0
- package/dist/types/types.d.ts +111 -22
- package/dist/types-ts4.5/artifacts/atlassian-dark-token-value-for-contrast-check.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/atlassian-light-token-value-for-contrast-check.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/palettes-raw/typography-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-typography-adg3.d.ts +7 -0
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography-minor3.d.ts +7 -0
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/token-default-values.d.ts +23 -2
- package/dist/types-ts4.5/artifacts/token-names.d.ts +43 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +101 -0
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +137 -0
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +111 -3
- package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
- package/dist/types-ts4.5/entry-points/tokens-raw.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/palettes/typography-palette.d.ts +8 -6
- package/dist/types-ts4.5/theme-config.d.ts +7 -3
- package/dist/types-ts4.5/tokens/atlassian-typography/letter-spacing.d.ts +4 -0
- package/dist/types-ts4.5/tokens/atlassian-typography/theme.d.ts +10 -0
- package/dist/types-ts4.5/tokens/atlassian-typography-adg3/font-family.d.ts +4 -0
- package/dist/types-ts4.5/tokens/atlassian-typography-adg3/letter-spacing.d.ts +4 -0
- package/dist/types-ts4.5/tokens/atlassian-typography-adg3/theme.d.ts +10 -0
- package/dist/types-ts4.5/tokens/atlassian-typography-minor3/font-family.d.ts +4 -0
- package/dist/types-ts4.5/tokens/atlassian-typography-minor3/letter-spacing.d.ts +4 -0
- package/dist/types-ts4.5/tokens/atlassian-typography-minor3/theme.d.ts +10 -0
- package/dist/types-ts4.5/tokens/default/typography/font.d.ts +20 -0
- package/dist/types-ts4.5/tokens/default/typography/letter-spacing.d.ts +4 -0
- package/dist/types-ts4.5/types.d.ts +111 -22
- package/figma/atlassian-typography-adg3.json +150 -0
- package/figma/atlassian-typography-minor3.json +51 -0
- package/figma/atlassian-typography.json +19 -82
- package/package.json +1 -2
- package/report.api.md +87 -2
- package/tmp/api-report-tmp.d.ts +65 -7
- package/dist/es2019/tokens/atlassian-typography/font-size.js +0 -31
- package/dist/es2019/tokens/atlassian-typography/font-weight.js +0 -19
- package/dist/esm/tokens/atlassian-typography/font-size.js +0 -31
- package/dist/esm/tokens/atlassian-typography/font-weight.js +0 -19
- /package/dist/types/tokens/{atlassian-typography → atlassian-typography-adg3}/font-size.d.ts +0 -0
- /package/dist/types/tokens/{atlassian-typography → atlassian-typography-adg3}/font-weight.d.ts +0 -0
- /package/dist/types/tokens/{atlassian-typography → atlassian-typography-adg3}/line-height.d.ts +0 -0
- /package/dist/types-ts4.5/tokens/{atlassian-typography → atlassian-typography-adg3}/font-size.d.ts +0 -0
- /package/dist/types-ts4.5/tokens/{atlassian-typography → atlassian-typography-adg3}/font-weight.d.ts +0 -0
- /package/dist/types-ts4.5/tokens/{atlassian-typography → atlassian-typography-adg3}/line-height.d.ts +0 -0
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* These ids are what the actual theme files/folders are called.
|
|
7
7
|
* style-dictionary will attempt to locate these in the file-system.
|
|
8
8
|
*/
|
|
9
|
-
export type Themes = 'atlassian-light' | 'atlassian-dark' | 'atlassian-legacy-light' | 'atlassian-legacy-dark' | 'atlassian-shape' | 'atlassian-spacing' | 'atlassian-typography';
|
|
9
|
+
export type Themes = 'atlassian-light' | 'atlassian-dark' | 'atlassian-legacy-light' | 'atlassian-legacy-dark' | 'atlassian-shape' | 'atlassian-spacing' | 'atlassian-typography' | 'atlassian-typography-minor3' | 'atlassian-typography-adg3';
|
|
10
10
|
export type ThemeFileNames = Themes;
|
|
11
11
|
/**
|
|
12
12
|
* ThemeOverrides: The internal identifier of a theme override. Which are themes that contain
|
|
@@ -36,7 +36,7 @@ export type DataColorModes = Exclude<ThemeColorModes, 'auto'>;
|
|
|
36
36
|
*
|
|
37
37
|
* These ids must be kebab case
|
|
38
38
|
*/
|
|
39
|
-
export declare const themeIds: readonly ["light", "dark", "legacy-light", "legacy-dark", "spacing", "typography", "shape"];
|
|
39
|
+
export declare const themeIds: readonly ["light", "dark", "legacy-light", "legacy-dark", "spacing", "typography", "shape", "typography-adg3", "typography-minor3"];
|
|
40
40
|
export type ThemeIds = (typeof themeIds)[number];
|
|
41
41
|
/**
|
|
42
42
|
* Theme override ids: the equivalent of themeIds for theme overrides.
|
|
@@ -44,7 +44,7 @@ export type ThemeIds = (typeof themeIds)[number];
|
|
|
44
44
|
*/
|
|
45
45
|
export declare const themeOverrideIds: readonly ["light-new-input-border", "dark-new-input-border"];
|
|
46
46
|
export type ThemeOverrideIds = (typeof themeOverrideIds)[number];
|
|
47
|
-
export declare const themeIdsWithOverrides: readonly ["light", "dark", "legacy-light", "legacy-dark", "spacing", "typography", "shape", "light-new-input-border", "dark-new-input-border"];
|
|
47
|
+
export declare const themeIdsWithOverrides: readonly ["light", "dark", "legacy-light", "legacy-dark", "spacing", "typography", "shape", "typography-adg3", "typography-minor3", "light-new-input-border", "dark-new-input-border"];
|
|
48
48
|
export type ThemeIdsWithOverrides = (typeof themeIdsWithOverrides)[number];
|
|
49
49
|
/**
|
|
50
50
|
* Theme to use a base. This will create the theme as
|
|
@@ -94,7 +94,7 @@ export interface ThemeState {
|
|
|
94
94
|
colorMode: ThemeColorModes;
|
|
95
95
|
shape?: Extract<ThemeIds, 'shape'>;
|
|
96
96
|
spacing?: Extract<ThemeIds, 'spacing'>;
|
|
97
|
-
typography?: Extract<ThemeIds, 'typography'>;
|
|
97
|
+
typography?: Extract<ThemeIds, 'typography' | 'typography-adg3' | 'typography-minor3'>;
|
|
98
98
|
UNSAFE_themeOptions?: ThemeOptionsSchema;
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FontFamilyBaseToken, FontSizeBaseToken, FontWeightBaseToken, LetterSpacingBaseToken, LineHeightBaseToken } from '../../palettes/typography-palette';
|
|
2
|
+
import type { TypographyTokenSchema, ValueSchema } from '../../types';
|
|
3
|
+
declare const typography: ValueSchema<TypographyTokenSchema<{
|
|
4
|
+
fontWeight: FontWeightBaseToken;
|
|
5
|
+
fontFamily: FontFamilyBaseToken;
|
|
6
|
+
fontSize: FontSizeBaseToken;
|
|
7
|
+
lineHeight: LineHeightBaseToken;
|
|
8
|
+
letterSpacing: LetterSpacingBaseToken;
|
|
9
|
+
}>>;
|
|
10
|
+
export default typography;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FontFamilyBaseToken, FontSizeBaseToken, FontWeightBaseToken, LetterSpacingBaseToken, LineHeightBaseToken } from '../../palettes/typography-palette';
|
|
2
|
+
import type { TypographyTokenSchema, ValueSchema } from '../../types';
|
|
3
|
+
declare const typography: ValueSchema<TypographyTokenSchema<{
|
|
4
|
+
fontWeight: FontWeightBaseToken;
|
|
5
|
+
fontFamily: FontFamilyBaseToken;
|
|
6
|
+
fontSize: FontSizeBaseToken;
|
|
7
|
+
lineHeight: LineHeightBaseToken;
|
|
8
|
+
letterSpacing: LetterSpacingBaseToken;
|
|
9
|
+
}>>;
|
|
10
|
+
export default typography;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FontFamilyBaseToken, FontSizeBaseToken, FontWeightBaseToken, LetterSpacingBaseToken, LineHeightBaseToken } from '../../palettes/typography-palette';
|
|
2
|
+
import type { TypographyTokenSchema, ValueSchema } from '../../types';
|
|
3
|
+
declare const typography: ValueSchema<TypographyTokenSchema<{
|
|
4
|
+
fontWeight: FontWeightBaseToken;
|
|
5
|
+
fontFamily: FontFamilyBaseToken;
|
|
6
|
+
fontSize: FontSizeBaseToken;
|
|
7
|
+
lineHeight: LineHeightBaseToken;
|
|
8
|
+
letterSpacing: LetterSpacingBaseToken;
|
|
9
|
+
}>>;
|
|
10
|
+
export default typography;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AttributeSchema, TypographyTokenSchema } from '../../../types';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```js
|
|
6
|
+
* {
|
|
7
|
+
* body: {
|
|
8
|
+
* value: {
|
|
9
|
+
* fontWeight: 500,
|
|
10
|
+
* fontSize: "16px",
|
|
11
|
+
* lineHeight: "22px",
|
|
12
|
+
* fontFamily: "Helvetica",
|
|
13
|
+
* fontStyle: "italic"
|
|
14
|
+
* },
|
|
15
|
+
* type: "typography"
|
|
16
|
+
*}
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
declare const font: AttributeSchema<TypographyTokenSchema<any>>;
|
|
20
|
+
export default font;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { InternalTokenIds } from './artifacts/types-internal';
|
|
2
2
|
import type { ShapePaletteToken } from './palettes/shape-palette';
|
|
3
3
|
import type { SpacingPaletteToken } from './palettes/spacing-scale';
|
|
4
|
-
export type Groups = 'raw' | 'paint' | 'shadow' | 'palette' | 'opacity' | 'spacing' | 'shape' | 'typography' | 'fontSize' | 'fontWeight' | 'fontFamily' | 'lineHeight';
|
|
4
|
+
export type Groups = 'raw' | 'paint' | 'shadow' | 'palette' | 'opacity' | 'spacing' | 'shape' | 'typography' | 'fontSize' | 'fontWeight' | 'fontFamily' | 'lineHeight' | 'letterSpacing';
|
|
5
5
|
export type ActiveTokenState = 'active';
|
|
6
6
|
export type DeprecatedTokenState = 'deprecated';
|
|
7
7
|
export type DeletedTokenState = 'deleted';
|
|
@@ -108,7 +108,8 @@ export type FontSizeToken<BaseToken> = DesignToken<BaseToken, 'fontSize'>;
|
|
|
108
108
|
export type FontWeightToken<BaseToken> = DesignToken<BaseToken, 'fontWeight'>;
|
|
109
109
|
export type FontFamilyToken<BaseToken> = DesignToken<BaseToken, 'fontFamily'>;
|
|
110
110
|
export type LineHeightToken<BaseToken> = DesignToken<BaseToken, 'lineHeight'>;
|
|
111
|
-
export type
|
|
111
|
+
export type LetterSpacingToken<BaseToken> = DesignToken<BaseToken, 'letterSpacing'>;
|
|
112
|
+
export type DeprecatedTypographyToken<BaseToken> = DesignToken<BaseToken, 'fontSize' | 'fontWeight' | 'fontFamily' | 'lineHeight' | 'letterSpacing'>;
|
|
112
113
|
export type RawToken = DesignToken<string, 'raw'>;
|
|
113
114
|
export interface PaletteColorTokenSchema<PaletteValues extends string> {
|
|
114
115
|
value: {
|
|
@@ -145,6 +146,9 @@ export interface FontFamilyPaletteTokenSchema<ScaleValues extends string> {
|
|
|
145
146
|
export interface LineHeightScaleTokenSchema<ScaleValues extends string> {
|
|
146
147
|
lineHeight: Record<ScaleValues, TypographySchemaValue>;
|
|
147
148
|
}
|
|
149
|
+
export interface LetterSpacingScaleTokenSchema<ScaleValues extends string> {
|
|
150
|
+
letterSpacing: Record<ScaleValues, TypographySchemaValue>;
|
|
151
|
+
}
|
|
148
152
|
export interface BackgroundColorTokenSchema<BaseToken> {
|
|
149
153
|
color: {
|
|
150
154
|
blanket: {
|
|
@@ -800,6 +804,56 @@ export interface SpacingTokenSchema {
|
|
|
800
804
|
'1000': SpacingToken;
|
|
801
805
|
};
|
|
802
806
|
}
|
|
807
|
+
/**
|
|
808
|
+
* Typography tokens are complex multi-palette ouputs
|
|
809
|
+
*/
|
|
810
|
+
export type TypographyToken<TPalette extends {
|
|
811
|
+
fontWeight: string;
|
|
812
|
+
fontSize: string;
|
|
813
|
+
lineHeight: string;
|
|
814
|
+
fontFamily: string;
|
|
815
|
+
letterSpacing: string;
|
|
816
|
+
}> = DesignToken<{
|
|
817
|
+
fontStyle: 'normal';
|
|
818
|
+
fontWeight: TPalette['fontWeight'];
|
|
819
|
+
fontFamily: TPalette['fontFamily'];
|
|
820
|
+
fontSize: TPalette['fontSize'];
|
|
821
|
+
lineHeight: TPalette['lineHeight'];
|
|
822
|
+
letterSpacing: TPalette['letterSpacing'];
|
|
823
|
+
}, 'typography'>;
|
|
824
|
+
/**
|
|
825
|
+
* The semantic interface for typography tokens
|
|
826
|
+
*/
|
|
827
|
+
export interface TypographyTokenSchema<TPalette extends {
|
|
828
|
+
fontWeight: string;
|
|
829
|
+
fontSize: string;
|
|
830
|
+
lineHeight: string;
|
|
831
|
+
fontFamily: string;
|
|
832
|
+
letterSpacing: string;
|
|
833
|
+
}> {
|
|
834
|
+
font: {
|
|
835
|
+
heading: {
|
|
836
|
+
xxl: TypographyToken<TPalette>;
|
|
837
|
+
xl: TypographyToken<TPalette>;
|
|
838
|
+
lg: TypographyToken<TPalette>;
|
|
839
|
+
md: TypographyToken<TPalette>;
|
|
840
|
+
sm: TypographyToken<TPalette>;
|
|
841
|
+
xs: TypographyToken<TPalette>;
|
|
842
|
+
xxs: TypographyToken<TPalette>;
|
|
843
|
+
};
|
|
844
|
+
ui: {
|
|
845
|
+
'[default]': TypographyToken<TPalette>;
|
|
846
|
+
sm: TypographyToken<TPalette>;
|
|
847
|
+
};
|
|
848
|
+
body: {
|
|
849
|
+
'[default]': TypographyToken<TPalette>;
|
|
850
|
+
sm: TypographyToken<TPalette>;
|
|
851
|
+
};
|
|
852
|
+
code: {
|
|
853
|
+
'[default]': TypographyToken<TPalette>;
|
|
854
|
+
};
|
|
855
|
+
};
|
|
856
|
+
}
|
|
803
857
|
export interface ShapeTokenSchema {
|
|
804
858
|
border: {
|
|
805
859
|
width: {
|
|
@@ -819,47 +873,82 @@ export interface ShapeTokenSchema {
|
|
|
819
873
|
};
|
|
820
874
|
};
|
|
821
875
|
}
|
|
876
|
+
/**
|
|
877
|
+
* @private
|
|
878
|
+
* @deprecated probably
|
|
879
|
+
*/
|
|
822
880
|
export interface FontSizeTokenSchema<BaseToken> {
|
|
823
881
|
font: {
|
|
824
882
|
size: {
|
|
825
|
-
'050':
|
|
826
|
-
'075':
|
|
827
|
-
'100':
|
|
828
|
-
'200':
|
|
829
|
-
'300':
|
|
830
|
-
'400':
|
|
831
|
-
'500':
|
|
832
|
-
'600':
|
|
883
|
+
'050': DeprecatedTypographyToken<BaseToken>;
|
|
884
|
+
'075': DeprecatedTypographyToken<BaseToken>;
|
|
885
|
+
'100': DeprecatedTypographyToken<BaseToken>;
|
|
886
|
+
'200': DeprecatedTypographyToken<BaseToken>;
|
|
887
|
+
'300': DeprecatedTypographyToken<BaseToken>;
|
|
888
|
+
'400': DeprecatedTypographyToken<BaseToken>;
|
|
889
|
+
'500': DeprecatedTypographyToken<BaseToken>;
|
|
890
|
+
'600': DeprecatedTypographyToken<BaseToken>;
|
|
833
891
|
};
|
|
834
892
|
};
|
|
835
893
|
}
|
|
894
|
+
/**
|
|
895
|
+
* @private
|
|
896
|
+
* @deprecated probably
|
|
897
|
+
*/
|
|
836
898
|
export interface FontWeightTokenSchema<BaseToken> {
|
|
837
899
|
font: {
|
|
838
900
|
weight: {
|
|
839
|
-
regular:
|
|
840
|
-
medium:
|
|
841
|
-
semibold:
|
|
842
|
-
bold:
|
|
901
|
+
regular: DeprecatedTypographyToken<BaseToken>;
|
|
902
|
+
medium: DeprecatedTypographyToken<BaseToken>;
|
|
903
|
+
semibold: DeprecatedTypographyToken<BaseToken>;
|
|
904
|
+
bold: DeprecatedTypographyToken<BaseToken>;
|
|
843
905
|
};
|
|
844
906
|
};
|
|
845
907
|
}
|
|
846
908
|
export interface FontFamilyTokenSchema<BaseToken> {
|
|
847
909
|
font: {
|
|
848
910
|
family: {
|
|
849
|
-
|
|
850
|
-
|
|
911
|
+
/**
|
|
912
|
+
* @private
|
|
913
|
+
* @deprecated
|
|
914
|
+
*/
|
|
915
|
+
sans: DeprecatedTypographyToken<BaseToken>;
|
|
916
|
+
/**
|
|
917
|
+
* @private
|
|
918
|
+
* @deprecated
|
|
919
|
+
*/
|
|
920
|
+
monospace: DeprecatedTypographyToken<BaseToken>;
|
|
921
|
+
product: DeprecatedTypographyToken<BaseToken>;
|
|
922
|
+
brand: DeprecatedTypographyToken<BaseToken>;
|
|
923
|
+
code: DeprecatedTypographyToken<BaseToken>;
|
|
851
924
|
};
|
|
852
925
|
};
|
|
853
926
|
}
|
|
927
|
+
/**
|
|
928
|
+
* @private
|
|
929
|
+
* @deprecated probably
|
|
930
|
+
*/
|
|
854
931
|
export interface LineHeightTokenSchema<BaseToken> {
|
|
855
932
|
font: {
|
|
856
933
|
lineHeight: {
|
|
857
|
-
'
|
|
858
|
-
'
|
|
859
|
-
'
|
|
860
|
-
'
|
|
861
|
-
'
|
|
862
|
-
'
|
|
934
|
+
'1': DeprecatedTypographyToken<BaseToken>;
|
|
935
|
+
'100': DeprecatedTypographyToken<BaseToken>;
|
|
936
|
+
'200': DeprecatedTypographyToken<BaseToken>;
|
|
937
|
+
'300': DeprecatedTypographyToken<BaseToken>;
|
|
938
|
+
'400': DeprecatedTypographyToken<BaseToken>;
|
|
939
|
+
'500': DeprecatedTypographyToken<BaseToken>;
|
|
940
|
+
'600': DeprecatedTypographyToken<BaseToken>;
|
|
941
|
+
};
|
|
942
|
+
};
|
|
943
|
+
}
|
|
944
|
+
export interface LetterSpacingTokenSchema<BaseToken> {
|
|
945
|
+
font: {
|
|
946
|
+
letterSpacing: {
|
|
947
|
+
'0': DeprecatedTypographyToken<BaseToken>;
|
|
948
|
+
'100': DeprecatedTypographyToken<BaseToken>;
|
|
949
|
+
'200': DeprecatedTypographyToken<BaseToken>;
|
|
950
|
+
'300': DeprecatedTypographyToken<BaseToken>;
|
|
951
|
+
'400': DeprecatedTypographyToken<BaseToken>;
|
|
863
952
|
};
|
|
864
953
|
};
|
|
865
954
|
}
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Token names mapped to their values, used for contrast checking when generating custom themes
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::5aed53e696137cdd59ece99fb9755c09>>
|
|
7
7
|
* @codegenCommand yarn build tokens
|
|
8
8
|
*/
|
|
9
9
|
declare const tokenValues: {
|
|
10
10
|
readonly 'color.text.brand': "#579DFF";
|
|
11
11
|
readonly 'elevation.surface.overlay': "#282E33";
|
|
12
|
-
readonly 'color.text.selected': "#579DFF";
|
|
13
12
|
readonly 'color.background.selected': "#092957";
|
|
13
|
+
readonly 'color.text.selected': "#579DFF";
|
|
14
14
|
readonly 'color.border.brand': "#579DFF";
|
|
15
15
|
readonly 'color.chart.brand': "#388BFF";
|
|
16
16
|
readonly 'color.text.inverse': "#1D2125";
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Token names mapped to their values, used for contrast checking when generating custom themes
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::2e18f7ef8f76f499aeeb6d93e94be25e>>
|
|
7
7
|
* @codegenCommand yarn build tokens
|
|
8
8
|
*/
|
|
9
9
|
declare const tokenValues: {
|
|
10
10
|
readonly 'color.text.brand': "#0C66E4";
|
|
11
11
|
readonly 'elevation.surface.sunken': "#F7F8F9";
|
|
12
|
-
readonly 'color.text.selected': "#0C66E4";
|
|
13
12
|
readonly 'color.background.selected': "#E9F2FF";
|
|
13
|
+
readonly 'color.text.selected': "#0C66E4";
|
|
14
14
|
readonly 'color.border.brand': "#0C66E4";
|
|
15
15
|
readonly 'color.chart.brand': "#1D7AFC";
|
|
16
16
|
readonly 'color.text.inverse': "#FFFFFF";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::c5a499034468ced262952ef968c2fd67>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
declare const tokens: ({
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This allows users to compose their themes and only use the tokens that are requested.
|
|
7
7
|
* When a new theme is created, the import should automatically be added to the map
|
|
8
8
|
*
|
|
9
|
-
* @codegen <<SignedSource::
|
|
9
|
+
* @codegen <<SignedSource::1e1c80a5700235c55449aa23948418be>>
|
|
10
10
|
* @codegenCommand yarn build tokens
|
|
11
11
|
*/
|
|
12
12
|
import { ThemeIds, ThemeOverrideIds } from '../theme-config';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::5a962c81429544e05af6d55cf34c46a0>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: "\nhtml[data-theme~=\"typography:typography-adg3\"] {\n --ds-font-body: normal 400 0.875rem/1.25rem var(--ds-font-family-product);\n --ds-font-body-sm: normal 400 0.6875rem/1.25rem var(--ds-font-family-product);\n --ds-font-code: normal 400 0.875em/1 var(--ds-font-family-monospace);\n --ds-font-heading-lg: normal 500 1.5rem/1.75rem var(--ds-font-family-product);\n --ds-font-heading-md: normal 500 1.25rem/1.5rem var(--ds-font-family-product);\n --ds-font-heading-sm: normal 600 1rem/1.25rem var(--ds-font-family-product);\n --ds-font-heading-xl: normal 600 1.8125rem/2rem var(--ds-font-family-product);\n --ds-font-heading-xs: normal 600 0.875rem/1rem var(--ds-font-family-product);\n --ds-font-heading-xxl: normal 500 2.1875rem/2.5rem var(--ds-font-family-product);\n --ds-font-heading-xxs: normal 600 0.75rem/1rem var(--ds-font-family-product);\n --ds-font-letterSpacing-0: 0;\n --ds-font-letterSpacing-100: -0.003em;\n --ds-font-letterSpacing-200: -0.006em;\n --ds-font-letterSpacing-300: -0.008em;\n --ds-font-letterSpacing-400: -0.01em;\n --ds-font-ui: normal 400 0.875rem/1rem var(--ds-font-family-product);\n --ds-font-ui-sm: normal 400 0.6875rem/1rem var(--ds-font-family-product);\n --ds-font-family-code: ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-monospace: ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-product: ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-family-sans: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand: Charlie Sans;\n --ds-font-size-050: 0.6875rem;\n --ds-font-size-075: 0.75rem;\n --ds-font-size-100: 0.875rem;\n --ds-font-size-200: 1rem;\n --ds-font-size-300: 1.25rem;\n --ds-font-size-400: 1.5rem;\n --ds-font-size-500: 1.8125rem;\n --ds-font-size-600: 2.1875rem;\n --ds-font-weight-bold: 700;\n --ds-font-weight-medium: 500;\n --ds-font-weight-regular: 400;\n --ds-font-weight-semibold: 600;\n --ds-font-lineHeight-1: 1;\n --ds-font-lineHeight-100: 1rem;\n --ds-font-lineHeight-200: 1.25rem;\n --ds-font-lineHeight-300: 1.5rem;\n --ds-font-lineHeight-400: 1.75rem;\n --ds-font-lineHeight-500: 2rem;\n --ds-font-lineHeight-600: 2.5rem;\n}\n";
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::88719508da65fd1b7ad398cc0681c4c5>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: "\nhtml[data-theme~=\"typography:typography-minor3\"] {\n --ds-font-body: normal 400 0.875rem/1.25rem var(--ds-font-family-sans);\n --ds-font-body-sm: normal 400 0.75rem/1.25rem var(--ds-font-family-sans);\n --ds-font-code: normal 400 0.875em/1 var(--ds-font-family-monospace);\n --ds-font-heading-lg: normal 700 1.5rem/1.75rem var(--ds-font-family-sans);\n --ds-font-heading-md: normal 700 1.25rem/1.5rem var(--ds-font-family-sans);\n --ds-font-heading-sm: normal 700 1rem/1.25rem var(--ds-font-family-sans);\n --ds-font-heading-xl: normal 700 1.75rem/2rem var(--ds-font-family-sans);\n --ds-font-heading-xs: normal 700 0.875rem/1rem var(--ds-font-family-sans);\n --ds-font-heading-xxl: normal 700 2rem/2.25rem var(--ds-font-family-sans);\n --ds-font-heading-xxs: normal 700 0.75rem/1rem var(--ds-font-family-sans);\n --ds-font-letterSpacing-0: 0;\n --ds-font-letterSpacing-100: 0;\n --ds-font-letterSpacing-200: 0;\n --ds-font-letterSpacing-300: 0;\n --ds-font-letterSpacing-400: 0;\n --ds-font-ui: normal 400 0.875rem/1 var(--ds-font-family-sans);\n --ds-font-ui-sm: normal 400 0.75rem/1 var(--ds-font-family-sans);\n --ds-font-family-code: ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-monospace: ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-product: ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-family-sans: ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand: Charlie Sans;\n}\n";
|
|
7
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::ce2e1e115aa9ff0027981ef8ba658c64>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
-
declare const _default: "\nhtml[data-theme~=\"typography:typography\"] {\n --ds-font-
|
|
6
|
+
declare const _default: "\nhtml[data-theme~=\"typography:typography\"] {\n --ds-font-body: normal 400 0.875rem/1.25rem var(--ds-font-family-sans);\n --ds-font-body-sm: normal 400 0.75rem/1.25rem var(--ds-font-family-sans);\n --ds-font-code: normal 400 0.875em/1 var(--ds-font-family-monospace);\n --ds-font-heading-lg: normal 700 1.5rem/1.75rem var(--ds-font-family-sans);\n --ds-font-heading-md: normal 700 1.25rem/1.5rem var(--ds-font-family-sans);\n --ds-font-heading-sm: normal 700 1rem/1.25rem var(--ds-font-family-sans);\n --ds-font-heading-xl: normal 700 1.75rem/2rem var(--ds-font-family-sans);\n --ds-font-heading-xs: normal 700 0.875rem/1rem var(--ds-font-family-sans);\n --ds-font-heading-xxl: normal 700 2.25rem/2.5rem var(--ds-font-family-sans);\n --ds-font-heading-xxs: normal 700 0.75rem/1rem var(--ds-font-family-sans);\n --ds-font-letterSpacing-0: 0;\n --ds-font-letterSpacing-100: 0;\n --ds-font-letterSpacing-200: 0;\n --ds-font-letterSpacing-300: 0;\n --ds-font-letterSpacing-400: 0;\n --ds-font-ui: normal 400 0.875rem/1 var(--ds-font-family-sans);\n --ds-font-ui-sm: normal 400 0.75rem/1 var(--ds-font-family-sans);\n --ds-font-family-code: ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-monospace: ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-product: ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-family-sans: ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand: Charlie Sans;\n}\n";
|
|
7
7
|
export default _default;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Token names mapped to their value in the default Atlassian themes ('light').
|
|
8
8
|
* These default values are used by the Babel plugin to optionally provide automatic fallbacks.
|
|
9
9
|
*
|
|
10
|
-
* @codegen <<SignedSource::
|
|
10
|
+
* @codegen <<SignedSource::7b0a463a4cd5463b13d98c47582631db>>
|
|
11
11
|
* @codegenCommand yarn build tokens
|
|
12
12
|
*/
|
|
13
13
|
declare const defaultTokenValues: {
|
|
@@ -342,8 +342,28 @@ declare const defaultTokenValues: {
|
|
|
342
342
|
readonly 'space.600': "3rem";
|
|
343
343
|
readonly 'space.800': "4rem";
|
|
344
344
|
readonly 'space.1000': "5rem";
|
|
345
|
-
readonly 'font.
|
|
345
|
+
readonly 'font.body': "normal 400 0.875rem/1.25rem ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif";
|
|
346
|
+
readonly 'font.body.sm': "normal 400 0.6875rem/1.25rem ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif";
|
|
347
|
+
readonly 'font.code': "normal 400 0.875em/1 ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace";
|
|
348
|
+
readonly 'font.heading.lg': "normal 500 1.5rem/1.75rem ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif";
|
|
349
|
+
readonly 'font.heading.md': "normal 500 1.25rem/1.5rem ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif";
|
|
350
|
+
readonly 'font.heading.sm': "normal 600 1rem/1.25rem ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif";
|
|
351
|
+
readonly 'font.heading.xl': "normal 600 1.8125rem/2rem ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif";
|
|
352
|
+
readonly 'font.heading.xs': "normal 600 0.875rem/1rem ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif";
|
|
353
|
+
readonly 'font.heading.xxl': "normal 500 2.1875rem/2.5rem ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif";
|
|
354
|
+
readonly 'font.heading.xxs': "normal 600 0.75rem/1rem ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif";
|
|
355
|
+
readonly 'font.letterSpacing.0': "0";
|
|
356
|
+
readonly 'font.letterSpacing.100': "-0.003em";
|
|
357
|
+
readonly 'font.letterSpacing.200': "-0.006em";
|
|
358
|
+
readonly 'font.letterSpacing.300': "-0.008em";
|
|
359
|
+
readonly 'font.letterSpacing.400': "-0.01em";
|
|
360
|
+
readonly 'font.ui': "normal 400 0.875rem/1rem ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif";
|
|
361
|
+
readonly 'font.ui.sm': "normal 400 0.6875rem/1rem ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif";
|
|
362
|
+
readonly 'font.family.code': "ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace";
|
|
363
|
+
readonly 'font.family.monospace': "ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace";
|
|
364
|
+
readonly 'font.family.product': "ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif";
|
|
346
365
|
readonly 'font.family.sans': "-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif";
|
|
366
|
+
readonly 'font.family.brand': "Charlie Sans";
|
|
347
367
|
readonly 'font.size.050': "0.6875rem";
|
|
348
368
|
readonly 'font.size.075': "0.75rem";
|
|
349
369
|
readonly 'font.size.100': "0.875rem";
|
|
@@ -356,6 +376,7 @@ declare const defaultTokenValues: {
|
|
|
356
376
|
readonly 'font.weight.medium': "500";
|
|
357
377
|
readonly 'font.weight.regular': "400";
|
|
358
378
|
readonly 'font.weight.semibold': "600";
|
|
379
|
+
readonly 'font.lineHeight.1': "1";
|
|
359
380
|
readonly 'font.lineHeight.100': "1rem";
|
|
360
381
|
readonly 'font.lineHeight.200': "1.25rem";
|
|
361
382
|
readonly 'font.lineHeight.300': "1.5rem";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::941775f7937b33243f0409b0ddd4fcd1>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
declare const tokens: {
|
|
@@ -335,8 +335,28 @@ declare const tokens: {
|
|
|
335
335
|
readonly 'space.600': "--ds-space-600";
|
|
336
336
|
readonly 'space.800': "--ds-space-800";
|
|
337
337
|
readonly 'space.1000': "--ds-space-1000";
|
|
338
|
+
readonly 'font.body': "--ds-font-body";
|
|
339
|
+
readonly 'font.body.sm': "--ds-font-body-sm";
|
|
340
|
+
readonly 'font.code': "--ds-font-code";
|
|
341
|
+
readonly 'font.heading.lg': "--ds-font-heading-lg";
|
|
342
|
+
readonly 'font.heading.md': "--ds-font-heading-md";
|
|
343
|
+
readonly 'font.heading.sm': "--ds-font-heading-sm";
|
|
344
|
+
readonly 'font.heading.xl': "--ds-font-heading-xl";
|
|
345
|
+
readonly 'font.heading.xs': "--ds-font-heading-xs";
|
|
346
|
+
readonly 'font.heading.xxl': "--ds-font-heading-xxl";
|
|
347
|
+
readonly 'font.heading.xxs': "--ds-font-heading-xxs";
|
|
348
|
+
readonly 'font.letterSpacing.0': "--ds-font-letterSpacing-0";
|
|
349
|
+
readonly 'font.letterSpacing.100': "--ds-font-letterSpacing-100";
|
|
350
|
+
readonly 'font.letterSpacing.200': "--ds-font-letterSpacing-200";
|
|
351
|
+
readonly 'font.letterSpacing.300': "--ds-font-letterSpacing-300";
|
|
352
|
+
readonly 'font.letterSpacing.400': "--ds-font-letterSpacing-400";
|
|
353
|
+
readonly 'font.ui': "--ds-font-ui";
|
|
354
|
+
readonly 'font.ui.sm': "--ds-font-ui-sm";
|
|
355
|
+
readonly 'font.family.code': "--ds-font-family-code";
|
|
338
356
|
readonly 'font.family.monospace': "--ds-font-family-monospace";
|
|
357
|
+
readonly 'font.family.product': "--ds-font-family-product";
|
|
339
358
|
readonly 'font.family.sans': "--ds-font-family-sans";
|
|
359
|
+
readonly 'font.family.brand': "--ds-font-family-brand";
|
|
340
360
|
readonly 'font.size.050': "--ds-font-size-050";
|
|
341
361
|
readonly 'font.size.075': "--ds-font-size-075";
|
|
342
362
|
readonly 'font.size.100': "--ds-font-size-100";
|
|
@@ -349,6 +369,7 @@ declare const tokens: {
|
|
|
349
369
|
readonly 'font.weight.medium': "--ds-font-weight-medium";
|
|
350
370
|
readonly 'font.weight.regular': "--ds-font-weight-regular";
|
|
351
371
|
readonly 'font.weight.semibold': "--ds-font-weight-semibold";
|
|
372
|
+
readonly 'font.lineHeight.1': "--ds-font-lineHeight-1";
|
|
352
373
|
readonly 'font.lineHeight.100': "--ds-font-lineHeight-100";
|
|
353
374
|
readonly 'font.lineHeight.200': "--ds-font-lineHeight-200";
|
|
354
375
|
readonly 'font.lineHeight.300': "--ds-font-lineHeight-300";
|
|
@@ -688,8 +709,28 @@ export type CSSTokenMap = {
|
|
|
688
709
|
'space.600': 'var(--ds-space-600)';
|
|
689
710
|
'space.800': 'var(--ds-space-800)';
|
|
690
711
|
'space.1000': 'var(--ds-space-1000)';
|
|
712
|
+
'font.body': 'var(--ds-font-body)';
|
|
713
|
+
'font.body.sm': 'var(--ds-font-body-sm)';
|
|
714
|
+
'font.code': 'var(--ds-font-code)';
|
|
715
|
+
'font.heading.lg': 'var(--ds-font-heading-lg)';
|
|
716
|
+
'font.heading.md': 'var(--ds-font-heading-md)';
|
|
717
|
+
'font.heading.sm': 'var(--ds-font-heading-sm)';
|
|
718
|
+
'font.heading.xl': 'var(--ds-font-heading-xl)';
|
|
719
|
+
'font.heading.xs': 'var(--ds-font-heading-xs)';
|
|
720
|
+
'font.heading.xxl': 'var(--ds-font-heading-xxl)';
|
|
721
|
+
'font.heading.xxs': 'var(--ds-font-heading-xxs)';
|
|
722
|
+
'font.letterSpacing.0': 'var(--ds-font-letterSpacing-0)';
|
|
723
|
+
'font.letterSpacing.100': 'var(--ds-font-letterSpacing-100)';
|
|
724
|
+
'font.letterSpacing.200': 'var(--ds-font-letterSpacing-200)';
|
|
725
|
+
'font.letterSpacing.300': 'var(--ds-font-letterSpacing-300)';
|
|
726
|
+
'font.letterSpacing.400': 'var(--ds-font-letterSpacing-400)';
|
|
727
|
+
'font.ui': 'var(--ds-font-ui)';
|
|
728
|
+
'font.ui.sm': 'var(--ds-font-ui-sm)';
|
|
729
|
+
'font.family.code': 'var(--ds-font-family-code)';
|
|
691
730
|
'font.family.monospace': 'var(--ds-font-family-monospace)';
|
|
731
|
+
'font.family.product': 'var(--ds-font-family-product)';
|
|
692
732
|
'font.family.sans': 'var(--ds-font-family-sans)';
|
|
733
|
+
'font.family.brand': 'var(--ds-font-family-brand)';
|
|
693
734
|
'font.size.050': 'var(--ds-font-size-050)';
|
|
694
735
|
'font.size.075': 'var(--ds-font-size-075)';
|
|
695
736
|
'font.size.100': 'var(--ds-font-size-100)';
|
|
@@ -702,6 +743,7 @@ export type CSSTokenMap = {
|
|
|
702
743
|
'font.weight.medium': 'var(--ds-font-weight-medium)';
|
|
703
744
|
'font.weight.regular': 'var(--ds-font-weight-regular)';
|
|
704
745
|
'font.weight.semibold': 'var(--ds-font-weight-semibold)';
|
|
746
|
+
'font.lineHeight.1': 'var(--ds-font-lineHeight-1)';
|
|
705
747
|
'font.lineHeight.100': 'var(--ds-font-lineHeight-100)';
|
|
706
748
|
'font.lineHeight.200': 'var(--ds-font-lineHeight-200)';
|
|
707
749
|
'font.lineHeight.300': 'var(--ds-font-lineHeight-300)';
|