@atlaskit/tokens 0.10.35 → 0.11.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 +15 -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/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/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/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/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/package.json +5 -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
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
3
|
*
|
|
4
|
-
* Token names mapped to their value in the default Atlassian themes ('light
|
|
4
|
+
* Token names mapped to their value in the default Atlassian themes ('light').
|
|
5
5
|
* These default values are used by the Babel plugin to optionally provide automatic fallbacks.
|
|
6
6
|
*
|
|
7
|
-
* @codegen <<SignedSource::
|
|
7
|
+
* @codegen <<SignedSource::6774c0c721b46e66ada20e02efc078c0>>
|
|
8
8
|
* @codegenCommand yarn build tokens
|
|
9
9
|
*/
|
|
10
10
|
declare const defaultTokenValues: {
|
|
@@ -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
|
+
declare const defaultTokenValues: {
|
|
11
|
+
readonly 'font.family.sans': "-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif";
|
|
12
|
+
readonly 'font.family.monospace': "\"SFMono-Medium\", \"SF Mono\", \"Segoe UI Mono\", \"Roboto Mono\", \"Ubuntu Mono\", Menlo, Consolas, Courier, monospace";
|
|
13
|
+
readonly 'font.size.100': "14px";
|
|
14
|
+
readonly 'font.size.200': "16px";
|
|
15
|
+
readonly 'font.size.300': "20px";
|
|
16
|
+
readonly 'font.size.400': "24px";
|
|
17
|
+
readonly 'font.size.500': "29px";
|
|
18
|
+
readonly 'font.size.600': "35px";
|
|
19
|
+
readonly 'font.size.050': "11px";
|
|
20
|
+
readonly 'font.size.075': "12px";
|
|
21
|
+
readonly 'font.weight.regular': "400";
|
|
22
|
+
readonly 'font.weight.medium': "500";
|
|
23
|
+
readonly 'font.weight.semibold': "600";
|
|
24
|
+
readonly 'font.weight.bold': "700";
|
|
25
|
+
readonly 'font.lineHeight.100': "16px";
|
|
26
|
+
readonly 'font.lineHeight.200': "20px";
|
|
27
|
+
readonly 'font.lineHeight.300': "24px";
|
|
28
|
+
readonly 'font.lineHeight.400': "28px";
|
|
29
|
+
readonly 'font.lineHeight.500': "32px";
|
|
30
|
+
readonly 'font.lineHeight.600': "40px";
|
|
31
|
+
};
|
|
32
|
+
export default defaultTokenValues;
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
declare const tokens: {
|
|
7
|
+
readonly 'font.family.sans': "--ds-font-family-sans";
|
|
8
|
+
readonly 'font.family.monospace': "--ds-font-family-monospace";
|
|
9
|
+
readonly 'font.size.100': "--ds-font-size-100";
|
|
10
|
+
readonly 'font.size.200': "--ds-font-size-200";
|
|
11
|
+
readonly 'font.size.300': "--ds-font-size-300";
|
|
12
|
+
readonly 'font.size.400': "--ds-font-size-400";
|
|
13
|
+
readonly 'font.size.500': "--ds-font-size-500";
|
|
14
|
+
readonly 'font.size.600': "--ds-font-size-600";
|
|
15
|
+
readonly 'font.size.050': "--ds-font-size-050";
|
|
16
|
+
readonly 'font.size.075': "--ds-font-size-075";
|
|
17
|
+
readonly 'font.weight.regular': "--ds-font-weight-regular";
|
|
18
|
+
readonly 'font.weight.medium': "--ds-font-weight-medium";
|
|
19
|
+
readonly 'font.weight.semibold': "--ds-font-weight-semibold";
|
|
20
|
+
readonly 'font.weight.bold': "--ds-font-weight-bold";
|
|
21
|
+
readonly 'font.lineHeight.100': "--ds-font-lineHeight-100";
|
|
22
|
+
readonly 'font.lineHeight.200': "--ds-font-lineHeight-200";
|
|
23
|
+
readonly 'font.lineHeight.300': "--ds-font-lineHeight-300";
|
|
24
|
+
readonly 'font.lineHeight.400': "--ds-font-lineHeight-400";
|
|
25
|
+
readonly 'font.lineHeight.500': "--ds-font-lineHeight-500";
|
|
26
|
+
readonly 'font.lineHeight.600': "--ds-font-lineHeight-600";
|
|
27
|
+
};
|
|
28
|
+
export declare type CSSTokenMap = {
|
|
29
|
+
'font.family.sans': 'var(--ds-font-family-sans)';
|
|
30
|
+
'font.family.monospace': 'var(--ds-font-family-monospace)';
|
|
31
|
+
'font.size.100': 'var(--ds-font-size-100)';
|
|
32
|
+
'font.size.200': 'var(--ds-font-size-200)';
|
|
33
|
+
'font.size.300': 'var(--ds-font-size-300)';
|
|
34
|
+
'font.size.400': 'var(--ds-font-size-400)';
|
|
35
|
+
'font.size.500': 'var(--ds-font-size-500)';
|
|
36
|
+
'font.size.600': 'var(--ds-font-size-600)';
|
|
37
|
+
'font.size.050': 'var(--ds-font-size-050)';
|
|
38
|
+
'font.size.075': 'var(--ds-font-size-075)';
|
|
39
|
+
'font.weight.regular': 'var(--ds-font-weight-regular)';
|
|
40
|
+
'font.weight.medium': 'var(--ds-font-weight-medium)';
|
|
41
|
+
'font.weight.semibold': 'var(--ds-font-weight-semibold)';
|
|
42
|
+
'font.weight.bold': 'var(--ds-font-weight-bold)';
|
|
43
|
+
'font.lineHeight.100': 'var(--ds-font-lineHeight-100)';
|
|
44
|
+
'font.lineHeight.200': 'var(--ds-font-lineHeight-200)';
|
|
45
|
+
'font.lineHeight.300': 'var(--ds-font-lineHeight-300)';
|
|
46
|
+
'font.lineHeight.400': 'var(--ds-font-lineHeight-400)';
|
|
47
|
+
'font.lineHeight.500': 'var(--ds-font-lineHeight-500)';
|
|
48
|
+
'font.lineHeight.600': 'var(--ds-font-lineHeight-600)';
|
|
49
|
+
};
|
|
50
|
+
export default tokens;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::26cbb810692cdf86cc645f8f2e64e557>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
export declare type InternalTokenIds = 'font.family.sans' | 'font.family.monospace' | 'font.size.100' | 'font.size.200' | 'font.size.300' | 'font.size.400' | 'font.size.500' | 'font.size.600' | 'font.size.050' | 'font.size.075' | 'font.weight.regular' | 'font.weight.medium' | 'font.weight.semibold' | 'font.weight.bold' | 'font.lineHeight.100' | 'font.lineHeight.200' | 'font.lineHeight.300' | 'font.lineHeight.400' | 'font.lineHeight.500' | 'font.lineHeight.600';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::58b491a5e9ad73249947dac36265057f>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
export declare type ActiveTokens = 'font.family.sans' | 'font.family.monospace' | 'font.size.100' | 'font.size.200' | 'font.size.300' | 'font.size.400' | 'font.size.500' | 'font.size.600' | 'font.size.050' | 'font.size.075' | 'font.weight.regular' | 'font.weight.medium' | 'font.weight.semibold' | 'font.weight.bold' | 'font.lineHeight.100' | 'font.lineHeight.200' | 'font.lineHeight.300' | 'font.lineHeight.400' | 'font.lineHeight.500' | 'font.lineHeight.600';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const THEME_DATA_ATTRIBUTE = "data-theme";
|
|
2
2
|
export declare const COLOR_MODE_ATTRIBUTE = "data-color-mode";
|
|
3
|
-
export declare const DEFAULT_THEME = "light
|
|
3
|
+
export declare const DEFAULT_THEME = "light";
|
|
4
4
|
export declare const CSS_PREFIX = "ds";
|
|
5
5
|
export declare const CSS_VAR_FULL: string[];
|
|
6
6
|
export declare const TOKEN_NOT_FOUND_CSS_VAR: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FontFamilyPaletteTokenSchema } from '../../types';
|
|
2
|
+
export declare type FontFamilyPaletteValues = 'FontFamilySans' | 'FontFamilyMonospace';
|
|
3
|
+
export declare type BaseToken = keyof FontFamilyPaletteTokenSchema<FontFamilyPaletteValues>['fontFamily'];
|
|
4
|
+
declare const palette: FontFamilyPaletteTokenSchema<FontFamilyPaletteValues>;
|
|
5
|
+
export default palette;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FontSizeScaleTokenSchema } from '../../types';
|
|
2
|
+
export declare type FontSizeScaleValues = 'FontSize050' | 'FontSize075' | 'FontSize100' | 'FontSize200' | 'FontSize300' | 'FontSize400' | 'FontSize500' | 'FontSize600';
|
|
3
|
+
export declare type BaseToken = keyof FontSizeScaleTokenSchema<FontSizeScaleValues>['fontSize'];
|
|
4
|
+
declare const scale: FontSizeScaleTokenSchema<FontSizeScaleValues>;
|
|
5
|
+
export default scale;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FontWeightScaleTokenSchema } from '../../types';
|
|
2
|
+
export declare type FontWeightScaleValues = 'FontWeightRegular' | 'FontWeightMedium' | 'FontWeightSemiBold' | 'FontWeightBold';
|
|
3
|
+
export declare type BaseToken = keyof FontWeightScaleTokenSchema<FontWeightScaleValues>['fontWeight'];
|
|
4
|
+
declare const scale: FontWeightScaleTokenSchema<FontWeightScaleValues>;
|
|
5
|
+
export default scale;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FontFamilyPaletteTokenSchema, FontSizeScaleTokenSchema, FontWeightScaleTokenSchema, LineHeightScaleTokenSchema } from '../../types';
|
|
2
|
+
import { FontFamilyPaletteValues } from './font-family';
|
|
3
|
+
import { FontSizeScaleValues } from './font-size-scale';
|
|
4
|
+
import { FontWeightScaleValues } from './font-weight-scale';
|
|
5
|
+
import { LineHeightScaleValues } from './line-height-scale';
|
|
6
|
+
export declare type AtlassianTokenSchema = {
|
|
7
|
+
typography: FontSizeScaleTokenSchema<FontSizeScaleValues> | FontWeightScaleTokenSchema<FontWeightScaleValues> | FontFamilyPaletteTokenSchema<FontFamilyPaletteValues> | LineHeightScaleTokenSchema<LineHeightScaleValues>;
|
|
8
|
+
};
|
|
9
|
+
declare const typographyPalette: AtlassianTokenSchema;
|
|
10
|
+
export default typographyPalette;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { LineHeightScaleTokenSchema } from '../../types';
|
|
2
|
+
export declare type LineHeightScaleValues = 'LineHeight100' | 'LineHeight200' | 'LineHeight300' | 'LineHeight400' | 'LineHeight500' | 'LineHeight600';
|
|
3
|
+
export declare type BaseToken = keyof LineHeightScaleTokenSchema<LineHeightScaleValues>['lineHeight'];
|
|
4
|
+
declare const scale: LineHeightScaleTokenSchema<LineHeightScaleValues>;
|
|
5
|
+
export default scale;
|
|
@@ -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 declare type Themes = 'atlassian-light' | 'atlassian-dark' | 'atlassian-legacy-light' | 'atlassian-legacy-dark' | 'atlassian-spacing';
|
|
9
|
+
export declare type Themes = 'atlassian-light' | 'atlassian-dark' | 'atlassian-legacy-light' | 'atlassian-legacy-dark' | 'atlassian-spacing' | 'atlassian-typography';
|
|
10
10
|
export declare type ThemeFileNames = Themes;
|
|
11
11
|
/**
|
|
12
12
|
* Theme kinds: The type of theme.
|
|
@@ -27,13 +27,13 @@ export declare type ThemeColorModes = 'light' | 'dark';
|
|
|
27
27
|
*
|
|
28
28
|
* These ids must be kebab case
|
|
29
29
|
*/
|
|
30
|
-
export declare type ThemeIds = 'light' | 'dark' | 'legacy-light' | 'legacy-dark' | 'spacing';
|
|
30
|
+
export declare type ThemeIds = 'light' | 'dark' | 'legacy-light' | 'legacy-dark' | 'spacing' | 'typography';
|
|
31
31
|
/**
|
|
32
32
|
* Palettes: The set of base tokens a given theme may be populated with.
|
|
33
33
|
* For example: legacy light & dark themes use the "legacyPalette" containing colors from our
|
|
34
34
|
* previous color set.
|
|
35
35
|
*/
|
|
36
|
-
export declare type Palettes = 'defaultPalette' | 'legacyPalette' | 'spacingScale';
|
|
36
|
+
export declare type Palettes = 'defaultPalette' | 'legacyPalette' | 'spacingScale' | 'typographyPalette';
|
|
37
37
|
/**
|
|
38
38
|
* ThemeConfig: the source of truth for all theme meta-data.
|
|
39
39
|
* This object should be used whenever interfacing with themes.
|
|
@@ -47,6 +47,8 @@ interface ThemeConfig {
|
|
|
47
47
|
mode: ThemeColorModes;
|
|
48
48
|
} | {
|
|
49
49
|
type: 'spacing';
|
|
50
|
+
} | {
|
|
51
|
+
type: 'typography';
|
|
50
52
|
};
|
|
51
53
|
}
|
|
52
54
|
declare const themeConfig: Record<Themes, ThemeConfig>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { BaseToken } from '../../../palettes/palette';
|
|
2
2
|
import type { AttributeSchema, SurfaceTokenSchema } from '../../../types';
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const surface: AttributeSchema<SurfaceTokenSchema<BaseToken>>;
|
|
4
|
+
export default surface;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InternalTokenIds } from './artifacts/types-internal';
|
|
2
|
-
export declare type Groups = 'raw' | 'paint' | 'shadow' | 'palette' | 'opacity' | 'spacing' | 'scale';
|
|
2
|
+
export declare type Groups = 'raw' | 'paint' | 'shadow' | 'palette' | 'opacity' | 'spacing' | 'scale' | 'fontSize' | 'fontWeight' | 'fontFamily' | 'lineHeight';
|
|
3
3
|
export declare type ActiveTokenState = 'active';
|
|
4
4
|
export declare type DeprecatedTokenState = 'deprecated';
|
|
5
5
|
export declare type DeletedTokenState = 'deleted';
|
|
@@ -97,6 +97,11 @@ export declare type ShadowToken<BaseToken> = DesignToken<Array<{
|
|
|
97
97
|
}>, 'shadow'>;
|
|
98
98
|
export declare type OpacityToken = DesignToken<string, 'opacity'>;
|
|
99
99
|
export declare type SpacingToken<BaseToken> = DesignToken<BaseToken, 'spacing'>;
|
|
100
|
+
export declare type FontSizeToken<BaseToken> = DesignToken<BaseToken, 'fontSize'>;
|
|
101
|
+
export declare type FontWeightToken<BaseToken> = DesignToken<BaseToken, 'fontWeight'>;
|
|
102
|
+
export declare type FontFamilyToken<BaseToken> = DesignToken<BaseToken, 'fontFamily'>;
|
|
103
|
+
export declare type LineHeightToken<BaseToken> = DesignToken<BaseToken, 'lineHeight'>;
|
|
104
|
+
export declare type TypographyToken<BaseToken> = DesignToken<BaseToken, 'fontSize' | 'fontWeight' | 'fontFamily' | 'lineHeight'>;
|
|
100
105
|
export declare type RawToken = DesignToken<string, 'raw'>;
|
|
101
106
|
export interface ScaleToken extends BaseToken<string, 'scale'> {
|
|
102
107
|
attributes: {
|
|
@@ -119,6 +124,18 @@ export interface SpacingScaleTokenSchema<ScaleValues extends string> {
|
|
|
119
124
|
scale: Record<ScaleValues, ScaleToken>;
|
|
120
125
|
};
|
|
121
126
|
}
|
|
127
|
+
export interface FontSizeScaleTokenSchema<ScaleValues extends string> {
|
|
128
|
+
fontSize: Record<ScaleValues, ScaleToken>;
|
|
129
|
+
}
|
|
130
|
+
export interface FontWeightScaleTokenSchema<ScaleValues extends string> {
|
|
131
|
+
fontWeight: Record<ScaleValues, ScaleToken>;
|
|
132
|
+
}
|
|
133
|
+
export interface FontFamilyPaletteTokenSchema<ScaleValues extends string> {
|
|
134
|
+
fontFamily: Record<ScaleValues, ScaleToken>;
|
|
135
|
+
}
|
|
136
|
+
export interface LineHeightScaleTokenSchema<ScaleValues extends string> {
|
|
137
|
+
lineHeight: Record<ScaleValues, ScaleToken>;
|
|
138
|
+
}
|
|
122
139
|
export interface BackgroundColorTokenSchema<BaseToken> {
|
|
123
140
|
color: {
|
|
124
141
|
blanket: {
|
|
@@ -795,4 +812,48 @@ export interface SpacingTokenSchema<BaseToken> {
|
|
|
795
812
|
};
|
|
796
813
|
};
|
|
797
814
|
}
|
|
815
|
+
export interface FontSizeTokenSchema<BaseToken> {
|
|
816
|
+
font: {
|
|
817
|
+
size: {
|
|
818
|
+
'050': TypographyToken<BaseToken>;
|
|
819
|
+
'075': TypographyToken<BaseToken>;
|
|
820
|
+
'100': TypographyToken<BaseToken>;
|
|
821
|
+
'200': TypographyToken<BaseToken>;
|
|
822
|
+
'300': TypographyToken<BaseToken>;
|
|
823
|
+
'400': TypographyToken<BaseToken>;
|
|
824
|
+
'500': TypographyToken<BaseToken>;
|
|
825
|
+
'600': TypographyToken<BaseToken>;
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
}
|
|
829
|
+
export interface FontWeightTokenSchema<BaseToken> {
|
|
830
|
+
font: {
|
|
831
|
+
weight: {
|
|
832
|
+
regular: TypographyToken<BaseToken>;
|
|
833
|
+
medium: TypographyToken<BaseToken>;
|
|
834
|
+
semibold: TypographyToken<BaseToken>;
|
|
835
|
+
bold: TypographyToken<BaseToken>;
|
|
836
|
+
};
|
|
837
|
+
};
|
|
838
|
+
}
|
|
839
|
+
export interface FontFamilyTokenSchema<BaseToken> {
|
|
840
|
+
font: {
|
|
841
|
+
family: {
|
|
842
|
+
sans: TypographyToken<BaseToken>;
|
|
843
|
+
monospace: TypographyToken<BaseToken>;
|
|
844
|
+
};
|
|
845
|
+
};
|
|
846
|
+
}
|
|
847
|
+
export interface LineHeightTokenSchema<BaseToken> {
|
|
848
|
+
font: {
|
|
849
|
+
lineHeight: {
|
|
850
|
+
'100': TypographyToken<BaseToken>;
|
|
851
|
+
'200': TypographyToken<BaseToken>;
|
|
852
|
+
'300': TypographyToken<BaseToken>;
|
|
853
|
+
'400': TypographyToken<BaseToken>;
|
|
854
|
+
'500': TypographyToken<BaseToken>;
|
|
855
|
+
'600': TypographyToken<BaseToken>;
|
|
856
|
+
};
|
|
857
|
+
};
|
|
858
|
+
}
|
|
798
859
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"author": "Atlassian Pty Ltd",
|
|
5
5
|
"description": "Design tokens are the single source of truth to name and store design decisions.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -70,11 +70,11 @@
|
|
|
70
70
|
"@atlaskit/code": "^14.4.0",
|
|
71
71
|
"@atlaskit/docs": "^9.0.10",
|
|
72
72
|
"@atlaskit/dropdown-menu": "^11.5.0",
|
|
73
|
-
"@atlaskit/ds-explorations": "^1.
|
|
73
|
+
"@atlaskit/ds-explorations": "^1.2.0",
|
|
74
74
|
"@atlaskit/dynamic-table": "^14.8.0",
|
|
75
75
|
"@atlaskit/empty-state": "^7.4.0",
|
|
76
|
-
"@atlaskit/focus-ring": "^1.
|
|
77
|
-
"@atlaskit/heading": "^0.
|
|
76
|
+
"@atlaskit/focus-ring": "^1.2.0",
|
|
77
|
+
"@atlaskit/heading": "^1.0.0",
|
|
78
78
|
"@atlaskit/icon": "^21.11.0",
|
|
79
79
|
"@atlaskit/lozenge": "^11.3.0",
|
|
80
80
|
"@atlaskit/modal-dialog": "^12.4.0",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"copy-webpack-plugin": "^6.4.0",
|
|
98
98
|
"fuse.js": "^6.6.2",
|
|
99
99
|
"lodash": "^4.17.21",
|
|
100
|
-
"prettier": "^2.
|
|
100
|
+
"prettier": "^2.7.0",
|
|
101
101
|
"react": "^16.8.0",
|
|
102
102
|
"react-use-clipboard": "^1.0.0",
|
|
103
103
|
"style-dictionary": "^3.0.0",
|
package/report.api.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
export type CSSToken = CSSTokenMap[keyof CSSTokenMap];
|
|
19
19
|
|
|
20
20
|
// @public (undocumented)
|
|
21
|
-
type CSSTokenMap = CSSTokenMap_2 & CSSTokenMap_3;
|
|
21
|
+
type CSSTokenMap = CSSTokenMap_2 & CSSTokenMap_3 & CSSTokenMap_4;
|
|
22
22
|
|
|
23
23
|
// @public (undocumented)
|
|
24
24
|
type CSSTokenMap_2 = {
|
|
@@ -397,8 +397,36 @@ type CSSTokenMap_3 = {
|
|
|
397
397
|
'spacing.inset.300': 'var(--ds-inset-300)';
|
|
398
398
|
};
|
|
399
399
|
|
|
400
|
+
// @public (undocumented)
|
|
401
|
+
type CSSTokenMap_4 = {
|
|
402
|
+
'font.family.sans': 'var(--ds-font-family-sans)';
|
|
403
|
+
'font.family.monospace': 'var(--ds-font-family-monospace)';
|
|
404
|
+
'font.size.100': 'var(--ds-font-size-100)';
|
|
405
|
+
'font.size.200': 'var(--ds-font-size-200)';
|
|
406
|
+
'font.size.300': 'var(--ds-font-size-300)';
|
|
407
|
+
'font.size.400': 'var(--ds-font-size-400)';
|
|
408
|
+
'font.size.500': 'var(--ds-font-size-500)';
|
|
409
|
+
'font.size.600': 'var(--ds-font-size-600)';
|
|
410
|
+
'font.size.050': 'var(--ds-font-size-050)';
|
|
411
|
+
'font.size.075': 'var(--ds-font-size-075)';
|
|
412
|
+
'font.weight.regular': 'var(--ds-font-weight-regular)';
|
|
413
|
+
'font.weight.medium': 'var(--ds-font-weight-medium)';
|
|
414
|
+
'font.weight.semibold': 'var(--ds-font-weight-semibold)';
|
|
415
|
+
'font.weight.bold': 'var(--ds-font-weight-bold)';
|
|
416
|
+
'font.lineHeight.100': 'var(--ds-font-lineHeight-100)';
|
|
417
|
+
'font.lineHeight.200': 'var(--ds-font-lineHeight-200)';
|
|
418
|
+
'font.lineHeight.300': 'var(--ds-font-lineHeight-300)';
|
|
419
|
+
'font.lineHeight.400': 'var(--ds-font-lineHeight-400)';
|
|
420
|
+
'font.lineHeight.500': 'var(--ds-font-lineHeight-500)';
|
|
421
|
+
'font.lineHeight.600': 'var(--ds-font-lineHeight-600)';
|
|
422
|
+
};
|
|
423
|
+
|
|
400
424
|
// @public
|
|
401
|
-
type Palettes =
|
|
425
|
+
type Palettes =
|
|
426
|
+
| 'defaultPalette'
|
|
427
|
+
| 'legacyPalette'
|
|
428
|
+
| 'spacingScale'
|
|
429
|
+
| 'typographyPalette';
|
|
402
430
|
|
|
403
431
|
// @public
|
|
404
432
|
export const setGlobalTheme: (
|
|
@@ -419,6 +447,9 @@ interface ThemeConfig {
|
|
|
419
447
|
}
|
|
420
448
|
| {
|
|
421
449
|
type: 'spacing';
|
|
450
|
+
}
|
|
451
|
+
| {
|
|
452
|
+
type: 'typography';
|
|
422
453
|
};
|
|
423
454
|
// (undocumented)
|
|
424
455
|
displayName: string;
|
|
@@ -437,7 +468,8 @@ export type ThemeIds =
|
|
|
437
468
|
| 'legacy-dark'
|
|
438
469
|
| 'legacy-light'
|
|
439
470
|
| 'light'
|
|
440
|
-
| 'spacing'
|
|
471
|
+
| 'spacing'
|
|
472
|
+
| 'typography';
|
|
441
473
|
|
|
442
474
|
// @public
|
|
443
475
|
export class ThemeMutationObserver {
|
|
@@ -458,7 +490,8 @@ export type Themes =
|
|
|
458
490
|
| 'atlassian-legacy-dark'
|
|
459
491
|
| 'atlassian-legacy-light'
|
|
460
492
|
| 'atlassian-light'
|
|
461
|
-
| 'atlassian-spacing'
|
|
493
|
+
| 'atlassian-spacing'
|
|
494
|
+
| 'atlassian-typography';
|
|
462
495
|
|
|
463
496
|
// @public
|
|
464
497
|
export function token<T extends keyof Tokens>(
|
|
@@ -471,6 +504,26 @@ type Tokens = typeof tokens;
|
|
|
471
504
|
|
|
472
505
|
// @public (undocumented)
|
|
473
506
|
const tokens: {
|
|
507
|
+
readonly 'font.family.sans': '--ds-font-family-sans';
|
|
508
|
+
readonly 'font.family.monospace': '--ds-font-family-monospace';
|
|
509
|
+
readonly 'font.size.100': '--ds-font-size-100';
|
|
510
|
+
readonly 'font.size.200': '--ds-font-size-200';
|
|
511
|
+
readonly 'font.size.300': '--ds-font-size-300';
|
|
512
|
+
readonly 'font.size.400': '--ds-font-size-400';
|
|
513
|
+
readonly 'font.size.500': '--ds-font-size-500';
|
|
514
|
+
readonly 'font.size.600': '--ds-font-size-600';
|
|
515
|
+
readonly 'font.size.050': '--ds-font-size-050';
|
|
516
|
+
readonly 'font.size.075': '--ds-font-size-075';
|
|
517
|
+
readonly 'font.weight.regular': '--ds-font-weight-regular';
|
|
518
|
+
readonly 'font.weight.medium': '--ds-font-weight-medium';
|
|
519
|
+
readonly 'font.weight.semibold': '--ds-font-weight-semibold';
|
|
520
|
+
readonly 'font.weight.bold': '--ds-font-weight-bold';
|
|
521
|
+
readonly 'font.lineHeight.100': '--ds-font-lineHeight-100';
|
|
522
|
+
readonly 'font.lineHeight.200': '--ds-font-lineHeight-200';
|
|
523
|
+
readonly 'font.lineHeight.300': '--ds-font-lineHeight-300';
|
|
524
|
+
readonly 'font.lineHeight.400': '--ds-font-lineHeight-400';
|
|
525
|
+
readonly 'font.lineHeight.500': '--ds-font-lineHeight-500';
|
|
526
|
+
readonly 'font.lineHeight.600': '--ds-font-lineHeight-600';
|
|
474
527
|
readonly 'spacing.scale.0': '--ds-scale-0';
|
|
475
528
|
readonly 'spacing.scale.100': '--ds-scale-100';
|
|
476
529
|
readonly 'spacing.scale.150': '--ds-scale-150';
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
export type CSSToken = CSSTokenMap[keyof CSSTokenMap];
|
|
9
9
|
|
|
10
10
|
// @public (undocumented)
|
|
11
|
-
type CSSTokenMap = CSSTokenMap_2 & CSSTokenMap_3;
|
|
11
|
+
type CSSTokenMap = CSSTokenMap_2 & CSSTokenMap_3 & CSSTokenMap_4;
|
|
12
12
|
|
|
13
13
|
// @public (undocumented)
|
|
14
14
|
type CSSTokenMap_2 = {
|
|
@@ -387,8 +387,32 @@ type CSSTokenMap_3 = {
|
|
|
387
387
|
'spacing.inset.300': 'var(--ds-inset-300)';
|
|
388
388
|
};
|
|
389
389
|
|
|
390
|
+
// @public (undocumented)
|
|
391
|
+
type CSSTokenMap_4 = {
|
|
392
|
+
'font.family.sans': 'var(--ds-font-family-sans)';
|
|
393
|
+
'font.family.monospace': 'var(--ds-font-family-monospace)';
|
|
394
|
+
'font.size.100': 'var(--ds-font-size-100)';
|
|
395
|
+
'font.size.200': 'var(--ds-font-size-200)';
|
|
396
|
+
'font.size.300': 'var(--ds-font-size-300)';
|
|
397
|
+
'font.size.400': 'var(--ds-font-size-400)';
|
|
398
|
+
'font.size.500': 'var(--ds-font-size-500)';
|
|
399
|
+
'font.size.600': 'var(--ds-font-size-600)';
|
|
400
|
+
'font.size.050': 'var(--ds-font-size-050)';
|
|
401
|
+
'font.size.075': 'var(--ds-font-size-075)';
|
|
402
|
+
'font.weight.regular': 'var(--ds-font-weight-regular)';
|
|
403
|
+
'font.weight.medium': 'var(--ds-font-weight-medium)';
|
|
404
|
+
'font.weight.semibold': 'var(--ds-font-weight-semibold)';
|
|
405
|
+
'font.weight.bold': 'var(--ds-font-weight-bold)';
|
|
406
|
+
'font.lineHeight.100': 'var(--ds-font-lineHeight-100)';
|
|
407
|
+
'font.lineHeight.200': 'var(--ds-font-lineHeight-200)';
|
|
408
|
+
'font.lineHeight.300': 'var(--ds-font-lineHeight-300)';
|
|
409
|
+
'font.lineHeight.400': 'var(--ds-font-lineHeight-400)';
|
|
410
|
+
'font.lineHeight.500': 'var(--ds-font-lineHeight-500)';
|
|
411
|
+
'font.lineHeight.600': 'var(--ds-font-lineHeight-600)';
|
|
412
|
+
};
|
|
413
|
+
|
|
390
414
|
// @public
|
|
391
|
-
type Palettes = 'defaultPalette' | 'legacyPalette' | 'spacingScale';
|
|
415
|
+
type Palettes = 'defaultPalette' | 'legacyPalette' | 'spacingScale' | 'typographyPalette';
|
|
392
416
|
|
|
393
417
|
// @public
|
|
394
418
|
export const setGlobalTheme: (themeId: ThemeIds, shouldMatchSystem?: boolean) => void;
|
|
@@ -404,6 +428,8 @@ interface ThemeConfig {
|
|
|
404
428
|
mode: ThemeColorModes;
|
|
405
429
|
} | {
|
|
406
430
|
type: 'spacing';
|
|
431
|
+
} | {
|
|
432
|
+
type: 'typography';
|
|
407
433
|
};
|
|
408
434
|
// (undocumented)
|
|
409
435
|
displayName: string;
|
|
@@ -417,7 +443,7 @@ interface ThemeConfig {
|
|
|
417
443
|
export const themeConfig: Record<Themes, ThemeConfig>;
|
|
418
444
|
|
|
419
445
|
// @public
|
|
420
|
-
export type ThemeIds = 'dark' | 'legacy-dark' | 'legacy-light' | 'light' | 'spacing';
|
|
446
|
+
export type ThemeIds = 'dark' | 'legacy-dark' | 'legacy-light' | 'light' | 'spacing' | 'typography';
|
|
421
447
|
|
|
422
448
|
// @public
|
|
423
449
|
export class ThemeMutationObserver {
|
|
@@ -433,7 +459,7 @@ export class ThemeMutationObserver {
|
|
|
433
459
|
}
|
|
434
460
|
|
|
435
461
|
// @public
|
|
436
|
-
export type Themes = 'atlassian-dark' | 'atlassian-legacy-dark' | 'atlassian-legacy-light' | 'atlassian-light' | 'atlassian-spacing';
|
|
462
|
+
export type Themes = 'atlassian-dark' | 'atlassian-legacy-dark' | 'atlassian-legacy-light' | 'atlassian-light' | 'atlassian-spacing' | 'atlassian-typography';
|
|
437
463
|
|
|
438
464
|
// @public
|
|
439
465
|
export function token<T extends keyof Tokens>(path: T, fallback?: string): CSSTokenMap[T];
|
|
@@ -443,6 +469,26 @@ type Tokens = typeof tokens;
|
|
|
443
469
|
|
|
444
470
|
// @public (undocumented)
|
|
445
471
|
const tokens: {
|
|
472
|
+
readonly 'font.family.sans': "--ds-font-family-sans";
|
|
473
|
+
readonly 'font.family.monospace': "--ds-font-family-monospace";
|
|
474
|
+
readonly 'font.size.100': "--ds-font-size-100";
|
|
475
|
+
readonly 'font.size.200': "--ds-font-size-200";
|
|
476
|
+
readonly 'font.size.300': "--ds-font-size-300";
|
|
477
|
+
readonly 'font.size.400': "--ds-font-size-400";
|
|
478
|
+
readonly 'font.size.500': "--ds-font-size-500";
|
|
479
|
+
readonly 'font.size.600': "--ds-font-size-600";
|
|
480
|
+
readonly 'font.size.050': "--ds-font-size-050";
|
|
481
|
+
readonly 'font.size.075': "--ds-font-size-075";
|
|
482
|
+
readonly 'font.weight.regular': "--ds-font-weight-regular";
|
|
483
|
+
readonly 'font.weight.medium': "--ds-font-weight-medium";
|
|
484
|
+
readonly 'font.weight.semibold': "--ds-font-weight-semibold";
|
|
485
|
+
readonly 'font.weight.bold': "--ds-font-weight-bold";
|
|
486
|
+
readonly 'font.lineHeight.100': "--ds-font-lineHeight-100";
|
|
487
|
+
readonly 'font.lineHeight.200': "--ds-font-lineHeight-200";
|
|
488
|
+
readonly 'font.lineHeight.300': "--ds-font-lineHeight-300";
|
|
489
|
+
readonly 'font.lineHeight.400': "--ds-font-lineHeight-400";
|
|
490
|
+
readonly 'font.lineHeight.500': "--ds-font-lineHeight-500";
|
|
491
|
+
readonly 'font.lineHeight.600': "--ds-font-lineHeight-600";
|
|
446
492
|
readonly 'spacing.scale.0': "--ds-scale-0";
|
|
447
493
|
readonly 'spacing.scale.100': "--ds-scale-100";
|
|
448
494
|
readonly 'spacing.scale.150': "--ds-scale-150";
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::4413d3bf5e16367be3a572667916731e>>
|
|
4
|
-
* @codegenCommand yarn build tokens
|
|
5
|
-
*/
|
|
6
|
-
declare const tokens: ({
|
|
7
|
-
value: number;
|
|
8
|
-
attributes: {
|
|
9
|
-
group: string;
|
|
10
|
-
category: string;
|
|
11
|
-
};
|
|
12
|
-
filePath: string;
|
|
13
|
-
isSource: boolean;
|
|
14
|
-
original: {
|
|
15
|
-
value: number;
|
|
16
|
-
attributes: {
|
|
17
|
-
group: string;
|
|
18
|
-
category: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
name: string;
|
|
22
|
-
path: string[];
|
|
23
|
-
} | {
|
|
24
|
-
value: string;
|
|
25
|
-
attributes: {
|
|
26
|
-
group: string;
|
|
27
|
-
category: string;
|
|
28
|
-
};
|
|
29
|
-
filePath: string;
|
|
30
|
-
isSource: boolean;
|
|
31
|
-
original: {
|
|
32
|
-
value: string;
|
|
33
|
-
attributes: {
|
|
34
|
-
group: string;
|
|
35
|
-
category: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
name: string;
|
|
39
|
-
path: string[];
|
|
40
|
-
})[];
|
|
41
|
-
export default tokens;
|