@atlaskit/tokens 1.4.4 → 1.5.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.
Files changed (79) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/artifacts/palettes-raw/shape-palette.js +17 -17
  3. package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +31 -35
  4. package/dist/cjs/artifacts/palettes-raw/typography-palette.js +15 -15
  5. package/dist/cjs/artifacts/themes/atlassian-shape.js +2 -2
  6. package/dist/cjs/artifacts/themes/atlassian-spacing.js +2 -2
  7. package/dist/cjs/artifacts/themes/atlassian-typography.js +2 -2
  8. package/dist/cjs/artifacts/token-default-values.js +17 -17
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +9 -9
  10. package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +15 -43
  11. package/dist/cjs/get-token-value.js +1 -1
  12. package/dist/cjs/get-token.js +1 -1
  13. package/dist/cjs/palettes/shape-palette.js +8 -8
  14. package/dist/cjs/palettes/spacing-scale.js +16 -18
  15. package/dist/cjs/palettes/typography-palette.js +14 -14
  16. package/dist/cjs/tokens/default/spacing/spacing.js +0 -14
  17. package/dist/cjs/version.json +1 -1
  18. package/dist/es2019/artifacts/palettes-raw/shape-palette.js +17 -17
  19. package/dist/es2019/artifacts/palettes-raw/spacing-scale.js +31 -35
  20. package/dist/es2019/artifacts/palettes-raw/typography-palette.js +15 -15
  21. package/dist/es2019/artifacts/themes/atlassian-shape.js +2 -2
  22. package/dist/es2019/artifacts/themes/atlassian-spacing.js +2 -2
  23. package/dist/es2019/artifacts/themes/atlassian-typography.js +15 -15
  24. package/dist/es2019/artifacts/token-default-values.js +17 -17
  25. package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +9 -9
  26. package/dist/es2019/artifacts/tokens-raw/atlassian-spacing.js +15 -43
  27. package/dist/es2019/get-token-value.js +1 -1
  28. package/dist/es2019/get-token.js +1 -1
  29. package/dist/es2019/palettes/shape-palette.js +8 -8
  30. package/dist/es2019/palettes/spacing-scale.js +16 -18
  31. package/dist/es2019/palettes/typography-palette.js +14 -14
  32. package/dist/es2019/tokens/default/spacing/spacing.js +0 -14
  33. package/dist/es2019/version.json +1 -1
  34. package/dist/esm/artifacts/palettes-raw/shape-palette.js +17 -17
  35. package/dist/esm/artifacts/palettes-raw/spacing-scale.js +31 -35
  36. package/dist/esm/artifacts/palettes-raw/typography-palette.js +15 -15
  37. package/dist/esm/artifacts/themes/atlassian-shape.js +2 -2
  38. package/dist/esm/artifacts/themes/atlassian-spacing.js +2 -2
  39. package/dist/esm/artifacts/themes/atlassian-typography.js +2 -2
  40. package/dist/esm/artifacts/token-default-values.js +17 -17
  41. package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +9 -9
  42. package/dist/esm/artifacts/tokens-raw/atlassian-spacing.js +15 -43
  43. package/dist/esm/get-token-value.js +1 -1
  44. package/dist/esm/get-token.js +1 -1
  45. package/dist/esm/palettes/shape-palette.js +8 -8
  46. package/dist/esm/palettes/spacing-scale.js +16 -18
  47. package/dist/esm/palettes/typography-palette.js +14 -14
  48. package/dist/esm/tokens/default/spacing/spacing.js +0 -14
  49. package/dist/esm/version.json +1 -1
  50. package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +18 -3
  51. package/dist/types/artifacts/palettes-raw/spacing-scale.d.ts +4 -23
  52. package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +18 -3
  53. package/dist/types/artifacts/themes/atlassian-shape.d.ts +2 -2
  54. package/dist/types/artifacts/themes/atlassian-spacing.d.ts +2 -2
  55. package/dist/types/artifacts/themes/atlassian-typography.d.ts +2 -2
  56. package/dist/types/artifacts/token-default-values.d.ts +17 -17
  57. package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +1 -1
  58. package/dist/types/artifacts/tokens-raw/atlassian-spacing.d.ts +1 -5
  59. package/dist/types/palettes/shape-palette.d.ts +8 -8
  60. package/dist/types/palettes/spacing-scale.d.ts +14 -16
  61. package/dist/types/types.d.ts +3 -4
  62. package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +18 -3
  63. package/dist/types-ts4.5/artifacts/palettes-raw/spacing-scale.d.ts +4 -23
  64. package/dist/types-ts4.5/artifacts/palettes-raw/typography-palette.d.ts +18 -3
  65. package/dist/types-ts4.5/artifacts/themes/atlassian-shape.d.ts +2 -2
  66. package/dist/types-ts4.5/artifacts/themes/atlassian-spacing.d.ts +2 -2
  67. package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +2 -2
  68. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +17 -17
  69. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +1 -1
  70. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-spacing.d.ts +1 -5
  71. package/dist/types-ts4.5/palettes/shape-palette.d.ts +8 -8
  72. package/dist/types-ts4.5/palettes/spacing-scale.d.ts +14 -16
  73. package/dist/types-ts4.5/types.d.ts +3 -4
  74. package/figma/atlassian-shape.json +8 -8
  75. package/figma/atlassian-spacing.json +14 -28
  76. package/figma/atlassian-typography.json +6 -6
  77. package/package.json +4 -4
  78. package/report.api.md +14 -17
  79. package/tmp/api-report-tmp.d.ts +14 -17
