@atlaskit/tokens 1.1.0 → 1.2.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 (74) hide show
  1. package/CHANGELOG.md +14 -2
  2. package/dist/cjs/artifacts/palettes-raw/shape-palette.js +134 -0
  3. package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +29 -243
  4. package/dist/cjs/artifacts/palettes-raw/typography-palette.js +41 -41
  5. package/dist/cjs/artifacts/theme-import-map.js +6 -1
  6. package/dist/cjs/artifacts/themes/atlassian-shape.js +13 -0
  7. package/dist/cjs/artifacts/token-default-values.js +9 -1
  8. package/dist/cjs/artifacts/token-names.js +9 -1
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +190 -0
  10. package/dist/cjs/entry-points/tokens-raw.js +8 -1
  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 +70 -0
  14. package/dist/cjs/palettes/spacing-scale.js +14 -17
  15. package/dist/cjs/palettes/typography-palette.js +20 -20
  16. package/dist/cjs/theme-config.js +9 -1
  17. package/dist/cjs/tokens/atlassian-shape/shape.js +44 -0
  18. package/dist/cjs/tokens/default/shape/shape.js +80 -0
  19. package/dist/cjs/version.json +1 -1
  20. package/dist/es2019/artifacts/palettes-raw/shape-palette.js +127 -0
  21. package/dist/es2019/artifacts/palettes-raw/spacing-scale.js +29 -243
  22. package/dist/es2019/artifacts/palettes-raw/typography-palette.js +41 -41
  23. package/dist/es2019/artifacts/theme-import-map.js +4 -2
  24. package/dist/es2019/artifacts/themes/atlassian-shape.js +17 -0
  25. package/dist/es2019/artifacts/token-default-values.js +9 -1
  26. package/dist/es2019/artifacts/token-names.js +9 -1
  27. package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +183 -0
  28. package/dist/es2019/entry-points/tokens-raw.js +2 -1
  29. package/dist/es2019/get-token-value.js +1 -1
  30. package/dist/es2019/get-token.js +1 -1
  31. package/dist/es2019/palettes/shape-palette.js +63 -0
  32. package/dist/es2019/palettes/spacing-scale.js +14 -17
  33. package/dist/es2019/palettes/typography-palette.js +20 -20
  34. package/dist/es2019/theme-config.js +9 -1
  35. package/dist/es2019/tokens/atlassian-shape/shape.js +37 -0
  36. package/dist/es2019/tokens/default/shape/shape.js +73 -0
  37. package/dist/es2019/version.json +1 -1
  38. package/dist/esm/artifacts/palettes-raw/shape-palette.js +127 -0
  39. package/dist/esm/artifacts/palettes-raw/spacing-scale.js +29 -243
  40. package/dist/esm/artifacts/palettes-raw/typography-palette.js +41 -41
  41. package/dist/esm/artifacts/theme-import-map.js +5 -1
  42. package/dist/esm/artifacts/themes/atlassian-shape.js +6 -0
  43. package/dist/esm/artifacts/token-default-values.js +9 -1
  44. package/dist/esm/artifacts/token-names.js +9 -1
  45. package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +183 -0
  46. package/dist/esm/entry-points/tokens-raw.js +2 -1
  47. package/dist/esm/get-token-value.js +1 -1
  48. package/dist/esm/get-token.js +1 -1
  49. package/dist/esm/palettes/shape-palette.js +63 -0
  50. package/dist/esm/palettes/spacing-scale.js +14 -17
  51. package/dist/esm/palettes/typography-palette.js +20 -20
  52. package/dist/esm/theme-config.js +9 -1
  53. package/dist/esm/tokens/atlassian-shape/shape.js +37 -0
  54. package/dist/esm/tokens/default/shape/shape.js +73 -0
  55. package/dist/esm/version.json +1 -1
  56. package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +22 -0
  57. package/dist/types/artifacts/palettes-raw/spacing-scale.d.ts +1 -1
  58. package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +1 -1
  59. package/dist/types/artifacts/theme-import-map.d.ts +1 -1
  60. package/dist/types/artifacts/themes/atlassian-shape.d.ts +7 -0
  61. package/dist/types/artifacts/token-default-values.d.ts +9 -1
  62. package/dist/types/artifacts/token-names.d.ts +17 -1
  63. package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +29 -0
  64. package/dist/types/entry-points/tokens-raw.d.ts +1 -0
  65. package/dist/types/palettes/shape-palette.d.ts +61 -0
  66. package/dist/types/palettes/spacing-scale.d.ts +14 -14
  67. package/dist/types/theme-config.d.ts +5 -7
  68. package/dist/types/tokens/atlassian-shape/shape.d.ts +7 -0
  69. package/dist/types/tokens/default/shape/shape.d.ts +3 -0
  70. package/dist/types/types.d.ts +32 -13
  71. package/figma/atlassian-shape.json +78 -0
  72. package/package.json +1 -1
  73. package/report.api.md +23 -4
  74. package/tmp/api-report-tmp.d.ts +23 -6
