@atlaskit/tokens 7.1.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/cjs/artifacts/atlassian-dark-token-value-for-contrast-check.js +8 -8
  3. package/dist/cjs/artifacts/atlassian-light-token-value-for-contrast-check.js +7 -7
  4. package/dist/cjs/artifacts/palettes-raw/palette.js +147 -147
  5. package/dist/cjs/artifacts/theme-import-map.js +1 -13
  6. package/dist/cjs/artifacts/themes/atlassian-dark-increased-contrast.js +2 -2
  7. package/dist/cjs/artifacts/themes/atlassian-dark.js +2 -2
  8. package/dist/cjs/artifacts/themes/atlassian-light-increased-contrast.js +2 -2
  9. package/dist/cjs/artifacts/themes/atlassian-light.js +2 -2
  10. package/dist/cjs/artifacts/token-default-values.js +266 -266
  11. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +401 -401
  12. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +436 -436
  13. package/dist/cjs/artifacts/tokens-raw/atlassian-light-increased-contrast.js +273 -273
  14. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +375 -375
  15. package/dist/cjs/babel-plugin/plugin.js +8 -0
  16. package/dist/cjs/entry-points/palettes-raw.js +0 -7
  17. package/dist/cjs/entry-points/token-metadata.codegen.js +266 -266
  18. package/dist/cjs/entry-points/tokens-raw.js +0 -14
  19. package/dist/cjs/get-theme-styles.js +0 -3
  20. package/dist/cjs/get-token-value.js +0 -4
  21. package/dist/cjs/get-token.js +0 -4
  22. package/dist/cjs/theme-config.js +1 -19
  23. package/dist/cjs/utils/theme-loading.js +3 -7
  24. package/dist/es2019/artifacts/atlassian-dark-token-value-for-contrast-check.js +8 -8
  25. package/dist/es2019/artifacts/atlassian-light-token-value-for-contrast-check.js +7 -7
  26. package/dist/es2019/artifacts/palettes-raw/palette.js +147 -147
  27. package/dist/es2019/artifacts/theme-import-map.js +2 -6
  28. package/dist/es2019/artifacts/themes/atlassian-dark-increased-contrast.js +289 -289
  29. package/dist/es2019/artifacts/themes/atlassian-dark.js +294 -294
  30. package/dist/es2019/artifacts/themes/atlassian-light-increased-contrast.js +218 -218
  31. package/dist/es2019/artifacts/themes/atlassian-light.js +266 -266
  32. package/dist/es2019/artifacts/token-default-values.js +266 -266
  33. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +401 -401
  34. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +436 -436
  35. package/dist/es2019/artifacts/tokens-raw/atlassian-light-increased-contrast.js +273 -273
  36. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +375 -375
  37. package/dist/es2019/babel-plugin/plugin.js +8 -0
  38. package/dist/es2019/entry-points/palettes-raw.js +0 -1
  39. package/dist/es2019/entry-points/token-metadata.codegen.js +266 -266
  40. package/dist/es2019/entry-points/tokens-raw.js +0 -2
  41. package/dist/es2019/get-theme-styles.js +0 -1
  42. package/dist/es2019/get-token-value.js +0 -4
  43. package/dist/es2019/get-token.js +0 -4
  44. package/dist/es2019/theme-config.js +1 -19
  45. package/dist/es2019/utils/theme-loading.js +0 -4
  46. package/dist/esm/artifacts/atlassian-dark-token-value-for-contrast-check.js +8 -8
  47. package/dist/esm/artifacts/atlassian-light-token-value-for-contrast-check.js +7 -7
  48. package/dist/esm/artifacts/palettes-raw/palette.js +147 -147
  49. package/dist/esm/artifacts/theme-import-map.js +1 -9
  50. package/dist/esm/artifacts/themes/atlassian-dark-increased-contrast.js +2 -2
  51. package/dist/esm/artifacts/themes/atlassian-dark.js +2 -2
  52. package/dist/esm/artifacts/themes/atlassian-light-increased-contrast.js +2 -2
  53. package/dist/esm/artifacts/themes/atlassian-light.js +2 -2
  54. package/dist/esm/artifacts/token-default-values.js +266 -266
  55. package/dist/esm/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +401 -401
  56. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +436 -436
  57. package/dist/esm/artifacts/tokens-raw/atlassian-light-increased-contrast.js +273 -273
  58. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +375 -375
  59. package/dist/esm/babel-plugin/plugin.js +8 -0
  60. package/dist/esm/entry-points/palettes-raw.js +0 -1
  61. package/dist/esm/entry-points/token-metadata.codegen.js +266 -266
  62. package/dist/esm/entry-points/tokens-raw.js +0 -2
  63. package/dist/esm/get-theme-styles.js +0 -3
  64. package/dist/esm/get-token-value.js +0 -4
  65. package/dist/esm/get-token.js +0 -4
  66. package/dist/esm/theme-config.js +1 -19
  67. package/dist/esm/utils/theme-loading.js +3 -7
  68. package/dist/types/artifacts/atlassian-dark-token-value-for-contrast-check.d.ts +8 -8
  69. package/dist/types/artifacts/atlassian-light-token-value-for-contrast-check.d.ts +7 -7
  70. package/dist/types/artifacts/palettes-raw/palette.d.ts +1 -1
  71. package/dist/types/artifacts/theme-import-map.d.ts +1 -1
  72. package/dist/types/artifacts/themes/atlassian-dark-increased-contrast.d.ts +2 -2
  73. package/dist/types/artifacts/themes/atlassian-dark.d.ts +2 -2
  74. package/dist/types/artifacts/themes/atlassian-light-increased-contrast.d.ts +2 -2
  75. package/dist/types/artifacts/themes/atlassian-light.d.ts +2 -2
  76. package/dist/types/artifacts/token-default-values.d.ts +266 -266
  77. package/dist/types/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +1 -1
  78. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
  79. package/dist/types/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +1 -1
  80. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  81. package/dist/types/babel-plugin/plugin.d.ts +4 -0
  82. package/dist/types/entry-points/palettes-raw.d.ts +0 -1
  83. package/dist/types/entry-points/token-metadata.codegen.d.ts +1 -1
  84. package/dist/types/entry-points/tokens-raw.d.ts +0 -2
  85. package/dist/types/theme-config.d.ts +6 -6
  86. package/dist/types-ts4.5/artifacts/atlassian-dark-token-value-for-contrast-check.d.ts +8 -8
  87. package/dist/types-ts4.5/artifacts/atlassian-light-token-value-for-contrast-check.d.ts +7 -7
  88. package/dist/types-ts4.5/artifacts/palettes-raw/palette.d.ts +1 -1
  89. package/dist/types-ts4.5/artifacts/theme-import-map.d.ts +1 -1
  90. package/dist/types-ts4.5/artifacts/themes/atlassian-dark-increased-contrast.d.ts +2 -2
  91. package/dist/types-ts4.5/artifacts/themes/atlassian-dark.d.ts +2 -2
  92. package/dist/types-ts4.5/artifacts/themes/atlassian-light-increased-contrast.d.ts +2 -2
  93. package/dist/types-ts4.5/artifacts/themes/atlassian-light.d.ts +2 -2
  94. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +266 -266
  95. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +1 -1
  96. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
  97. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +1 -1
  98. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  99. package/dist/types-ts4.5/babel-plugin/plugin.d.ts +4 -0
  100. package/dist/types-ts4.5/entry-points/palettes-raw.d.ts +0 -1
  101. package/dist/types-ts4.5/entry-points/token-metadata.codegen.d.ts +1 -1
  102. package/dist/types-ts4.5/entry-points/tokens-raw.d.ts +0 -2
  103. package/dist/types-ts4.5/theme-config.d.ts +4 -8
  104. package/figma/atlassian-dark-increased-contrast.json +292 -292
  105. package/figma/atlassian-dark.json +297 -297
  106. package/figma/atlassian-light-increased-contrast.json +220 -220
  107. package/figma/atlassian-light.json +268 -268
  108. package/package.json +6 -6
  109. package/dist/cjs/artifacts/themes/atlassian-dark-brand-refresh.js +0 -12
  110. package/dist/cjs/artifacts/themes/atlassian-light-brand-refresh.js +0 -12
  111. package/dist/es2019/artifacts/themes/atlassian-dark-brand-refresh.js +0 -401
  112. package/dist/es2019/artifacts/themes/atlassian-light-brand-refresh.js +0 -401
  113. package/dist/esm/artifacts/themes/atlassian-dark-brand-refresh.js +0 -6
  114. package/dist/esm/artifacts/themes/atlassian-light-brand-refresh.js +0 -6
  115. package/dist/types/artifacts/themes/atlassian-dark-brand-refresh.d.ts +0 -7
  116. package/dist/types/artifacts/themes/atlassian-light-brand-refresh.d.ts +0 -7
  117. package/dist/types-ts4.5/artifacts/themes/atlassian-dark-brand-refresh.d.ts +0 -7
  118. package/dist/types-ts4.5/artifacts/themes/atlassian-light-brand-refresh.d.ts +0 -7
  119. package/figma/atlassian-dark-brand-refresh.json +0 -3558
  120. package/figma/atlassian-light-brand-refresh.json +0 -3537