@@ -5,90 +5,88 @@ import type { SpacingScaleTokenSchema } from '../types';
5
5
  export type SpacingPaletteToken = keyof typeof baseSpacingTokens;
6
6
  declare const baseSpacingTokens: {
7
7
  readonly Space0: {
8
- readonly value: "0";
8
+ readonly value: 0;
9
9
  readonly attributes: {
10
10
  readonly group: "spacing";
11
11
  };
12
12
  };
13
13
  readonly Space025: {
14
- readonly value: "0.125rem";
14
+ readonly value: 2;
15
15
  readonly attributes: {
16
16
  readonly group: "spacing";
17
17
  };
18
18
  };
19
19
  readonly Space050: {
20
- readonly value: "0.25rem";
20
+ readonly value: 4;
21
21
  readonly attributes: {
22
22
  readonly group: "spacing";
23
23
  };
24
24
  };
25
25
  readonly Space075: {
26
- readonly value: "0.375rem";
26
+ readonly value: 6;
27
27
  readonly attributes: {
28
28
  readonly group: "spacing";
29
29
  };
30
30
  };
31
31
  readonly Space100: {
32
- readonly value: "0.5rem";
32
+ readonly value: 8;
33
33
  readonly attributes: {
34
34
  readonly group: "spacing";
35
35
  };
36
36
  };
37
37
  readonly Space150: {
38
- readonly value: "0.75rem";
38
+ readonly value: 12;
39
39
  readonly attributes: {
40
40
  readonly group: "spacing";
41
41
  };
42
42
  };
43
43
  readonly Space200: {
44
- readonly value: "1rem";
44
+ readonly value: 16;
45
45
  readonly attributes: {
46
46
  readonly group: "spacing";
47
47
  };
48
48
  };
49
49
  readonly Space250: {
50
- readonly value: "1.25rem";
50
+ readonly value: 20;
51
51
  readonly attributes: {
52
52
  readonly group: "spacing";
53
53
  };
54
54
  };
55
55
  readonly Space300: {
56
- readonly value: "1.5rem";
56
+ readonly value: 24;
57
57
  readonly attributes: {
58
58
  readonly group: "spacing";
59
59
  };
60
60
  };
61
61
  readonly Space400: {
62
- readonly value: "2rem";
62
+ readonly value: 32;
63
63
  readonly attributes: {
64
64
  readonly group: "spacing";
65
65
  };
66
66
  };
67
67
  readonly Space500: {
68
- readonly value: "2.5rem";
68
+ readonly value: 40;
69
69
  readonly attributes: {
70
70
  readonly group: "spacing";
71
71
  };
72
72
  };
73
73
  readonly Space600: {
74
- readonly value: "3rem";
74
+ readonly value: 48;
75
75
  readonly attributes: {
76
76
  readonly group: "spacing";
77
77
  };
78
78
  };
79
79
  readonly Space800: {
80
- readonly value: "4rem";
80
+ readonly value: 64;
81
81
  readonly attributes: {
82
82
  readonly group: "spacing";
83
83
  };
84
- readonly pixelValue: "64px";
85
84
  };
86
85
  readonly Space1000: {
87
- readonly value: "5rem";
86
+ readonly value: 80;
88
87
  readonly attributes: {
89
88
  readonly group: "spacing";
90
89
  };
91
- readonly pixelValue: "80px";
92
90
  };
93
91
  };
