@atlaskit/tokens 1.26.1 → 1.28.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 (131) hide show
  1. package/CHANGELOG.md +114 -0
  2. package/dist/cjs/artifacts/atlassian-dark-token-value-for-contrast-check.js +2 -2
  3. package/dist/cjs/artifacts/palettes-raw/palette.js +77 -77
  4. package/dist/cjs/artifacts/theme-import-map.js +1 -13
  5. package/dist/cjs/artifacts/themes/atlassian-dark-increased-contrast.js +2 -2
  6. package/dist/cjs/artifacts/themes/atlassian-dark.js +2 -2
  7. package/dist/cjs/artifacts/themes/atlassian-light-increased-contrast.js +2 -2
  8. package/dist/cjs/artifacts/themes/atlassian-light.js +2 -2
  9. package/dist/cjs/artifacts/themes/atlassian-typography-minor3.js +2 -2
  10. package/dist/cjs/artifacts/token-default-values.js +101 -101
  11. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +115 -115
  12. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +115 -115
  13. package/dist/cjs/artifacts/tokens-raw/atlassian-light-increased-contrast.js +124 -124
  14. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +109 -109
  15. package/dist/cjs/artifacts/tokens-raw/atlassian-typography-adg3.js +17 -9
  16. package/dist/cjs/artifacts/tokens-raw/atlassian-typography-minor3.js +17 -9
  17. package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +17 -9
  18. package/dist/cjs/get-token-value.js +1 -1
  19. package/dist/cjs/get-token.js +1 -1
  20. package/dist/cjs/theme-config.js +1 -25
  21. package/dist/cjs/utils/get-theme-preferences.js +0 -13
  22. package/dist/es2019/artifacts/atlassian-dark-token-value-for-contrast-check.js +2 -2
  23. package/dist/es2019/artifacts/palettes-raw/palette.js +77 -77
  24. package/dist/es2019/artifacts/theme-import-map.js +1 -5
  25. package/dist/es2019/artifacts/themes/atlassian-dark-increased-contrast.js +115 -115
  26. package/dist/es2019/artifacts/themes/atlassian-dark.js +109 -109
  27. package/dist/es2019/artifacts/themes/atlassian-light-increased-contrast.js +124 -124
  28. package/dist/es2019/artifacts/themes/atlassian-light.js +101 -101
  29. package/dist/es2019/artifacts/themes/atlassian-typography-minor3.js +7 -1
  30. package/dist/es2019/artifacts/token-default-values.js +101 -101
  31. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +115 -115
  32. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +115 -115
  33. package/dist/es2019/artifacts/tokens-raw/atlassian-light-increased-contrast.js +124 -124
  34. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +109 -109
  35. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +17 -9
  36. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-minor3.js +17 -9
  37. package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +17 -9
  38. package/dist/es2019/get-token-value.js +1 -1
  39. package/dist/es2019/get-token.js +1 -1
  40. package/dist/es2019/theme-config.js +1 -25
  41. package/dist/es2019/utils/get-theme-preferences.js +0 -13
  42. package/dist/esm/artifacts/atlassian-dark-token-value-for-contrast-check.js +2 -2
  43. package/dist/esm/artifacts/palettes-raw/palette.js +77 -77
  44. package/dist/esm/artifacts/theme-import-map.js +1 -9
  45. package/dist/esm/artifacts/themes/atlassian-dark-increased-contrast.js +2 -2
  46. package/dist/esm/artifacts/themes/atlassian-dark.js +2 -2
  47. package/dist/esm/artifacts/themes/atlassian-light-increased-contrast.js +2 -2
  48. package/dist/esm/artifacts/themes/atlassian-light.js +2 -2
  49. package/dist/esm/artifacts/themes/atlassian-typography-minor3.js +2 -2
  50. package/dist/esm/artifacts/token-default-values.js +101 -101
  51. package/dist/esm/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +115 -115
  52. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +115 -115
  53. package/dist/esm/artifacts/tokens-raw/atlassian-light-increased-contrast.js +124 -124
  54. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +109 -109
  55. package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +17 -9
  56. package/dist/esm/artifacts/tokens-raw/atlassian-typography-minor3.js +17 -9
  57. package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +17 -9
  58. package/dist/esm/get-token-value.js +1 -1
  59. package/dist/esm/get-token.js +1 -1
  60. package/dist/esm/theme-config.js +1 -25
  61. package/dist/esm/utils/get-theme-preferences.js +0 -13
  62. package/dist/types/artifacts/atlassian-dark-token-value-for-contrast-check.d.ts +2 -2
  63. package/dist/types/artifacts/palettes-raw/palette.d.ts +1 -1
  64. package/dist/types/artifacts/theme-import-map.d.ts +1 -1
  65. package/dist/types/artifacts/themes/atlassian-dark-increased-contrast.d.ts +2 -2
  66. package/dist/types/artifacts/themes/atlassian-dark.d.ts +2 -2
  67. package/dist/types/artifacts/themes/atlassian-light-increased-contrast.d.ts +2 -2
  68. package/dist/types/artifacts/themes/atlassian-light.d.ts +2 -2
  69. package/dist/types/artifacts/themes/atlassian-typography-minor3.d.ts +2 -2
  70. package/dist/types/artifacts/token-default-values.d.ts +101 -101
  71. package/dist/types/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +1 -1
  72. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
  73. package/dist/types/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +1 -1
  74. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  75. package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +36 -1
  76. package/dist/types/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +36 -1
  77. package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +36 -1
  78. package/dist/types/theme-config.d.ts +4 -4
  79. package/dist/types/types.d.ts +10 -3
  80. package/dist/types-ts4.5/artifacts/atlassian-dark-token-value-for-contrast-check.d.ts +2 -2
  81. package/dist/types-ts4.5/artifacts/palettes-raw/palette.d.ts +1 -1
  82. package/dist/types-ts4.5/artifacts/theme-import-map.d.ts +1 -1
  83. package/dist/types-ts4.5/artifacts/themes/atlassian-dark-increased-contrast.d.ts +2 -2
  84. package/dist/types-ts4.5/artifacts/themes/atlassian-dark.d.ts +2 -2
  85. package/dist/types-ts4.5/artifacts/themes/atlassian-light-increased-contrast.d.ts +2 -2
  86. package/dist/types-ts4.5/artifacts/themes/atlassian-light.d.ts +2 -2
  87. package/dist/types-ts4.5/artifacts/themes/atlassian-typography-minor3.d.ts +2 -2
  88. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +101 -101
  89. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +1 -1
  90. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
  91. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +1 -1
  92. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  93. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +36 -1
  94. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +36 -1
  95. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +36 -1
  96. package/dist/types-ts4.5/theme-config.d.ts +4 -8
  97. package/dist/types-ts4.5/types.d.ts +10 -3
  98. package/figma/atlassian-dark-increased-contrast.json +114 -114
  99. package/figma/atlassian-dark.json +108 -108
  100. package/figma/atlassian-light-increased-contrast.json +123 -123
  101. package/figma/atlassian-light.json +100 -100
  102. package/package.json +1 -4
  103. package/report.api.md +59 -20
  104. package/tmp/api-report-tmp.d.ts +53 -7
  105. package/dist/cjs/artifacts/palettes-raw/updated-saturated-palette.js +0 -2257
  106. package/dist/cjs/artifacts/themes/atlassian-dark-saturated-palette-changes.js +0 -12
  107. package/dist/cjs/artifacts/themes/atlassian-light-saturated-palette-changes.js +0 -12
  108. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.js +0 -8683
  109. package/dist/cjs/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.js +0 -8645
  110. package/dist/es2019/artifacts/palettes-raw/updated-saturated-palette.js +0 -2251
  111. package/dist/es2019/artifacts/themes/atlassian-dark-saturated-palette-changes.js +0 -399
  112. package/dist/es2019/artifacts/themes/atlassian-light-saturated-palette-changes.js +0 -399
  113. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.js +0 -8677
  114. package/dist/es2019/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.js +0 -8639
  115. package/dist/esm/artifacts/palettes-raw/updated-saturated-palette.js +0 -2251
  116. package/dist/esm/artifacts/themes/atlassian-dark-saturated-palette-changes.js +0 -6
  117. package/dist/esm/artifacts/themes/atlassian-light-saturated-palette-changes.js +0 -6
  118. package/dist/esm/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.js +0 -8677
  119. package/dist/esm/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.js +0 -8639
  120. package/dist/types/artifacts/palettes-raw/updated-saturated-palette.d.ts +0 -41
  121. package/dist/types/artifacts/themes/atlassian-dark-saturated-palette-changes.d.ts +0 -7
  122. package/dist/types/artifacts/themes/atlassian-light-saturated-palette-changes.d.ts +0 -7
  123. package/dist/types/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.d.ts +0 -109
  124. package/dist/types/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.d.ts +0 -89
  125. package/dist/types-ts4.5/artifacts/palettes-raw/updated-saturated-palette.d.ts +0 -41
  126. package/dist/types-ts4.5/artifacts/themes/atlassian-dark-saturated-palette-changes.d.ts +0 -7
  127. package/dist/types-ts4.5/artifacts/themes/atlassian-light-saturated-palette-changes.d.ts +0 -7
  128. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.d.ts +0 -109
  129. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.d.ts +0 -89
  130. package/figma/atlassian-dark-saturated-palette-changes.json +0 -3540
  131. package/figma/atlassian-light-saturated-palette-changes.json +0 -3519