@@ -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::b10cb2c641a28d967973840725505a5d>>
3
+ * @codegen <<SignedSource::1f9bb1e2b5ec2edbfe1a6eb0d52859b6>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  type TokenValue = string | number | {
@@ -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::e5a01f19d58623f99b97e4dd2aef4926>>
3
+ * @codegen <<SignedSource::5be81818cd5004bcdfaa1d2ab995fd75>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  type TokenValue = string | number | {
@@ -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::7d6d41baa7103c9ee49c1e976d66bf14>>
3
+ * @codegen <<SignedSource::b82a8b02b639656e8d896b7b19368212>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  type TokenValue = string | number | {
@@ -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::0ddb883a95cb1a36c2ce1db708181be1>>
3
+ * @codegen <<SignedSource::3c26bd82349e750141e06c24a7b61482>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  type TokenValue = string | number | {
@@ -2,6 +2,10 @@ import { type NodePath } from '@babel/traverse';
2
2
  import * as t from '@babel/types';
3
3
  type DefaultColorTheme = 'light' | 'legacy-light';
4
4
  export default function plugin(): {
5
+ visitor: {
6
+ Program?: undefined;
7
+ };
8
+ } | {
5
9
  visitor: {
6
10
  Program: {
7
11
  enter(path: NodePath<t.Program>, state: {
@@ -1,3 +1,2 @@
1
1
  export { default } from '../artifacts/palettes-raw/palette';
2
- export { default as brandRefreshPalette } from '../artifacts/palettes-raw/palette-brand-refresh';
3
2
  export { default as typographyPalette } from '../artifacts/palettes-raw/typography-palette';
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Metadata for generation of of `@atlaskit/ads-mcp` and https://atlassian.design/llms-tokens.txt.
5
5
  *
6
- * @codegen <<SignedSource::fc7eb246882a1c2dfeef3f7836f83459>>
6
+ * @codegen <<SignedSource::2df7129dadaefaa82ff5761d8db12e31>>
7
7
  * @codegenCommand yarn build tokens
8
8
  */
9
9
  export interface Token {
@@ -1,8 +1,6 @@
1
1
  export { default as light } from '../artifacts/tokens-raw/atlassian-light';
2
- export { default as lightBrandRefresh } from '../artifacts/tokens-raw/atlassian-light-brand-refresh';
3
2
  export { default as legacyLightTokens } from '../artifacts/tokens-raw/atlassian-legacy-light';
4
3
  export { default as dark } from '../artifacts/tokens-raw/atlassian-dark';
5
- export { default as darkBrandRefresh } from '../artifacts/tokens-raw/atlassian-dark-brand-refresh';
6
4
  export { default as spacing } from '../artifacts/tokens-raw/atlassian-spacing';
7
5
  export { default as typography } from '../artifacts/tokens-raw/atlassian-typography';
8
6
  export { default as typographyAdg3 } from '../artifacts/tokens-raw/atlassian-typography-adg3';
@@ -6,7 +6,7 @@
6
6
  * These ids are what the actual theme files/folders are called.
7
7
  * style-dictionary will attempt to locate these in the file-system.
8
8
  */
9
- export type Themes = 'atlassian-light' | 'atlassian-light-future' | 'atlassian-light-increased-contrast' | 'atlassian-light-brand-refresh' | 'atlassian-dark' | 'atlassian-dark-future' | 'atlassian-dark-increased-contrast' | 'atlassian-dark-brand-refresh' | 'atlassian-legacy-light' | 'atlassian-legacy-dark' | 'atlassian-shape' | 'atlassian-spacing' | 'atlassian-typography' | 'atlassian-typography-refreshed' | 'atlassian-typography-modernized' | 'atlassian-typography-adg3';
9
+ export type Themes = 'atlassian-light' | 'atlassian-light-future' | 'atlassian-light-increased-contrast' | 'atlassian-dark' | 'atlassian-dark-future' | 'atlassian-dark-increased-contrast' | 'atlassian-legacy-light' | 'atlassian-legacy-dark' | 'atlassian-shape' | 'atlassian-spacing' | 'atlassian-typography' | 'atlassian-typography-refreshed' | 'atlassian-typography-modernized' | 'atlassian-typography-adg3';
10
10
  export type ThemeFileNames = Themes;
11
11
  /**
12
12
  * ThemeOverrides: The internal identifier of a theme override. Which are themes that contain
@@ -54,11 +54,9 @@ export declare const themeIds: readonly [
54
54
  "light-increased-contrast",
55
55
  "light",
56
56
  "light-future",
57
- "light-brand-refresh",
58
57
  "dark",
59
58
  "dark-future",
60
59
  "dark-increased-contrast",
61
- "dark-brand-refresh",
62
60
  "legacy-light",
63
61
  "legacy-dark",
64
62
  "spacing",
@@ -80,11 +78,9 @@ export declare const themeIdsWithOverrides: readonly [
80
78
  "light-increased-contrast",
81
79
  "light",
82
80
  "light-future",
83
- "light-brand-refresh",
84
81
  "dark",
85
82
  "dark-future",
86
83
  "dark-increased-contrast",
87
- "dark-brand-refresh",
88
84
  "legacy-light",
89
85
  "legacy-dark",
90
86
  "spacing",
@@ -106,7 +102,7 @@ type ExtensionThemeId = ThemeIds;
106
102
  * For example: legacy light & dark themes use the "legacyPalette" containing colors from our
107
103
  * previous color set.
108
104
  */
109
- export type Palettes = 'defaultPalette' | 'brandRefreshPalette' | 'legacyPalette' | 'spacingScale' | 'shapePalette' | 'typographyPalette';
105
+ export type Palettes = 'defaultPalette' | 'legacyPalette' | 'spacingScale' | 'shapePalette' | 'typographyPalette';
110
106
  /**
111
107
  * ThemeConfig: the source of truth for all theme meta-data.
112
108
  * This object should be used whenever interfacing with themes.
@@ -158,8 +154,8 @@ export interface ThemeOptionsSchema {
158
154
  * ThemeState: the standard representation of an app's current theme and preferences
159
155
  */
160
156
  export interface ThemeState {
161
- light: Extract<ThemeIds, 'light' | 'light-future' | 'dark' | 'dark-future' | 'legacy-dark' | 'legacy-light' | 'light-increased-contrast' | 'dark-increased-contrast' | 'light-brand-refresh' | 'dark-brand-refresh'>;
162
- dark: Extract<ThemeIds, 'light' | 'light-future' | 'dark' | 'dark-future' | 'legacy-dark' | 'legacy-light' | 'light-increased-contrast' | 'dark-increased-contrast' | 'light-brand-refresh' | 'dark-brand-refresh'>;
157
+ light: Extract<ThemeIds, 'light' | 'light-future' | 'dark' | 'dark-future' | 'legacy-dark' | 'legacy-light' | 'light-increased-contrast' | 'dark-increased-contrast'>;
158
+ dark: Extract<ThemeIds, 'light' | 'light-future' | 'dark' | 'dark-future' | 'legacy-dark' | 'legacy-light' | 'light-increased-contrast' | 'dark-increased-contrast'>;
163
159
  colorMode: ThemeColorModes;
164
160
  contrastMode: ThemeContrastModes;
165
161
  shape?: Extract<ThemeIds, 'shape'>;