94
92
  declare const spacingPalette: SpacingScaleTokenSchema<SpacingPaletteToken>;
@@ -39,7 +39,6 @@ export interface DesignToken<TValue, Group extends Groups> extends Token<TValue,
39
39
  group: Group;
40
40
  description: string;
41
41
  introduced: string;
42
- pixelValue?: Group extends 'spacing' ? string : never;
43
42
  suggest?: string[];
44
43
  } | {
45
44
  state: DeprecatedTokenState;
@@ -122,9 +121,9 @@ export interface PaletteColorTokenSchema<PaletteValues extends string> {
122
121
  palette: Record<PaletteValues, PaletteToken>;
123
122
  };
124
123
  }
125
- type SpacingSchemaValue = BaseToken<string, 'spacing'>;
126
- type TypographySchemaValue = BaseToken<string, 'typography'>;
127
- type ShapeSchemaValue = BaseToken<string, 'shape'>;
124
+ type SpacingSchemaValue = BaseToken<number, 'spacing'>;
125
+ type TypographySchemaValue = BaseToken<number | string, 'typography'>;
126
+ type ShapeSchemaValue = BaseToken<number | string, 'shape'>;
128
127
  export interface SpacingScaleTokenSchema<ScaleValues extends string> {
129
128
  space: Record<ScaleValues, SpacingSchemaValue>;
130
129
  }