package/CHANGELOG.md CHANGED
@@ -1,5 +1,119 @@
1
1
  # @atlaskit/tokens
2
2
 
3
+ ## 1.28.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#41365](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41365) [`fab3ce9e39a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fab3ce9e39a) - Added smaller variants of heading tokens that get used for screen widths 1023px and below (Minor Third scale only). For example `font.heading.xlarge` will switch to the styles defined by `font.heading.large` on smaller screens.
8
+
9
+ ## 1.27.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#41516](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41516) [`e6f589d4777`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e6f589d4777) - [ux] This version releases changes that were feature flagged in version 1.25.0; they include minor adjustments to our color palette and design tokens.
14
+
15
+ These changes make certain colors more distinguishable, improves the visual appearance of warning and yellow accent backgrounds, and reduces saturation for subtle backgrounds in dark mode.
16
+
17
+ #### Palette changes
18
+
19
+ ##### All saturated palettes
20
+
21
+ - Saturation for `1000` shades reduced for all saturated palettes to reduce eye strain when placed against subtle UI in dark mode
22
+
23
+ ##### Red
24
+
25
+ - Saturation reduced on entire scale
26
+ - Hue adjusted to create more separation from orange
27
+
28
+ ##### Orange
29
+
30
+ - Saturation reduced on entire scale
31
+ - Hue adjusted to create more separation from yellow
32
+
33
+ ##### Lime
34
+
35
+ - Saturation for `100` shades reduced
36
+
37
+ ##### Green
38
+
39
+ - Saturation for `100` shades reduced
40
+
41
+ ##### Teal
42
+
43
+ - Hue adjusted to create more separation from green
44
+
45
+ ##### All palette changes
46
+
47
+ - `Red100` has changed from `#FFEDEB` to `#ffeceb`
48
+ - `Red200` has changed from `#FFD2CC` to `#ffd5d2`
49
+ - `Red300` has changed from `#FF9C8F` to `#fd9891`
50
+ - `Red400` has changed from `#F87462` to `#f87168`
51
+ - `Red500` has changed from `#EF5C48` to `#f15b50`
52
+ - `Red600` has changed from `#E34935` to `#e2483d`
53
+ - `Red700` has changed from `#CA3521` to `#c9372c`
54
+ - `Red800` has changed from `#AE2A19` to `#ae2e24`
55
+ - `Red900` has changed from `#601E16` to `#5d1f1a`
56
+ - `Red1000` has changed from `#4F1C16` to `#42221F`
57
+ - `Orange100` has changed from `#FFF4E5` to `#fff3eb`
58
+ - `Orange200` has changed from `#FFE2BD` to `#fedec8`
59
+ - `Orange300` has changed from `#FEC57B` to `#fec195`
60
+ - `Orange400` has changed from `#FAA53D` to `#fea362`
61
+ - `Orange500` has changed from `#F18D13` to `#f38a3f`
62
+ - `Orange600` has changed from `#D97008` to `#e56910`
63
+ - `Orange700` has changed from `#B65C02` to `#c25100`
64
+ - `Orange800` has changed from `#974F0C` to `#A54800`
65
+ - `Orange900` has changed from `#5F3811` to `#702e00`
66
+ - `Orange1000` has changed from `#4A2B0F` to `#38291e`
67
+ - `Yellow1000` has changed from `#3F3102` to `#332E1B`
68
+ - `Lime100` has changed from `#EEFBDA` to `#EFFFD6`
69
+ - `Lime1000` has changed from `#2A3818` to `#28311B`
70
+ - `Green100` has changed from `#DFFCF0` to `#DCFFF1`
71
+ - `Green1000` has changed from `#143C2B` to `#1C3329`
72
+ - `Teal100` has changed from `#E3FAFC` to `#E7F9FF`
73
+ - `Teal200` has changed from `#C1F0F5` to `#C6EDFB`
74
+ - `Teal300` has changed from `#8BDBE5` to `#9DD9EE`
75
+ - `Teal400` has changed from `#60C6D2` to `#6CC3E0`
76
+ - `Teal500` has changed from `#37B4C3` to `#42B2D7`
77
+ - `Teal600` has changed from `#1D9AAA` to `#2898BD`
78
+ - `Teal700` has changed from `#1D7F8C` to `#227D9B`
79
+ - `Teal800` has changed from `#206B74` to `#206A83`
80
+ - `Teal900` has changed from `#1D474C` to `#164555`
81
+ - `Teal1000` has changed from `#15373B` to `#1E3137`
82
+ - `Blue1000` has changed from `#092957` to `#1C2B41`
83
+ - `Purple1000` has changed from `#2B2451` to `#2B273F`
84
+ - `Magenta1000` has changed from `#421F34` to `#3D2232`
85
+
86
+ #### Token changes
87
+
88
+ ##### Yellow accent backgrounds
89
+
90
+ Mapped to lighter shades to create differentiation with orange, and increase vibrancy:
91
+
92
+ - \[Light theme\] `color.background.yellow.subtle`: `Yellow400` → `Yellow300`
93
+ - \[Light theme\] `color.background.accent.yellow.subtle.hovered`: `Yellow300` → `Yellow400`
94
+ - \[Light theme\] `color.background.accent.yellow.subtle.pressed`: `Yellow200` → `Yellow500`
95
+
96
+ ##### Bold warning backgrounds
97
+
98
+ Mapped to lighter shades to increase vibrancy:
99
+
100
+ - \[Light theme\] `color.background.warning.bold`: `Yellow400` → `Yellow300`
101
+ - \[Dark mode\]: `color.background.warning.bold`: `Yellow400` → `Yellow300`
102
+ - \[Light theme\] `color.background.warning.bold.hovered`: `Yellow500` → `Yellow400`
103
+ - \[Dark mode\]: `color.background.warning.bold.hovered`: `Yellow300` → `Yellow400`
104
+ - \[Light theme\] `color.background.warning.bold.pressed`: `Yellow600` → `Yellow500`
105
+ - \[Dark mode\]: `color.background.warning.bold.pressed`: `Yellow200` → `Yellow500`
106
+
107
+ ##### Icon:
108
+
109
+ Mapped red/danger icons to darker shades to create distinction between orange and red icons:
110
+
111
+ - \[Light theme\]: `color.icon.accent.red`: `Red600` → `Red700`
112
+ - \[Dark theme\]: `color.icon.accent.red`: `Red500` → `Red600`
113
+ - \[Dark theme\]: `color.icon.accent.yellow`: `Yellow500` → `Yellow300`
114
+ - \[Light theme\]: `color.icon.danger`: `Red600` → `Red700`
115
+ - \[Dark theme\]: `color.icon.warning`: `Yellow500` → `Yellow300`
116
+
3
117
  ## 1.26.1
4
118
 
5
119
  ### Patch Changes
@@ -9,13 +9,13 @@ exports.default = void 0;
9
9
  *
10
10
  * Token names mapped to their values, used for contrast checking when generating custom themes
11
11
  *
12
- * @codegen <<SignedSource::5aed53e696137cdd59ece99fb9755c09>>
12
+ * @codegen <<SignedSource::0c8d4e0653f1a4cd9a80fac95331fd7a>>
13
13
  * @codegenCommand yarn build tokens
14
14
  */
15
15
  var tokenValues = {
16
16
  'color.text.brand': '#579DFF',
17
17
  'elevation.surface.overlay': '#282E33',
18
- 'color.background.selected': '#092957',
18
+ 'color.background.selected': '#1C2B41',
19
19
  'color.text.selected': '#579DFF',
20
20
  'color.border.brand': '#579DFF',
21
21
  'color.chart.brand': '#388BFF',