@@ -7,86 +7,86 @@ declare const baseSpacingTokens: {
7
7
  readonly Space0: {
8
8
  readonly value: "0";
9
9
  readonly attributes: {
10
- readonly group: "scale";
10
+ readonly group: "spacing";
11
11
  };
12
12
  };
13
13
  readonly Space025: {
14
14
  readonly value: "0.125rem";
15
15
  readonly attributes: {
16
- readonly group: "scale";
16
+ readonly group: "spacing";
17
17
  };
18
18
  };
19
19
  readonly Space050: {
20
20
  readonly value: "0.25rem";
21
21
  readonly attributes: {
22
- readonly group: "scale";
22
+ readonly group: "spacing";
23
23
  };
24
24
  };
25
25
  readonly Space075: {
26
26
  readonly value: "0.375rem";
27
27
  readonly attributes: {
28
- readonly group: "scale";
28
+ readonly group: "spacing";
29
29
  };
30
30
  };
31
31
  readonly Space100: {
32
32
  readonly value: "0.5rem";
33
33
  readonly attributes: {
34
- readonly group: "scale";
34
+ readonly group: "spacing";
35
35
  };
36
36
  };
37
37
  readonly Space150: {
38
38
  readonly value: "0.75rem";
39
39
  readonly attributes: {
40
- readonly group: "scale";
40
+ readonly group: "spacing";
41
41
  };
42
42
  };
43
43
  readonly Space200: {
44
44
  readonly value: "1rem";
45
45
  readonly attributes: {
46
- readonly group: "scale";
46
+ readonly group: "spacing";
47
47
  };
48
48
  };
49
49
  readonly Space250: {
50
50
  readonly value: "1.25rem";
51
51
  readonly attributes: {
52
- readonly group: "scale";
52
+ readonly group: "spacing";
53
53
  };
54
54
  };
55
55
  readonly Space300: {
56
56
  readonly value: "1.5rem";
57
57
  readonly attributes: {
58
- readonly group: "scale";
58
+ readonly group: "spacing";
59
59
  };
60
60
  };
61
61
  readonly Space400: {
62
62
  readonly value: "2rem";
63
63
  readonly attributes: {
64
- readonly group: "scale";
64
+ readonly group: "spacing";
65
65
  };
66
66
  };
67
67
  readonly Space500: {
68
68
  readonly value: "2.5rem";
69
69
  readonly attributes: {
70
- readonly group: "scale";
70
+ readonly group: "spacing";
71
71
  };
72
72
  };
73
73
  readonly Space600: {
74
74
  readonly value: "3rem";
75
75
  readonly attributes: {
76
- readonly group: "scale";
76
+ readonly group: "spacing";
77
77
  };
78
78
  };
79
79
  readonly Space800: {
80
80
  readonly value: "4rem";
81
81
  readonly attributes: {
82
- readonly group: "scale";
82
+ readonly group: "spacing";
83
83
  };
84
84
  readonly pixelValue: "64px";
85
85
  };
86
86
  readonly Space1000: {
87
87
  readonly value: "5rem";
88
88
  readonly attributes: {
89
- readonly group: "scale";
89
+ readonly group: "spacing";
90
90
  };
91
91
  readonly pixelValue: "80px";
92
92
  };
@@ -6,14 +6,14 @@
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' | 'atlassian-typography';
9
+ export declare type Themes = 'atlassian-light' | 'atlassian-dark' | 'atlassian-legacy-light' | 'atlassian-legacy-dark' | 'atlassian-shape' | 'atlassian-spacing' | 'atlassian-typography';
10
10
  export declare type ThemeFileNames = Themes;
11
11
  /**
12
12
  * Theme kinds: The type of theme.
13
13
  * Some themes are entirely focused on Color, whilst others are purely focused on spacing.
14
14
  * In the future other types may be introduced such as typography.
15
15
  */
16
- export declare type ThemeKinds = 'color' | 'spacing' | 'typography';
16
+ export declare type ThemeKinds = 'color' | 'spacing' | 'typography' | 'shape';
17
17
  /**
18
18
  * Theme modes: The general purpose of a theme.
19
19
  * This attr is used to apply the appropriate system-preference option
@@ -29,7 +29,7 @@ export declare type DataColorModes = Omit<ThemeColorModes, 'auto'>;
29
29
  *
30
30
  * These ids must be kebab case
31
31
  */
32
- export declare const themeIds: readonly ["light", "dark", "legacy-light", "legacy-dark", "spacing", "typography"];
32
+ export declare const themeIds: readonly ["light", "dark", "legacy-light", "legacy-dark", "spacing", "typography", "shape"];
33
33
  export declare type ThemeIds = typeof themeIds[number];
34
34
  /**
35
35
  * Theme to use a base. This will create the theme as
@@ -42,7 +42,7 @@ export declare type ExtensionThemeId = ThemeIds;
42
42
  * For example: legacy light & dark themes use the "legacyPalette" containing colors from our
43
43
  * previous color set.
44
44
  */
45
- export declare type Palettes = 'defaultPalette' | 'legacyPalette' | 'spacingScale' | 'typographyPalette';
45
+ export declare type Palettes = 'defaultPalette' | 'legacyPalette' | 'spacingScale' | 'shapePalette' | 'typographyPalette';
46
46
  /**
47
47
  * ThemeConfig: the source of truth for all theme meta-data.
48
48
  * This object should be used whenever interfacing with themes.
@@ -55,9 +55,7 @@ interface ThemeConfig {
55
55
  type: 'color';
56
56
  mode: Exclude<ThemeColorModes, 'auto'>;
57
57
  } | {
58
- type: 'spacing';
59
- } | {
60
- type: 'typography';
58
+ type: Extract<ThemeKinds, 'spacing' | 'typography' | 'shape'>;
61
59
  }) & {
62
60
  extends?: ExtensionThemeId;
63
61
  };
@@ -0,0 +1,7 @@
1
+ import type { ShapeTokenSchema, ValueSchema } from '../../types';
2
+ /**
3
+ * This is combined with the attribute schema.
4
+ * @link 'file:../default/shape/shape.tsx'
5
+ */
6
+ declare const shape: ValueSchema<ShapeTokenSchema>;
7
+ export default shape;
@@ -0,0 +1,3 @@
1
+ import type { AttributeSchema, ShapeTokenSchema } from '../../../types';
2
+ declare const shape: AttributeSchema<ShapeTokenSchema>;
3
+ export default shape;
@@ -1,6 +1,7 @@
1
1
  import type { InternalTokenIds } from './artifacts/types-internal';
2
+ import type { ShapePaletteToken } from './palettes/shape-palette';
2
3
  import type { SpacingPaletteToken } from './palettes/spacing-scale';
3
- export declare type Groups = 'raw' | 'paint' | 'shadow' | 'palette' | 'opacity' | 'spacing' | 'scale' | 'fontSize' | 'fontWeight' | 'fontFamily' | 'lineHeight';
4
+ export declare type Groups = 'raw' | 'paint' | 'shadow' | 'palette' | 'opacity' | 'spacing' | 'shape' | 'typography' | 'fontSize' | 'fontWeight' | 'fontFamily' | 'lineHeight';
4
5
  export declare type ActiveTokenState = 'active';
5
6
  export declare type DeprecatedTokenState = 'deprecated';
6
7
  export declare type DeletedTokenState = 'deleted';
@@ -103,17 +104,13 @@ export declare type ShadowToken<BaseToken> = DesignToken<Array<{
103
104
  }>, 'shadow'>;
104
105
  export declare type OpacityToken = DesignToken<string, 'opacity'>;
105
106
  export declare type SpacingToken = DesignToken<SpacingPaletteToken, 'spacing'>;
107
+ export declare type ShapeToken = DesignToken<ShapePaletteToken, 'shape'>;
106
108
  export declare type FontSizeToken<BaseToken> = DesignToken<BaseToken, 'fontSize'>;
107
109
  export declare type FontWeightToken<BaseToken> = DesignToken<BaseToken, 'fontWeight'>;
108
110
  export declare type FontFamilyToken<BaseToken> = DesignToken<BaseToken, 'fontFamily'>;
109
111
  export declare type LineHeightToken<BaseToken> = DesignToken<BaseToken, 'lineHeight'>;
110
112
  export declare type TypographyToken<BaseToken> = DesignToken<BaseToken, 'fontSize' | 'fontWeight' | 'fontFamily' | 'lineHeight'>;
111
113
  export declare type RawToken = DesignToken<string, 'raw'>;
112
- export interface ScaleToken extends BaseToken<string, 'scale'> {
113
- attributes: {
114
- group: 'scale';
115
- };
116
- }
117
114
  export interface PaletteColorTokenSchema<PaletteValues extends string> {
118
115
  value: {
119
116
  opacity: {
@@ -125,23 +122,29 @@ export interface PaletteColorTokenSchema<PaletteValues extends string> {
125
122
  palette: Record<PaletteValues, PaletteToken>;
126
123
  };
127
124
  }
125
+ declare type SpacingSchemaValue = BaseToken<string, 'spacing'>;
126
+ declare type TypographySchemaValue = BaseToken<string, 'typography'>;
127
+ declare type ShapeSchemaValue = BaseToken<string, 'shape'>;
128
128
  export interface SpacingScaleTokenSchema<ScaleValues extends string> {
129
- space: Record<ScaleValues, ScaleToken>;
130
- spacing: {
131
- scale: Record<ScaleValues, ScaleToken>;
129
+ space: Record<ScaleValues, SpacingSchemaValue>;
130
+ }
131
+ export interface ShapeScaleTokenSchema<RadiusScaleValues extends string, SizeScaleValues extends string> {
132
+ border: {
133
+ radius: Record<RadiusScaleValues, ShapeSchemaValue>;
134
+ width: Record<SizeScaleValues, ShapeSchemaValue>;
132
135
  };
133
136
  }
134
137
  export interface FontSizeScaleTokenSchema<ScaleValues extends string> {
135
- fontSize: Record<ScaleValues, ScaleToken>;
138
+ fontSize: Record<ScaleValues, TypographySchemaValue>;
136
139
  }
137
140
  export interface FontWeightScaleTokenSchema<ScaleValues extends string> {
138
- fontWeight: Record<ScaleValues, ScaleToken>;
141
+ fontWeight: Record<ScaleValues, TypographySchemaValue>;
139
142
  }
140
143
  export interface FontFamilyPaletteTokenSchema<ScaleValues extends string> {
141
- fontFamily: Record<ScaleValues, ScaleToken>;
144
+ fontFamily: Record<ScaleValues, TypographySchemaValue>;
142
145
  }
143
146
  export interface LineHeightScaleTokenSchema<ScaleValues extends string> {
144
- lineHeight: Record<ScaleValues, ScaleToken>;
147
+ lineHeight: Record<ScaleValues, TypographySchemaValue>;
145
148
  }
146
149
  export interface BackgroundColorTokenSchema<BaseToken> {
147
150
  color: {
@@ -762,6 +765,22 @@ export interface SpacingTokenSchema {
762
765
  '1000': SpacingToken;
763
766
  };
764
767
  }
768
+ export interface ShapeTokenSchema {
769
+ border: {
770
+ width: {
771
+ '050': ShapeToken;
772
+ '100': ShapeToken;
773
+ };
774
+ radius: {
775
+ '050': ShapeToken;
776
+ '100': ShapeToken;
777
+ '200': ShapeToken;
778
+ '300': ShapeToken;
779
+ '400': ShapeToken;
780
+ round: ShapeToken;
781
+ };
782
+ };
783
+ }
765
784
  export interface FontSizeTokenSchema<BaseToken> {
766
785
  font: {
767
786
  size: {
@@ -0,0 +1,78 @@
1
+ {
2
+ "name": "Shape",
3
+ "tokens": {
4
+ "Shape/border.radius.050": {
5
+ "attributes": {
6
+ "group": "shape",
7
+ "state": "experimental",
8
+ "introduced": "1.1.0",
9
+ "description": "Experimental, description needs to be amended"
10
+ },
11
+ "value": "0.125rem"
12
+ },
13
+ "Shape/border.radius.100": {
14
+ "attributes": {
15
+ "group": "shape",
16
+ "state": "experimental",
17
+ "introduced": "1.1.0",
18
+ "description": "Experimental, description needs to be amended"
19
+ },
20
+ "value": "0.25rem"
21
+ },
22
+ "Shape/border.radius.200": {
23
+ "attributes": {
24
+ "group": "shape",
25
+ "state": "experimental",
26
+ "introduced": "1.1.0",
27
+ "description": "Experimental, description needs to be amended"
28
+ },
29
+ "value": "0.5rem"
30
+ },
31
+ "Shape/border.radius.300": {
32
+ "attributes": {
33
+ "group": "shape",
34
+ "state": "experimental",
35
+ "introduced": "1.1.0",
36
+ "description": "Experimental, description needs to be amended"
37
+ },
38
+ "value": "0.75rem"
39
+ },
40
+ "Shape/border.radius.400": {
41
+ "attributes": {
42
+ "group": "shape",
43
+ "state": "experimental",
44
+ "introduced": "1.1.0",
45
+ "description": "Experimental, description needs to be amended"
46
+ },
47
+ "value": "1rem"
48
+ },
49
+ "Shape/border.radius.round": {
50
+ "attributes": {
51
+ "group": "shape",
52
+ "state": "experimental",
53
+ "introduced": "1.1.0",
54
+ "description": "Experimental, description needs to be amended"
55
+ },
56
+ "value": "50%"
57
+ },
58
+ "Shape/border.width.050": {
59
+ "attributes": {
60
+ "group": "shape",
61
+ "state": "experimental",
62
+ "introduced": "1.1.0",
63
+ "description": "Experimental, description needs to be amended"
64
+ },
65
+ "value": "0.0625rem"
66
+ },
67
+ "Shape/border.width.100": {
68
+ "attributes": {
69
+ "group": "shape",
70
+ "state": "experimental",
71
+ "introduced": "1.1.0",
72
+ "description": "Experimental, description needs to be amended"
73
+ },
74
+ "value": "0.125rem"
75
+ }
76
+ },
77
+ "renameMap": {}
78
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "1.1.0",
3
+ "version": "1.2.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",
package/report.api.md CHANGED
@@ -22,6 +22,14 @@ export type CSSToken = CSSTokenMap[keyof CSSTokenMap];
22
22
 
23
23
  // @public (undocumented)
24
24
  type CSSTokenMap = {
25
+ 'border.radius.050': 'var(--ds-radius-050)';
26
+ 'border.radius.100': 'var(--ds-radius-100)';
27
+ 'border.radius.200': 'var(--ds-radius-200)';
28
+ 'border.radius.300': 'var(--ds-radius-300)';
29
+ 'border.radius.400': 'var(--ds-radius-400)';
30
+ 'border.radius.round': 'var(--ds-radius-round)';
31
+ 'border.width.050': 'var(--ds-width-050)';
32
+ 'border.width.100': 'var(--ds-width-100)';
25
33
  'color.text': 'var(--ds-text)';
26
34
  'color.text.accent.red': 'var(--ds-text-accent-red)';
27
35
  'color.text.accent.red.bolder': 'var(--ds-text-accent-red-bolder)';
@@ -383,6 +391,7 @@ export function getTokenValue<T extends keyof Tokens_2>(
383
391
  type Palettes =
384
392
  | 'defaultPalette'
385
393
  | 'legacyPalette'
394
+ | 'shapePalette'
386
395
  | 'spacingScale'
387
396
  | 'typographyPalette';
388
397
 
@@ -410,10 +419,7 @@ interface ThemeConfig {
410
419
  mode: Exclude<ThemeColorModes, 'auto'>;
411
420
  }
412
421
  | {
413
- type: 'spacing';
414
- }
415
- | {
416
- type: 'typography';
422
+ type: Extract<ThemeKinds, 'shape' | 'spacing' | 'typography'>;
417
423
  }
418
424
  ) & {
419
425
  extends?: ExtensionThemeId;
@@ -440,8 +446,12 @@ const themeIds: readonly [
440
446
  'legacy-dark',
441
447
  'spacing',
442
448
  'typography',
449
+ 'shape',
443
450
  ];
444
451
 
452
+ // @public
453
+ type ThemeKinds = 'color' | 'shape' | 'spacing' | 'typography';
454
+
445
455
  // @public
446
456
  export class ThemeMutationObserver {
447
457
  constructor(callback: (theme: Partial<ThemeState>) => unknown);
@@ -464,6 +474,7 @@ export type Themes =
464
474
  | 'atlassian-legacy-dark'
465
475
  | 'atlassian-legacy-light'
466
476
  | 'atlassian-light'
477
+ | 'atlassian-shape'
467
478
  | 'atlassian-spacing'
468
479
  | 'atlassian-typography';
469
480
 
@@ -505,6 +516,14 @@ type Tokens = typeof tokens;
505
516
 
506
517
  // @public
507
518
  const tokens: {
519
+ readonly 'border.radius.050': '--ds-radius-050';
520
+ readonly 'border.radius.100': '--ds-radius-100';
521
+ readonly 'border.radius.200': '--ds-radius-200';
522
+ readonly 'border.radius.300': '--ds-radius-300';
523
+ readonly 'border.radius.400': '--ds-radius-400';
524
+ readonly 'border.radius.round': '--ds-radius-round';
525
+ readonly 'border.width.050': '--ds-width-050';
526
+ readonly 'border.width.100': '--ds-width-100';
508
527
  readonly 'color.text': '--ds-text';
509
528
  readonly 'color.text.accent.red': '--ds-text-accent-red';
510
529
  readonly 'color.text.accent.red.bolder': '--ds-text-accent-red-bolder';
@@ -11,6 +11,14 @@ export type CSSToken = CSSTokenMap[keyof CSSTokenMap];
11
11
 
12
12
  // @public (undocumented)
13
13
  type CSSTokenMap = {
14
+ 'border.radius.050': 'var(--ds-radius-050)';
15
+ 'border.radius.100': 'var(--ds-radius-100)';
16
+ 'border.radius.200': 'var(--ds-radius-200)';
17
+ 'border.radius.300': 'var(--ds-radius-300)';
18
+ 'border.radius.400': 'var(--ds-radius-400)';
19
+ 'border.radius.round': 'var(--ds-radius-round)';
20
+ 'border.width.050': 'var(--ds-width-050)';
21
+ 'border.width.100': 'var(--ds-width-100)';
14
22
  'color.text': 'var(--ds-text)';
15
23
  'color.text.accent.red': 'var(--ds-text-accent-red)';
16
24
  'color.text.accent.red.bolder': 'var(--ds-text-accent-red-bolder)';
@@ -352,7 +360,7 @@ export const getThemeStyles: ({ colorMode, dark, light, spacing, typography, }?:
352
360
  export function getTokenValue<T extends keyof Tokens_2>(tokenId: T, fallback?: string): string;
353
361
 
354
362
  // @public
355
- type Palettes = 'defaultPalette' | 'legacyPalette' | 'spacingScale' | 'typographyPalette';
363
+ type Palettes = 'defaultPalette' | 'legacyPalette' | 'shapePalette' | 'spacingScale' | 'typographyPalette';
356
364
 
357
365
  // @public
358
366
  export const setGlobalTheme: ({ colorMode, dark, light, spacing, typography, }?: Partial<ThemeState>) => Promise<UnbindFn>;
@@ -370,9 +378,7 @@ interface ThemeConfig {
370
378
  type: 'color';
371
379
  mode: Exclude<ThemeColorModes, 'auto'>;
372
380
  } | {
373
- type: 'spacing';
374
- } | {
375
- type: 'typography';
381
+ type: Extract<ThemeKinds, 'shape' | 'spacing' | 'typography'>;
376
382
  }) & {
377
383
  extends?: ExtensionThemeId;
378
384
  };
@@ -391,7 +397,10 @@ export const themeConfig: Record<Themes, ThemeConfig>;
391
397
  export type ThemeIds = typeof themeIds[number];
392
398
 
393
399
  // @public
394
- const themeIds: readonly ["light", "dark", "legacy-light", "legacy-dark", "spacing", "typography"];
400
+ const themeIds: readonly ["light", "dark", "legacy-light", "legacy-dark", "spacing", "typography", "shape"];
401
+
402
+ // @public
403
+ type ThemeKinds = 'color' | 'shape' | 'spacing' | 'typography';
395
404
 
396
405
  // @public
397
406
  export class ThemeMutationObserver {
@@ -410,7 +419,7 @@ export class ThemeMutationObserver {
410
419
  export const themeObjectToString: (themeState: Partial<ThemeState>) => string;
411
420
 
412
421
  // @public
413
- export type Themes = 'atlassian-dark' | 'atlassian-legacy-dark' | 'atlassian-legacy-light' | 'atlassian-light' | 'atlassian-spacing' | 'atlassian-typography';
422
+ export type Themes = 'atlassian-dark' | 'atlassian-legacy-dark' | 'atlassian-legacy-light' | 'atlassian-light' | 'atlassian-shape' | 'atlassian-spacing' | 'atlassian-typography';
414
423
 
415
424
  // @public (undocumented)
416
425
  export interface ThemeState {
@@ -447,6 +456,14 @@ type Tokens = typeof tokens;
447
456
 
448
457
  // @public
449
458
  const tokens: {
459
+ readonly 'border.radius.050': "--ds-radius-050";
460
+ readonly 'border.radius.100': "--ds-radius-100";
461
+ readonly 'border.radius.200': "--ds-radius-200";
462
+ readonly 'border.radius.300': "--ds-radius-300";
463
+ readonly 'border.radius.400': "--ds-radius-400";
464
+ readonly 'border.radius.round': "--ds-radius-round";
465
+ readonly 'border.width.050': "--ds-width-050";
466
+ readonly 'border.width.100': "--ds-width-100";
450
467
  readonly 'color.text': "--ds-text";
451
468
  readonly 'color.text.accent.red': "--ds-text-accent-red";
452
469
  readonly 'color.text.accent.red.bolder': "--ds-text-accent-red-bolder";