@@ -1,9 +1,24 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::d9adf6612a4bc5957b7824e1f32a76b2>>
3
+ * @codegen <<SignedSource::a2e59b8e1421ca4ad026a5b2161824b2>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- declare const tokens: {
6
+ declare const tokens: ({
7
+ value: string;
8
+ attributes: {
9
+ group: string;
10
+ };
11
+ filePath: string;
12
+ isSource: boolean;
13
+ original: {
14
+ value: number;
15
+ attributes: {
16
+ group: string;
17
+ };
18
+ };
19
+ name: string;
20
+ path: string[];
21
+ } | {
7
22
  value: string;
8
23
  attributes: {
9
24
  group: string;
@@ -18,5 +33,5 @@ declare const tokens: {
18
33
  };
19
34
  name: string;
20
35
  path: string[];
21
- }[];
36
+ })[];
22
37
  export default tokens;
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::1599e85262f34ecc7fbda0662bc858cb>>
3
+ * @codegen <<SignedSource::4cad6a8b4b676f9379fa2d4fca019b0e>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- declare const tokens: ({
6
+ declare const tokens: {
7
7
  value: string;
8
8
  attributes: {
9
9
  group: string;
@@ -11,31 +11,12 @@ declare const tokens: ({
11
11
  filePath: string;
12
12
  isSource: boolean;
13
13
  original: {
14
- value: string;
14
+ value: number;
15
15
  attributes: {
16
16
  group: string;
17
17
  };
18
- pixelValue?: undefined;
19
18
  };
20
19
  name: string;
21
20
  path: string[];
22
- pixelValue?: undefined;
23
- } | {
24
- value: string;
25
- attributes: {
26
- group: string;
27
- };
28
- pixelValue: string;
29
- filePath: string;
30
- isSource: boolean;
31
- original: {
32
- value: string;
33
- attributes: {
34
- group: string;
35
- };
36
- pixelValue: string;
37
- };
38
- name: string;
39
- path: string[];
40
- })[];
21
+ }[];
41
22
  export default tokens;
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::15f0ab59b776fd0726847c173399dd26>>
3
+ * @codegen <<SignedSource::62a42989e49ca7f7856827fb9ea059d6>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- declare const tokens: {
6
+ declare const tokens: ({
7
7
  value: string;
8
8
  attributes: {
9
9
  group: string;
@@ -18,5 +18,20 @@ declare const tokens: {
18
18
  };
19
19
  name: string;
20
20
  path: string[];
21
- }[];
21
+ } | {
22
+ value: string;
23
+ attributes: {
24
+ group: string;
25
+ };
26
+ filePath: string;
27
+ isSource: boolean;
28
+ original: {
29
+ value: number;
30
+ attributes: {
31
+ group: string;
32
+ };
33
+ };
34
+ name: string;
35
+ path: string[];
36
+ })[];
22
37
  export default tokens;
@@ -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::e1827dff880ab23a73ac703dfb8f2018>>
3
+ * @codegen <<SignedSource::01d88a41c27f9a921fe1a40fec0a7ba0>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- declare const _default: "\nhtml[data-theme~=\"shape:shape\"] {\n --ds-radius-050: 0.125rem;\n --ds-radius-100: 0.25rem;\n --ds-radius-200: 0.5rem;\n --ds-radius-300: 0.75rem;\n --ds-radius-400: 1rem;\n --ds-radius-round: 50%;\n --ds-width-0: 0;\n --ds-width-050: 0.0625rem;\n --ds-width-100: 0.125rem;\n}\n";
6
+ declare const _default: "\nhtml[data-theme~=\"shape:shape\"] {\n --ds-radius-050: 0.125rem;\n --ds-radius-100: 0.25rem;\n --ds-radius-200: 0.5rem;\n --ds-radius-300: 0.75rem;\n --ds-radius-400: 1rem;\n --ds-radius-round: 50%;\n --ds-width-0: 0rem;\n --ds-width-050: 0.0625rem;\n --ds-width-100: 0.125rem;\n}\n";
7
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::6a9bb91811dc597f0d705bbed643a7fc>>
3
+ * @codegen <<SignedSource::36f0214aaedb62d3639cb79a9195eaf6>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- declare const _default: "\nhtml[data-theme~=\"spacing:spacing\"] {\n --ds-space-0: 0;\n --ds-space-025: 0.125rem;\n --ds-space-050: 0.25rem;\n --ds-space-075: 0.375rem;\n --ds-space-100: 0.5rem;\n --ds-space-150: 0.75rem;\n --ds-space-200: 1rem;\n --ds-space-250: 1.25rem;\n --ds-space-300: 1.5rem;\n --ds-space-400: 2rem;\n --ds-space-500: 2.5rem;\n --ds-space-600: 3rem;\n --ds-space-800: 4rem;\n --ds-space-1000: 5rem;\n}\n";
6
+ declare const _default: "\nhtml[data-theme~=\"spacing:spacing\"] {\n --ds-space-0: 0rem;\n --ds-space-025: 0.125rem;\n --ds-space-050: 0.25rem;\n --ds-space-075: 0.375rem;\n --ds-space-100: 0.5rem;\n --ds-space-150: 0.75rem;\n --ds-space-200: 1rem;\n --ds-space-250: 1.25rem;\n --ds-space-300: 1.5rem;\n --ds-space-400: 2rem;\n --ds-space-500: 2.5rem;\n --ds-space-600: 3rem;\n --ds-space-800: 4rem;\n --ds-space-1000: 5rem;\n}\n";
7
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::2bb692b141bab7de1129474ea0fe281e>>
3
+ * @codegen <<SignedSource::3e4dc097014124b77e69b832281f37ed>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- declare const _default: "\nhtml[data-theme~=\"typography:typography\"] {\n --ds-font-family-monospace: \"SFMono-Medium\", \"SF Mono\", \"Segoe UI Mono\", \"Roboto Mono\", \"Ubuntu Mono\", Menlo, Consolas, Courier, monospace;\n --ds-font-family-sans: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\n --ds-font-size-050: 11px;\n --ds-font-size-075: 12px;\n --ds-font-size-100: 14px;\n --ds-font-size-200: 16px;\n --ds-font-size-300: 20px;\n --ds-font-size-400: 24px;\n --ds-font-size-500: 29px;\n --ds-font-size-600: 35px;\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-100: 16px;\n --ds-font-lineHeight-200: 20px;\n --ds-font-lineHeight-300: 24px;\n --ds-font-lineHeight-400: 28px;\n --ds-font-lineHeight-500: 32px;\n --ds-font-lineHeight-600: 40px;\n}\n";
6
+ declare const _default: "\nhtml[data-theme~=\"typography:typography\"] {\n --ds-font-family-monospace: \"SFMono-Medium\", \"SF Mono\", \"Segoe UI Mono\", \"Roboto Mono\", \"Ubuntu Mono\", Menlo, Consolas, Courier, monospace;\n --ds-font-family-sans: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\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-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
7
  export default _default;
@@ -4,7 +4,7 @@
4
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::9c962af7a2afdab3160e3f3a2b285a8a>>
7
+ * @codegen <<SignedSource::856ff062171d44deb03158a6fa7d7bd1>>
8
8
  * @codegenCommand yarn build tokens
9
9
  */
10
10
  declare const defaultTokenValues: {
@@ -14,7 +14,7 @@ declare const defaultTokenValues: {
14
14
  readonly 'border.radius.300': "0.75rem";
15
15
  readonly 'border.radius.400': "1rem";
16
16
  readonly 'border.radius.round': "50%";
17
- readonly 'border.width.0': "0";
17
+ readonly 'border.width.0': "0rem";
18
18
  readonly 'border.width.050': "0.0625rem";
19
19
  readonly 'border.width.100': "0.125rem";
20
20
  readonly 'color.text': "#172B4D";
@@ -303,7 +303,7 @@ declare const defaultTokenValues: {
303
303
  readonly 'opacity.disabled': "0.4";
304
304
  readonly 'opacity.loading': "0.2";
305
305
  readonly 'utility.UNSAFE.transparent': "transparent";
306
- readonly 'space.0': "0";
306
+ readonly 'space.0': "0rem";
307
307
  readonly 'space.025': "0.125rem";
308
308
  readonly 'space.050': "0.25rem";
309
309
  readonly 'space.075': "0.375rem";
@@ -319,23 +319,23 @@ declare const defaultTokenValues: {
319
319
  readonly 'space.1000': "5rem";
320
320
  readonly 'font.family.monospace': "\"SFMono-Medium\", \"SF Mono\", \"Segoe UI Mono\", \"Roboto Mono\", \"Ubuntu Mono\", Menlo, Consolas, Courier, monospace";
321
321
  readonly 'font.family.sans': "-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif";
322
- readonly 'font.size.050': "11px";
323
- readonly 'font.size.075': "12px";
324
- readonly 'font.size.100': "14px";
325
- readonly 'font.size.200': "16px";
326
- readonly 'font.size.300': "20px";
327
- readonly 'font.size.400': "24px";
328
- readonly 'font.size.500': "29px";
329
- readonly 'font.size.600': "35px";
322
+ readonly 'font.size.050': "0.6875rem";
323
+ readonly 'font.size.075': "0.75rem";
324
+ readonly 'font.size.100': "0.875rem";
325
+ readonly 'font.size.200': "1rem";
326
+ readonly 'font.size.300': "1.25rem";
327
+ readonly 'font.size.400': "1.5rem";
328
+ readonly 'font.size.500': "1.8125rem";
329
+ readonly 'font.size.600': "2.1875rem";
330
330
  readonly 'font.weight.bold': "700";
331
331
  readonly 'font.weight.medium': "500";
332
332
  readonly 'font.weight.regular': "400";
333
333
  readonly 'font.weight.semibold': "600";
334
- readonly 'font.lineHeight.100': "16px";
335
- readonly 'font.lineHeight.200': "20px";
336
- readonly 'font.lineHeight.300': "24px";
337
- readonly 'font.lineHeight.400': "28px";
338
- readonly 'font.lineHeight.500': "32px";
339
- readonly 'font.lineHeight.600': "40px";
334
+ readonly 'font.lineHeight.100': "1rem";
335
+ readonly 'font.lineHeight.200': "1.25rem";
336
+ readonly 'font.lineHeight.300': "1.5rem";
337
+ readonly 'font.lineHeight.400': "1.75rem";
338
+ readonly 'font.lineHeight.500': "2rem";
339
+ readonly 'font.lineHeight.600': "2.5rem";
340
340
  };
341
341
  export default defaultTokenValues;
@@ -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::f4523de23a205d43950d1b24f656f952>>
3
+ * @codegen <<SignedSource::7cdaa82f55e6537ca0b68d196db9e1d6>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  declare const tokens: {
@@ -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::cfa1d518948d5dc23821d17cab0cb52a>>
3
+ * @codegen <<SignedSource::c89f0dcd1df97245a694a1a77741bb39>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  declare const tokens: ({
@@ -8,7 +8,6 @@ declare const tokens: ({
8
8
  group: string;
9
9
  state: string;
10
10
  introduced: string;
11
- pixelValue: string;
12
11
  description: string;
13
12
  suggest?: undefined;
14
13
  };
@@ -20,7 +19,6 @@ declare const tokens: ({
20
19
  group: string;
21
20
  state: string;
22
21
  introduced: string;
23
- pixelValue: string;
24
22
  description: string;
25
23
  suggest?: undefined;
26
24
  };
@@ -35,7 +33,6 @@ declare const tokens: ({
35
33
  state: string;
36
34
  suggest: string[];
37
35
  introduced: string;
38
- pixelValue: string;
39
36
  description: string;
40
37
  };
41
38
  value: string;
@@ -47,7 +44,6 @@ declare const tokens: ({
47
44
  state: string;
48
45
  suggest: string[];
49
46
  introduced: string;
50
- pixelValue: string;
51
47
  description: string;
52
48
  };
53
49
  value: string;
@@ -7,19 +7,19 @@ export type BaseSizeToken = keyof typeof baseSizeTokens;
7
7
  export type BaseRadiusToken = keyof typeof baseRadiusTokens;
8
8
  declare const baseSizeTokens: {
9
9
  readonly Size0: {
10
- readonly value: "0";
10
+ readonly value: 0;
11
11
  readonly attributes: {
12
12
  readonly group: "shape";
13
13
  };
14
14
  };
15
15
  readonly Size050: {
16
- readonly value: "0.0625rem";
16
+ readonly value: 1;
17
17
  readonly attributes: {
18
18
  readonly group: "shape";
19
19
  };
20
20
  };
21
21
  readonly Size100: {
22
- readonly value: "0.125rem";
22
+ readonly value: 2;
23
23
  readonly attributes: {
24
24
  readonly group: "shape";
25
25
  };
@@ -27,31 +27,31 @@ declare const baseSizeTokens: {
27
27
  };
28
28
  declare const baseRadiusTokens: {
29
29
  readonly Radius050: {
30
- readonly value: "0.125rem";
30
+ readonly value: 2;
31
31
  readonly attributes: {
32
32
  readonly group: "shape";
33
33
  };
34
34
  };
35
35
  readonly Radius100: {
36
- readonly value: "0.25rem";
36
+ readonly value: 4;
37
37
  readonly attributes: {
38
38
  readonly group: "shape";
39
39
  };
40
40
  };
41
41
  readonly Radius200: {
42
- readonly value: "0.5rem";
42
+ readonly value: 8;
43
43
  readonly attributes: {
44
44
  readonly group: "shape";
45
45
  };
46
46
  };
47
47
  readonly Radius300: {
48
- readonly value: "0.75rem";
48
+ readonly value: 12;
49
49
  readonly attributes: {
50
50
  readonly group: "shape";
51
51
  };
52
52
  };
53
53
  readonly Radius400: {
54
- readonly value: "1rem";
54
+ readonly value: 16;
55
55
  readonly attributes: {
56
56
  readonly group: "shape";
57
57
  };
@@ -5,90 +5,88 @@ import type { SpacingScaleTokenSchema } from '../types';
5
5
  export type SpacingPaletteToken = keyof typeof baseSpacingTokens;
6
6
  declare const baseSpacingTokens: {
7
7
  readonly Space0: {
8
- readonly value: "0";
8
+ readonly value: 0;
9
9
  readonly attributes: {
10
10
  readonly group: "spacing";
11
11
  };
12
12
  };
13
13
  readonly Space025: {
14
- readonly value: "0.125rem";
14
+ readonly value: 2;
15
15
  readonly attributes: {
16
16
  readonly group: "spacing";
17
17
  };
18
18
  };
19
19
  readonly Space050: {
20
- readonly value: "0.25rem";
20
+ readonly value: 4;
21
21
  readonly attributes: {
22
22
  readonly group: "spacing";
23
23
  };
24
24
  };
25
25
  readonly Space075: {
26
- readonly value: "0.375rem";
26
+ readonly value: 6;
27
27
  readonly attributes: {
28
28
  readonly group: "spacing";
29
29
  };
30
30
  };
31
31
  readonly Space100: {
32
- readonly value: "0.5rem";
32
+ readonly value: 8;
33
33
  readonly attributes: {
34
34
  readonly group: "spacing";
35
35
  };
36
36
  };
37
37
  readonly Space150: {
38
- readonly value: "0.75rem";
38
+ readonly value: 12;
39
39
  readonly attributes: {
40
40
  readonly group: "spacing";
41
41
  };
42
42
  };
43
43
  readonly Space200: {
44
- readonly value: "1rem";
44
+ readonly value: 16;
45
45
  readonly attributes: {
46
46
  readonly group: "spacing";
47
47
  };
48
48
  };
49
49
  readonly Space250: {
50
- readonly value: "1.25rem";
50
+ readonly value: 20;
51
51
  readonly attributes: {
52
52
  readonly group: "spacing";
53
53
  };
54
54
  };
55
55
  readonly Space300: {
56
- readonly value: "1.5rem";
56
+ readonly value: 24;
57
57
  readonly attributes: {
58
58
  readonly group: "spacing";
59
59
  };
60
60
  };
61
61
  readonly Space400: {
62
- readonly value: "2rem";
62
+ readonly value: 32;
63
63
  readonly attributes: {
64
64
  readonly group: "spacing";
65
65
  };
66
66
  };
67
67
  readonly Space500: {
68
- readonly value: "2.5rem";
68
+ readonly value: 40;
69
69
  readonly attributes: {
70
70
  readonly group: "spacing";
71
71
  };
72
72
  };
73
73
  readonly Space600: {
74
- readonly value: "3rem";
74
+ readonly value: 48;
75
75
  readonly attributes: {
76
76
  readonly group: "spacing";
77
77
  };
78
78
  };
79
79
  readonly Space800: {
80
- readonly value: "4rem";
80
+ readonly value: 64;
81
81
  readonly attributes: {
82
82
  readonly group: "spacing";
83
83
  };
84
- readonly pixelValue: "64px";
85
84
  };
86
85
  readonly Space1000: {
87
- readonly value: "5rem";
86
+ readonly value: 80;
88
87
  readonly attributes: {
89
88
  readonly group: "spacing";
90
89
  };
91
- readonly pixelValue: "80px";
92
90
  };
93
91
  };
94
92
  declare const spacingPalette: SpacingScaleTokenSchema<SpacingPaletteToken>;
@@ -39,7 +39,6 @@ export interface DesignToken<TValue, Group extends Groups> extends Token<TValue,
39
39
  group: Group;
40
40
  description: string;
41
41
  introduced: string;
42
- pixelValue?: Group extends 'spacing' ? string : never;
43
42
  suggest?: string[];
44
43
  } | {
45
44
  state: DeprecatedTokenState;
@@ -122,9 +121,9 @@ export interface PaletteColorTokenSchema<PaletteValues extends string> {
122
121
  palette: Record<PaletteValues, PaletteToken>;
123
122
  };
124
123
  }
125
- type SpacingSchemaValue = BaseToken<string, 'spacing'>;
126
- type TypographySchemaValue = BaseToken<string, 'typography'>;
127
- type ShapeSchemaValue = BaseToken<string, 'shape'>;
124
+ type SpacingSchemaValue = BaseToken<number, 'spacing'>;
125
+ type TypographySchemaValue = BaseToken<number | string, 'typography'>;
126
+ type ShapeSchemaValue = BaseToken<number | string, 'shape'>;
128
127
  export interface SpacingScaleTokenSchema<ScaleValues extends string> {
129
128
  space: Record<ScaleValues, SpacingSchemaValue>;
130
129
  }
@@ -8,7 +8,7 @@
8
8
  "introduced": "1.1.0",
9
9
  "description": "Experimental, description needs to be amended"
10
10
  },
11
- "value": "0.125rem"
11
+ "value": 2
12
12
  },
13
13
  "Shape/border.radius.100": {
14
14
  "attributes": {
@@ -17,7 +17,7 @@
17
17
  "introduced": "1.1.0",
18
18
  "description": "Experimental, description needs to be amended"
19
19
  },
20
- "value": "0.25rem"
20
+ "value": 4
21
21
  },
22
22
  "Shape/border.radius.200": {
23
23
  "attributes": {
@@ -26,7 +26,7 @@
26
26
  "introduced": "1.1.0",
27
27
  "description": "Experimental, description needs to be amended"
28
28
  },
29
- "value": "0.5rem"
29
+ "value": 8
30
30
  },
31
31
  "Shape/border.radius.300": {
32
32
  "attributes": {
@@ -35,7 +35,7 @@
35
35
  "introduced": "1.1.0",
36
36
  "description": "Experimental, description needs to be amended"
37
37
  },
38
- "value": "0.75rem"
38
+ "value": 12
39
39
  },
40
40
  "Shape/border.radius.400": {
41
41
  "attributes": {
@@ -44,7 +44,7 @@
44
44
  "introduced": "1.1.0",
45
45
  "description": "Experimental, description needs to be amended"
46
46
  },
47
- "value": "1rem"
47
+ "value": 16
48
48
  },
49
49
  "Shape/border.radius.round": {
50
50
  "attributes": {
@@ -62,7 +62,7 @@
62
62
  "introduced": "1.2.1",
63
63
  "description": "Experimental, description needs to be amended"
64
64
  },
65
- "value": "0"
65
+ "value": 0
66
66
  },
67
67
  "Shape/border.width.050": {
68
68
  "attributes": {
@@ -71,7 +71,7 @@
71
71
  "introduced": "1.1.0",
72
72
  "description": "Experimental, description needs to be amended"
73
73
  },
74
- "value": "0.0625rem"
74
+ "value": 1
75
75
  },
76
76
  "Shape/border.width.100": {
77
77
  "attributes": {
@@ -80,7 +80,7 @@
80
80
  "introduced": "1.1.0",
81
81
  "description": "Experimental, description needs to be amended"
82
82
  },
83
- "value": "0.125rem"
83
+ "value": 2
84
84
  }
85
85
  },
86
86
  "renameMap": {}