@atlaskit/tokens 0.10.35 → 0.11.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 +9 -0
- package/css/atlassian-spacing.css +2 -2
- package/css/atlassian-typography.css +27 -0
- package/dist/cjs/artifacts/palettes-raw/font-size-scale.js +135 -0
- package/dist/cjs/artifacts/palettes-raw/font-weight-scale.js +75 -0
- package/dist/cjs/artifacts/palettes-raw/line-height-scale.js +105 -0
- package/dist/{types-ts4.0/artifacts/rename-mapping/atlassian-legacy-dark.d.ts → cjs/artifacts/rename-mapping/atlassian-typography.js} +11 -10
- package/dist/cjs/artifacts/rename-mapping.js +3 -1
- package/dist/cjs/artifacts/token-default-values.js +3 -1
- package/dist/cjs/artifacts/token-names.js +3 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +435 -0
- package/dist/cjs/artifacts/typescript/atlassian-light-token-default-values.js +2 -2
- package/dist/cjs/artifacts/typescript/atlassian-spacing-token-default-values.js +2 -2
- package/dist/cjs/artifacts/typescript/atlassian-typography-token-default-values.js +40 -0
- package/dist/cjs/artifacts/typescript/atlassian-typography-token-names.js +36 -0
- package/dist/cjs/artifacts/typescript/atlassian-typography-types-internal.js +5 -0
- package/dist/cjs/artifacts/typescript/atlassian-typography-types.js +5 -0
- package/dist/cjs/constants.js +2 -2
- package/dist/cjs/entry-points/init.js +9 -0
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/palettes/typography/font-family.js +24 -0
- package/dist/cjs/palettes/typography/font-size-scale.js +60 -0
- package/dist/cjs/palettes/typography/font-weight-scale.js +36 -0
- package/dist/cjs/palettes/typography/index.js +28 -0
- package/dist/cjs/palettes/typography/line-height-scale.js +48 -0
- package/dist/cjs/theme-config.js +8 -0
- package/dist/cjs/tokens/atlassian-typography/font-family.js +20 -0
- package/dist/cjs/tokens/atlassian-typography/font-size.js +38 -0
- package/dist/cjs/tokens/atlassian-typography/font-weight.js +26 -0
- package/dist/cjs/tokens/atlassian-typography/line-height.js +32 -0
- package/dist/cjs/tokens/default/elevation/surface.js +2 -2
- package/dist/cjs/tokens/default/typography/font-family.js +30 -0
- package/dist/cjs/tokens/default/typography/font-size.js +78 -0
- package/dist/cjs/tokens/default/typography/font-weight.js +46 -0
- package/dist/cjs/tokens/default/typography/line-height.js +62 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/palettes-raw/font-size-scale.js +127 -0
- package/dist/es2019/artifacts/palettes-raw/font-weight-scale.js +67 -0
- package/dist/es2019/artifacts/palettes-raw/line-height-scale.js +97 -0
- package/dist/{types-ts4.0/artifacts/rename-mapping/atlassian-light.d.ts → es2019/artifacts/rename-mapping/atlassian-typography.js} +3 -10
- package/dist/es2019/artifacts/rename-mapping.js +2 -1
- package/dist/es2019/artifacts/token-default-values.js +3 -1
- package/dist/es2019/artifacts/token-names.js +3 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +427 -0
- package/dist/es2019/artifacts/typescript/atlassian-light-token-default-values.js +2 -2
- package/dist/es2019/artifacts/typescript/atlassian-spacing-token-default-values.js +2 -2
- package/dist/es2019/artifacts/typescript/atlassian-typography-token-default-values.js +32 -0
- package/dist/es2019/artifacts/typescript/atlassian-typography-token-names.js +28 -0
- package/dist/es2019/artifacts/typescript/atlassian-typography-types-internal.js +1 -0
- package/dist/es2019/artifacts/typescript/atlassian-typography-types.js +1 -0
- package/dist/es2019/constants.js +2 -2
- package/dist/es2019/entry-points/init.js +4 -0
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/palettes/typography/font-family.js +17 -0
- package/dist/es2019/palettes/typography/font-size-scale.js +53 -0
- package/dist/es2019/palettes/typography/font-weight-scale.js +29 -0
- package/dist/es2019/palettes/typography/index.js +12 -0
- package/dist/es2019/palettes/typography/line-height-scale.js +41 -0
- package/dist/es2019/theme-config.js +8 -0
- package/dist/es2019/tokens/atlassian-typography/font-family.js +13 -0
- package/dist/es2019/tokens/atlassian-typography/font-size.js +31 -0
- package/dist/es2019/tokens/atlassian-typography/font-weight.js +19 -0
- package/dist/es2019/tokens/atlassian-typography/line-height.js +25 -0
- package/dist/es2019/tokens/default/elevation/surface.js +2 -2
- package/dist/es2019/tokens/default/typography/font-family.js +23 -0
- package/dist/es2019/tokens/default/typography/font-size.js +71 -0
- package/dist/es2019/tokens/default/typography/font-weight.js +39 -0
- package/dist/es2019/tokens/default/typography/line-height.js +55 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/palettes-raw/font-size-scale.js +127 -0
- package/dist/esm/artifacts/palettes-raw/font-weight-scale.js +67 -0
- package/dist/esm/artifacts/palettes-raw/line-height-scale.js +97 -0
- package/dist/{types-ts4.0/artifacts/rename-mapping/atlassian-dark.d.ts → esm/artifacts/rename-mapping/atlassian-typography.js} +3 -10
- package/dist/esm/artifacts/rename-mapping.js +2 -1
- package/dist/esm/artifacts/token-default-values.js +2 -1
- package/dist/esm/artifacts/token-names.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +427 -0
- package/dist/esm/artifacts/typescript/atlassian-light-token-default-values.js +2 -2
- package/dist/esm/artifacts/typescript/atlassian-spacing-token-default-values.js +2 -2
- package/dist/esm/artifacts/typescript/atlassian-typography-token-default-values.js +32 -0
- package/dist/esm/artifacts/typescript/atlassian-typography-token-names.js +28 -0
- package/dist/esm/artifacts/typescript/atlassian-typography-types-internal.js +1 -0
- package/dist/esm/artifacts/typescript/atlassian-typography-types.js +1 -0
- package/dist/esm/constants.js +2 -2
- package/dist/esm/entry-points/init.js +4 -0
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/palettes/typography/font-family.js +17 -0
- package/dist/esm/palettes/typography/font-size-scale.js +53 -0
- package/dist/esm/palettes/typography/font-weight-scale.js +29 -0
- package/dist/esm/palettes/typography/index.js +14 -0
- package/dist/esm/palettes/typography/line-height-scale.js +41 -0
- package/dist/esm/theme-config.js +8 -0
- package/dist/esm/tokens/atlassian-typography/font-family.js +13 -0
- package/dist/esm/tokens/atlassian-typography/font-size.js +31 -0
- package/dist/esm/tokens/atlassian-typography/font-weight.js +19 -0
- package/dist/esm/tokens/atlassian-typography/line-height.js +25 -0
- package/dist/esm/tokens/default/elevation/surface.js +2 -2
- package/dist/esm/tokens/default/typography/font-family.js +23 -0
- package/dist/esm/tokens/default/typography/font-size.js +71 -0
- package/dist/esm/tokens/default/typography/font-weight.js +39 -0
- package/dist/esm/tokens/default/typography/line-height.js +55 -0
- package/dist/esm/version.json +1 -1
- package/dist/{types-ts4.0/artifacts/palettes-raw/spacing-scale.d.ts → types/artifacts/palettes-raw/font-size-scale.d.ts} +1 -1
- package/dist/types/artifacts/palettes-raw/font-weight-scale.d.ts +22 -0
- package/dist/types/artifacts/palettes-raw/line-height-scale.d.ts +22 -0
- package/dist/{types-ts4.0/artifacts/rename-mapping/atlassian-legacy-light.d.ts → types/artifacts/rename-mapping/atlassian-typography.d.ts} +1 -1
- package/dist/types/artifacts/token-default-values.d.ts +20 -0
- package/dist/types/artifacts/token-names.d.ts +22 -1
- package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +28 -0
- package/dist/types/artifacts/typescript/atlassian-light-token-default-values.d.ts +2 -2
- package/dist/types/artifacts/typescript/atlassian-spacing-token-default-values.d.ts +2 -2
- package/dist/types/artifacts/typescript/atlassian-typography-token-default-values.d.ts +32 -0
- package/dist/types/artifacts/typescript/atlassian-typography-token-names.d.ts +50 -0
- package/dist/types/artifacts/typescript/atlassian-typography-types-internal.d.ts +6 -0
- package/dist/types/artifacts/typescript/atlassian-typography-types.d.ts +6 -0
- package/dist/types/constants.d.ts +1 -1
- package/dist/types/entry-points/init.d.ts +4 -0
- package/dist/types/palettes/typography/font-family.d.ts +5 -0
- package/dist/types/palettes/typography/font-size-scale.d.ts +5 -0
- package/dist/types/palettes/typography/font-weight-scale.d.ts +5 -0
- package/dist/types/palettes/typography/index.d.ts +10 -0
- package/dist/types/palettes/typography/line-height-scale.d.ts +5 -0
- package/dist/types/theme-config.d.ts +5 -3
- package/dist/types/tokens/atlassian-typography/font-family.d.ts +4 -0
- package/dist/types/tokens/atlassian-typography/font-size.d.ts +4 -0
- package/dist/types/tokens/atlassian-typography/font-weight.d.ts +4 -0
- package/dist/types/tokens/atlassian-typography/line-height.d.ts +4 -0
- package/dist/types/tokens/default/elevation/surface.d.ts +2 -2
- package/dist/types/tokens/default/typography/font-family.d.ts +4 -0
- package/dist/types/tokens/default/typography/font-size.d.ts +4 -0
- package/dist/types/tokens/default/typography/font-weight.d.ts +4 -0
- package/dist/types/tokens/default/typography/line-height.d.ts +4 -0
- package/dist/types/types.d.ts +62 -1
- package/init/package.json +17 -0
- package/package.json +6 -5
- package/report.api.md +57 -4
- package/tmp/api-report-tmp.d.ts +50 -4
- package/dist/types-ts4.0/artifacts/palettes-raw/legacy-palette.d.ts +0 -41
- package/dist/types-ts4.0/artifacts/palettes-raw/palette.d.ts +0 -41
- package/dist/types-ts4.0/artifacts/rename-mapping/atlassian-spacing.d.ts +0 -26
- package/dist/types-ts4.0/artifacts/rename-mapping.d.ts +0 -6
- package/dist/types-ts4.0/artifacts/token-default-values.d.ts +0 -372
- package/dist/types-ts4.0/artifacts/token-names.d.ts +0 -376
- package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-dark.d.ts +0 -222
- package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +0 -222
- package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-legacy-light.d.ts +0 -174
- package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-light.d.ts +0 -174
- package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-spacing.d.ts +0 -82
- package/dist/types-ts4.0/artifacts/types-internal.d.ts +0 -2
- package/dist/types-ts4.0/artifacts/types.d.ts +0 -2
- package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-token-names.d.ts +0 -596
- package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-types-internal.d.ts +0 -6
- package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-types.d.ts +0 -6
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-token-names.d.ts +0 -596
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-types-internal.d.ts +0 -6
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-types.d.ts +0 -6
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-token-names.d.ts +0 -596
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-types-internal.d.ts +0 -6
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-types.d.ts +0 -6
- package/dist/types-ts4.0/artifacts/typescript/atlassian-light-token-default-values.d.ts +0 -305
- package/dist/types-ts4.0/artifacts/typescript/atlassian-light-token-names.d.ts +0 -596
- package/dist/types-ts4.0/artifacts/typescript/atlassian-light-types-internal.d.ts +0 -6
- package/dist/types-ts4.0/artifacts/typescript/atlassian-light-types.d.ts +0 -6
- package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-token-default-values.d.ts +0 -88
- package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-token-names.d.ts +0 -162
- package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-types-internal.d.ts +0 -6
- package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-types.d.ts +0 -6
- package/dist/types-ts4.0/babel-plugin/index.d.ts +0 -1
- package/dist/types-ts4.0/babel-plugin/plugin.d.ts +0 -14
- package/dist/types-ts4.0/constants.d.ts +0 -6
- package/dist/types-ts4.0/entry-points/babel-plugin.d.ts +0 -1
- package/dist/types-ts4.0/entry-points/palettes-raw.d.ts +0 -1
- package/dist/types-ts4.0/entry-points/rename-mapping.d.ts +0 -1
- package/dist/types-ts4.0/entry-points/spacing-raw.d.ts +0 -1
- package/dist/types-ts4.0/entry-points/token-ids.d.ts +0 -1
- package/dist/types-ts4.0/entry-points/token-names.d.ts +0 -2
- package/dist/types-ts4.0/entry-points/tokens-raw.d.ts +0 -2
- package/dist/types-ts4.0/figma/synchronize-figma-tokens.d.ts +0 -24
- package/dist/types-ts4.0/figma/types.d.ts +0 -40
- package/dist/types-ts4.0/get-token.d.ts +0 -25
- package/dist/types-ts4.0/index.d.ts +0 -6
- package/dist/types-ts4.0/palettes/legacy-palette.d.ts +0 -10
- package/dist/types-ts4.0/palettes/palette.d.ts +0 -5
- package/dist/types-ts4.0/palettes/spacing-scale.d.ts +0 -5
- package/dist/types-ts4.0/set-global-theme.d.ts +0 -15
- package/dist/types-ts4.0/theme-change-observer.d.ts +0 -36
- package/dist/types-ts4.0/theme-config.d.ts +0 -53
- package/dist/types-ts4.0/tokens/atlassian-dark/color/accent.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-dark/color/background.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-dark/color/border.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-dark/color/icon.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-dark/color/interaction.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-dark/color/skeleton.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-dark/color/text.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-dark/deprecated/deprecated.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-dark/elevation/shadow.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-dark/elevation/surface.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-dark/opacity/opacity.d.ts +0 -3
- package/dist/types-ts4.0/tokens/atlassian-dark/utility/utility.d.ts +0 -5
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/accent.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/background.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/border.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/icon.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/interaction.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/skeleton.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/text.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/deprecated/deprecated.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/elevation/shadow.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/elevation/surface.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/opacity/opacity.d.ts +0 -3
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/utility/utility.d.ts +0 -5
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/accent.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/background.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/border.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/icon.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/interaction.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/skeleton.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/text.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/deprecated/deprecated.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/elevation/shadow.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/elevation/surface.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/opacity/opacity.d.ts +0 -3
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/utility/utility.d.ts +0 -5
- package/dist/types-ts4.0/tokens/atlassian-light/color/accent.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-light/color/background.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-light/color/border.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-light/color/icon.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-light/color/interaction.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-light/color/skeleton.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-light/color/text.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-light/deprecated/deprecated.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-light/elevation/shadow.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-light/elevation/surface.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-light/opacity/opacity.d.ts +0 -3
- package/dist/types-ts4.0/tokens/atlassian-light/utility/utility.d.ts +0 -5
- package/dist/types-ts4.0/tokens/atlassian-spacing/spacing.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/color/accent.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/color/background.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/color/border.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/color/icon.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/color/interaction.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/color/skeleton.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/color/text.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/deprecated/deprecated.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/elevation/shadow.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/elevation/surface.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/opacity/opacity.d.ts +0 -3
- package/dist/types-ts4.0/tokens/default/spacing/spacing.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/utility/utility.d.ts +0 -5
- package/dist/types-ts4.0/types.d.ts +0 -798
- package/dist/types-ts4.0/utils/color-detection.d.ts +0 -38
- package/dist/types-ts4.0/utils/token-ids.d.ts +0 -41
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* Token names mapped to their value in the default Atlassian themes ('light').
|
|
5
|
+
* These default values are used by the Babel plugin to optionally provide automatic fallbacks.
|
|
6
|
+
*
|
|
7
|
+
* @codegen <<SignedSource::c3cd2758c83d1514a33fbaec6ceb0a8d>>
|
|
8
|
+
* @codegenCommand yarn build tokens
|
|
9
|
+
*/
|
|
10
|
+
var defaultTokenValues = {
|
|
11
|
+
'font.family.sans': '-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',
|
|
12
|
+
'font.family.monospace': '"SFMono-Medium", "SF Mono", "Segoe UI Mono", "Roboto Mono", "Ubuntu Mono", Menlo, Consolas, Courier, monospace',
|
|
13
|
+
'font.size.100': '14px',
|
|
14
|
+
'font.size.200': '16px',
|
|
15
|
+
'font.size.300': '20px',
|
|
16
|
+
'font.size.400': '24px',
|
|
17
|
+
'font.size.500': '29px',
|
|
18
|
+
'font.size.600': '35px',
|
|
19
|
+
'font.size.050': '11px',
|
|
20
|
+
'font.size.075': '12px',
|
|
21
|
+
'font.weight.regular': '400',
|
|
22
|
+
'font.weight.medium': '500',
|
|
23
|
+
'font.weight.semibold': '600',
|
|
24
|
+
'font.weight.bold': '700',
|
|
25
|
+
'font.lineHeight.100': '16px',
|
|
26
|
+
'font.lineHeight.200': '20px',
|
|
27
|
+
'font.lineHeight.300': '24px',
|
|
28
|
+
'font.lineHeight.400': '28px',
|
|
29
|
+
'font.lineHeight.500': '32px',
|
|
30
|
+
'font.lineHeight.600': '40px'
|
|
31
|
+
};
|
|
32
|
+
export default defaultTokenValues;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::552924bc6add2fabb3af5b1ac93a9721>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
var tokens = {
|
|
7
|
+
'font.family.sans': '--ds-font-family-sans',
|
|
8
|
+
'font.family.monospace': '--ds-font-family-monospace',
|
|
9
|
+
'font.size.100': '--ds-font-size-100',
|
|
10
|
+
'font.size.200': '--ds-font-size-200',
|
|
11
|
+
'font.size.300': '--ds-font-size-300',
|
|
12
|
+
'font.size.400': '--ds-font-size-400',
|
|
13
|
+
'font.size.500': '--ds-font-size-500',
|
|
14
|
+
'font.size.600': '--ds-font-size-600',
|
|
15
|
+
'font.size.050': '--ds-font-size-050',
|
|
16
|
+
'font.size.075': '--ds-font-size-075',
|
|
17
|
+
'font.weight.regular': '--ds-font-weight-regular',
|
|
18
|
+
'font.weight.medium': '--ds-font-weight-medium',
|
|
19
|
+
'font.weight.semibold': '--ds-font-weight-semibold',
|
|
20
|
+
'font.weight.bold': '--ds-font-weight-bold',
|
|
21
|
+
'font.lineHeight.100': '--ds-font-lineHeight-100',
|
|
22
|
+
'font.lineHeight.200': '--ds-font-lineHeight-200',
|
|
23
|
+
'font.lineHeight.300': '--ds-font-lineHeight-300',
|
|
24
|
+
'font.lineHeight.400': '--ds-font-lineHeight-400',
|
|
25
|
+
'font.lineHeight.500': '--ds-font-lineHeight-500',
|
|
26
|
+
'font.lineHeight.600': '--ds-font-lineHeight-600'
|
|
27
|
+
};
|
|
28
|
+
export default tokens;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export var THEME_DATA_ATTRIBUTE = 'data-theme';
|
|
2
2
|
export var COLOR_MODE_ATTRIBUTE = 'data-color-mode';
|
|
3
|
-
export var DEFAULT_THEME = 'light
|
|
3
|
+
export var DEFAULT_THEME = 'light';
|
|
4
4
|
export var CSS_PREFIX = 'ds';
|
|
5
|
-
export var CSS_VAR_FULL = ['opacity'];
|
|
5
|
+
export var CSS_VAR_FULL = ['opacity', 'font'];
|
|
6
6
|
export var TOKEN_NOT_FOUND_CSS_VAR = "--".concat(CSS_PREFIX, "-token-not-found");
|
package/dist/esm/get-token.js
CHANGED
|
@@ -2,7 +2,7 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
|
2
2
|
import tokens from './artifacts/token-names';
|
|
3
3
|
import { TOKEN_NOT_FOUND_CSS_VAR } from './constants';
|
|
4
4
|
var name = "@atlaskit/tokens";
|
|
5
|
-
var version = "0.
|
|
5
|
+
var version = "0.11.0";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var palette = {
|
|
2
|
+
fontFamily: {
|
|
3
|
+
FontFamilySans: {
|
|
4
|
+
value: "-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif",
|
|
5
|
+
attributes: {
|
|
6
|
+
group: 'scale'
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
FontFamilyMonospace: {
|
|
10
|
+
value: "\"SFMono-Medium\", \"SF Mono\", \"Segoe UI Mono\", \"Roboto Mono\", \"Ubuntu Mono\", Menlo, Consolas, Courier, monospace",
|
|
11
|
+
attributes: {
|
|
12
|
+
group: 'scale'
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export default palette;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var scale = {
|
|
2
|
+
fontSize: {
|
|
3
|
+
FontSize050: {
|
|
4
|
+
value: '11px',
|
|
5
|
+
attributes: {
|
|
6
|
+
group: 'scale'
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
FontSize075: {
|
|
10
|
+
value: '12px',
|
|
11
|
+
attributes: {
|
|
12
|
+
group: 'scale'
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
FontSize100: {
|
|
16
|
+
value: '14px',
|
|
17
|
+
attributes: {
|
|
18
|
+
group: 'scale'
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
FontSize200: {
|
|
22
|
+
value: '16px',
|
|
23
|
+
attributes: {
|
|
24
|
+
group: 'scale'
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
FontSize300: {
|
|
28
|
+
value: '20px',
|
|
29
|
+
attributes: {
|
|
30
|
+
group: 'scale'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
FontSize400: {
|
|
34
|
+
value: '24px',
|
|
35
|
+
attributes: {
|
|
36
|
+
group: 'scale'
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
FontSize500: {
|
|
40
|
+
value: '29px',
|
|
41
|
+
attributes: {
|
|
42
|
+
group: 'scale'
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
FontSize600: {
|
|
46
|
+
value: '35px',
|
|
47
|
+
attributes: {
|
|
48
|
+
group: 'scale'
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
export default scale;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var scale = {
|
|
2
|
+
fontWeight: {
|
|
3
|
+
FontWeightRegular: {
|
|
4
|
+
value: '400',
|
|
5
|
+
attributes: {
|
|
6
|
+
group: 'scale'
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
FontWeightMedium: {
|
|
10
|
+
value: '500',
|
|
11
|
+
attributes: {
|
|
12
|
+
group: 'scale'
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
FontWeightSemiBold: {
|
|
16
|
+
value: '600',
|
|
17
|
+
attributes: {
|
|
18
|
+
group: 'scale'
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
FontWeightBold: {
|
|
22
|
+
value: '700',
|
|
23
|
+
attributes: {
|
|
24
|
+
group: 'scale'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
export default scale;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
+
|
|
7
|
+
import fontFamilyPalette from './font-family';
|
|
8
|
+
import fontSizeScale from './font-size-scale';
|
|
9
|
+
import fontWeightScale from './font-weight-scale';
|
|
10
|
+
import lineHeightScale from './line-height-scale';
|
|
11
|
+
var typographyPalette = {
|
|
12
|
+
typography: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, fontSizeScale), fontWeightScale), lineHeightScale), fontFamilyPalette)
|
|
13
|
+
};
|
|
14
|
+
export default typographyPalette;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var scale = {
|
|
2
|
+
lineHeight: {
|
|
3
|
+
LineHeight100: {
|
|
4
|
+
value: '16px',
|
|
5
|
+
attributes: {
|
|
6
|
+
group: 'scale'
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
LineHeight200: {
|
|
10
|
+
value: '20px',
|
|
11
|
+
attributes: {
|
|
12
|
+
group: 'scale'
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
LineHeight300: {
|
|
16
|
+
value: '24px',
|
|
17
|
+
attributes: {
|
|
18
|
+
group: 'scale'
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
LineHeight400: {
|
|
22
|
+
value: '28px',
|
|
23
|
+
attributes: {
|
|
24
|
+
group: 'scale'
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
LineHeight500: {
|
|
28
|
+
value: '32px',
|
|
29
|
+
attributes: {
|
|
30
|
+
group: 'scale'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
LineHeight600: {
|
|
34
|
+
value: '40px',
|
|
35
|
+
attributes: {
|
|
36
|
+
group: 'scale'
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
export default scale;
|
package/dist/esm/theme-config.js
CHANGED
|
@@ -82,6 +82,14 @@ var themeConfig = {
|
|
|
82
82
|
attributes: {
|
|
83
83
|
type: 'spacing'
|
|
84
84
|
}
|
|
85
|
+
},
|
|
86
|
+
'atlassian-typography': {
|
|
87
|
+
id: 'typography',
|
|
88
|
+
displayName: 'Atlassian Typography',
|
|
89
|
+
palette: 'typographyPalette',
|
|
90
|
+
attributes: {
|
|
91
|
+
type: 'typography'
|
|
92
|
+
}
|
|
85
93
|
}
|
|
86
94
|
};
|
|
87
95
|
export default themeConfig;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var font = {
|
|
2
|
+
font: {
|
|
3
|
+
size: {
|
|
4
|
+
'050': {
|
|
5
|
+
value: 'FontSize050'
|
|
6
|
+
},
|
|
7
|
+
'075': {
|
|
8
|
+
value: 'FontSize075'
|
|
9
|
+
},
|
|
10
|
+
'100': {
|
|
11
|
+
value: 'FontSize100'
|
|
12
|
+
},
|
|
13
|
+
'200': {
|
|
14
|
+
value: 'FontSize200'
|
|
15
|
+
},
|
|
16
|
+
'300': {
|
|
17
|
+
value: 'FontSize300'
|
|
18
|
+
},
|
|
19
|
+
'400': {
|
|
20
|
+
value: 'FontSize400'
|
|
21
|
+
},
|
|
22
|
+
'500': {
|
|
23
|
+
value: 'FontSize500'
|
|
24
|
+
},
|
|
25
|
+
'600': {
|
|
26
|
+
value: 'FontSize600'
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export default font;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var font = {
|
|
2
|
+
font: {
|
|
3
|
+
weight: {
|
|
4
|
+
regular: {
|
|
5
|
+
value: 'FontWeightRegular'
|
|
6
|
+
},
|
|
7
|
+
medium: {
|
|
8
|
+
value: 'FontWeightMedium'
|
|
9
|
+
},
|
|
10
|
+
semibold: {
|
|
11
|
+
value: 'FontWeightSemiBold'
|
|
12
|
+
},
|
|
13
|
+
bold: {
|
|
14
|
+
value: 'FontWeightBold'
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
export default font;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var font = {
|
|
2
|
+
font: {
|
|
3
|
+
lineHeight: {
|
|
4
|
+
'100': {
|
|
5
|
+
value: 'LineHeight100'
|
|
6
|
+
},
|
|
7
|
+
'200': {
|
|
8
|
+
value: 'LineHeight200'
|
|
9
|
+
},
|
|
10
|
+
'300': {
|
|
11
|
+
value: 'LineHeight300'
|
|
12
|
+
},
|
|
13
|
+
'400': {
|
|
14
|
+
value: 'LineHeight400'
|
|
15
|
+
},
|
|
16
|
+
'500': {
|
|
17
|
+
value: 'LineHeight500'
|
|
18
|
+
},
|
|
19
|
+
'600': {
|
|
20
|
+
value: 'LineHeight600'
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
export default font;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var font = {
|
|
2
|
+
font: {
|
|
3
|
+
family: {
|
|
4
|
+
sans: {
|
|
5
|
+
attributes: {
|
|
6
|
+
group: 'fontFamily',
|
|
7
|
+
state: 'active',
|
|
8
|
+
introduced: '0.10.33',
|
|
9
|
+
description: 'Helpful guidance goes here'
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
monospace: {
|
|
13
|
+
attributes: {
|
|
14
|
+
group: 'fontFamily',
|
|
15
|
+
state: 'active',
|
|
16
|
+
introduced: '0.10.33',
|
|
17
|
+
description: 'Helpful guidance goes here'
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
export default font;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
var font = {
|
|
2
|
+
font: {
|
|
3
|
+
size: {
|
|
4
|
+
'050': {
|
|
5
|
+
attributes: {
|
|
6
|
+
group: 'fontSize',
|
|
7
|
+
state: 'active',
|
|
8
|
+
introduced: '0.10.33',
|
|
9
|
+
description: 'Helpful guidance goes here'
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
'075': {
|
|
13
|
+
attributes: {
|
|
14
|
+
group: 'fontSize',
|
|
15
|
+
state: 'active',
|
|
16
|
+
introduced: '0.10.33',
|
|
17
|
+
description: 'Helpful guidance goes here'
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
'100': {
|
|
21
|
+
attributes: {
|
|
22
|
+
group: 'fontSize',
|
|
23
|
+
state: 'active',
|
|
24
|
+
introduced: '0.10.33',
|
|
25
|
+
description: 'Helpful guidance goes here'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
'200': {
|
|
29
|
+
attributes: {
|
|
30
|
+
group: 'fontSize',
|
|
31
|
+
state: 'active',
|
|
32
|
+
introduced: '0.10.33',
|
|
33
|
+
description: 'Helpful guidance goes here'
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
'300': {
|
|
37
|
+
attributes: {
|
|
38
|
+
group: 'fontSize',
|
|
39
|
+
state: 'active',
|
|
40
|
+
introduced: '0.10.33',
|
|
41
|
+
description: 'Helpful guidance goes here'
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
'400': {
|
|
45
|
+
attributes: {
|
|
46
|
+
group: 'fontSize',
|
|
47
|
+
state: 'active',
|
|
48
|
+
introduced: '0.10.33',
|
|
49
|
+
description: 'Helpful guidance goes here'
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
'500': {
|
|
53
|
+
attributes: {
|
|
54
|
+
group: 'fontSize',
|
|
55
|
+
state: 'active',
|
|
56
|
+
introduced: '0.10.33',
|
|
57
|
+
description: 'Helpful guidance goes here'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
'600': {
|
|
61
|
+
attributes: {
|
|
62
|
+
group: 'fontSize',
|
|
63
|
+
state: 'active',
|
|
64
|
+
introduced: '0.10.33',
|
|
65
|
+
description: 'Helpful guidance goes here'
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
export default font;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var font = {
|
|
2
|
+
font: {
|
|
3
|
+
weight: {
|
|
4
|
+
regular: {
|
|
5
|
+
attributes: {
|
|
6
|
+
group: 'fontWeight',
|
|
7
|
+
state: 'active',
|
|
8
|
+
introduced: '0.10.33',
|
|
9
|
+
description: 'Helpful guidance goes here'
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
medium: {
|
|
13
|
+
attributes: {
|
|
14
|
+
group: 'fontWeight',
|
|
15
|
+
state: 'active',
|
|
16
|
+
introduced: '0.10.33',
|
|
17
|
+
description: 'Helpful guidance goes here'
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
semibold: {
|
|
21
|
+
attributes: {
|
|
22
|
+
group: 'fontWeight',
|
|
23
|
+
state: 'active',
|
|
24
|
+
introduced: '0.10.33',
|
|
25
|
+
description: 'Helpful guidance goes here'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
bold: {
|
|
29
|
+
attributes: {
|
|
30
|
+
group: 'fontWeight',
|
|
31
|
+
state: 'active',
|
|
32
|
+
introduced: '0.10.33',
|
|
33
|
+
description: 'Helpful guidance goes here'
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
export default font;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var font = {
|
|
2
|
+
font: {
|
|
3
|
+
lineHeight: {
|
|
4
|
+
'100': {
|
|
5
|
+
attributes: {
|
|
6
|
+
group: 'lineHeight',
|
|
7
|
+
state: 'active',
|
|
8
|
+
introduced: '0.10.33',
|
|
9
|
+
description: 'Helpful guidance goes here'
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
'200': {
|
|
13
|
+
attributes: {
|
|
14
|
+
group: 'lineHeight',
|
|
15
|
+
state: 'active',
|
|
16
|
+
introduced: '0.10.33',
|
|
17
|
+
description: 'Helpful guidance goes here'
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
'300': {
|
|
21
|
+
attributes: {
|
|
22
|
+
group: 'lineHeight',
|
|
23
|
+
state: 'active',
|
|
24
|
+
introduced: '0.10.33',
|
|
25
|
+
description: 'Helpful guidance goes here'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
'400': {
|
|
29
|
+
attributes: {
|
|
30
|
+
group: 'lineHeight',
|
|
31
|
+
state: 'active',
|
|
32
|
+
introduced: '0.10.33',
|
|
33
|
+
description: 'Helpful guidance goes here'
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
'500': {
|
|
37
|
+
attributes: {
|
|
38
|
+
group: 'lineHeight',
|
|
39
|
+
state: 'active',
|
|
40
|
+
introduced: '0.10.33',
|
|
41
|
+
description: 'Helpful guidance goes here'
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
'600': {
|
|
45
|
+
attributes: {
|
|
46
|
+
group: 'lineHeight',
|
|
47
|
+
state: 'active',
|
|
48
|
+
introduced: '0.10.33',
|
|
49
|
+
description: 'Helpful guidance goes here'
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
export default font;
|
package/dist/esm/version.json
CHANGED
|
@@ -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::8fb1da69b30c7b1fcf40b479e7db7093>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
declare const tokens: {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::f17d943d430728df0f70ad5321ac80d4>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
declare const tokens: {
|
|
7
|
+
value: string;
|
|
8
|
+
attributes: {
|
|
9
|
+
group: string;
|
|
10
|
+
};
|
|
11
|
+
filePath: string;
|
|
12
|
+
isSource: boolean;
|
|
13
|
+
original: {
|
|
14
|
+
value: string;
|
|
15
|
+
attributes: {
|
|
16
|
+
group: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
name: string;
|
|
20
|
+
path: string[];
|
|
21
|
+
}[];
|
|
22
|
+
export default tokens;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::918426e4e1a8d46689a9af31434ac590>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
declare const tokens: {
|
|
7
|
+
value: string;
|
|
8
|
+
attributes: {
|
|
9
|
+
group: string;
|
|
10
|
+
};
|
|
11
|
+
filePath: string;
|
|
12
|
+
isSource: boolean;
|
|
13
|
+
original: {
|
|
14
|
+
value: string;
|
|
15
|
+
attributes: {
|
|
16
|
+
group: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
name: string;
|
|
20
|
+
path: string[];
|
|
21
|
+
}[];
|
|
22
|
+
export default tokens;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* These changes will then be picked up by our tooling which will attempt to
|
|
13
13
|
* migrate as many of these renames as possible.
|
|
14
14
|
*
|
|
15
|
-
* @codegen <<SignedSource::
|
|
15
|
+
* @codegen <<SignedSource::83ffd10a8ba807f2e4f905994e628e9c>>
|
|
16
16
|
* @codegenCommand yarn build tokens
|
|
17
17
|
*/
|
|
18
18
|
import tokens from '../token-names';
|
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
declare const defaultTokens: {
|
|
2
|
+
'font.family.sans': "-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif";
|
|
3
|
+
'font.family.monospace': "\"SFMono-Medium\", \"SF Mono\", \"Segoe UI Mono\", \"Roboto Mono\", \"Ubuntu Mono\", Menlo, Consolas, Courier, monospace";
|
|
4
|
+
'font.size.100': "14px";
|
|
5
|
+
'font.size.200': "16px";
|
|
6
|
+
'font.size.300': "20px";
|
|
7
|
+
'font.size.400': "24px";
|
|
8
|
+
'font.size.500': "29px";
|
|
9
|
+
'font.size.600': "35px";
|
|
10
|
+
'font.size.050': "11px";
|
|
11
|
+
'font.size.075': "12px";
|
|
12
|
+
'font.weight.regular': "400";
|
|
13
|
+
'font.weight.medium': "500";
|
|
14
|
+
'font.weight.semibold': "600";
|
|
15
|
+
'font.weight.bold': "700";
|
|
16
|
+
'font.lineHeight.100': "16px";
|
|
17
|
+
'font.lineHeight.200': "20px";
|
|
18
|
+
'font.lineHeight.300': "24px";
|
|
19
|
+
'font.lineHeight.400': "28px";
|
|
20
|
+
'font.lineHeight.500': "32px";
|
|
21
|
+
'font.lineHeight.600': "40px";
|
|
2
22
|
'spacing.scale.0': "0";
|
|
3
23
|
'spacing.scale.100': "0.5rem";
|
|
4
24
|
'spacing.scale.150': "0.75rem";
|