@atlaskit/tokens 1.24.0 → 1.25.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 (304) hide show
  1. package/CHANGELOG.md +178 -164
  2. package/dist/cjs/artifacts/atlassian-dark-token-value-for-contrast-check.js +1 -2
  3. package/dist/cjs/artifacts/atlassian-light-token-value-for-contrast-check.js +1 -2
  4. package/dist/cjs/artifacts/generated-pairs.js +1 -1
  5. package/dist/cjs/artifacts/palettes-raw/legacy-palette.js +1 -2
  6. package/dist/cjs/artifacts/palettes-raw/palette.js +1 -2
  7. package/dist/cjs/artifacts/palettes-raw/shape-palette.js +1 -2
  8. package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +1 -2
  9. package/dist/cjs/artifacts/palettes-raw/typography-palette.js +4 -5
  10. package/dist/cjs/artifacts/palettes-raw/updated-saturated-palette.js +2257 -0
  11. package/dist/cjs/artifacts/replacement-mapping.js +1 -2
  12. package/dist/cjs/artifacts/theme-import-map.js +14 -3
  13. package/dist/cjs/artifacts/themes/atlassian-dark-new-input-border.js +1 -2
  14. package/dist/cjs/artifacts/themes/atlassian-dark-saturated-palette-changes.js +12 -0
  15. package/dist/cjs/artifacts/themes/atlassian-dark.js +1 -2
  16. package/dist/cjs/artifacts/themes/atlassian-legacy-dark.js +1 -2
  17. package/dist/cjs/artifacts/themes/atlassian-legacy-light.js +1 -2
  18. package/dist/cjs/artifacts/themes/atlassian-light-new-input-border.js +1 -2
  19. package/dist/cjs/artifacts/themes/atlassian-light-saturated-palette-changes.js +12 -0
  20. package/dist/cjs/artifacts/themes/atlassian-light.js +1 -2
  21. package/dist/cjs/artifacts/themes/atlassian-shape.js +1 -2
  22. package/dist/cjs/artifacts/themes/atlassian-spacing.js +1 -2
  23. package/dist/cjs/artifacts/themes/atlassian-typography-adg3.js +2 -3
  24. package/dist/cjs/artifacts/themes/atlassian-typography-minor3.js +2 -3
  25. package/dist/cjs/artifacts/themes/atlassian-typography.js +2 -3
  26. package/dist/cjs/artifacts/token-default-values.js +14 -15
  27. package/dist/cjs/artifacts/token-names.js +12 -13
  28. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-new-input-border.js +1 -2
  29. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.js +8683 -0
  30. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +1 -2
  31. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +1 -2
  32. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +1 -2
  33. package/dist/cjs/artifacts/tokens-raw/atlassian-light-new-input-border.js +1 -2
  34. package/dist/cjs/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.js +8645 -0
  35. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +1 -2
  36. package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +1 -2
  37. package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +1 -2
  38. package/dist/cjs/artifacts/tokens-raw/atlassian-typography-adg3.js +34 -35
  39. package/dist/cjs/artifacts/tokens-raw/atlassian-typography-minor3.js +35 -36
  40. package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +35 -36
  41. package/dist/cjs/artifacts/typescript/atlassian-dark-token-names.js +1 -2
  42. package/dist/cjs/artifacts/typescript/atlassian-light-token-names.js +1 -2
  43. package/dist/cjs/constants.js +8 -16
  44. package/dist/cjs/custom-theme.js +2 -3
  45. package/dist/cjs/enable-global-theme.js +1 -2
  46. package/dist/cjs/get-global-theme.js +1 -2
  47. package/dist/cjs/get-ssr-auto-script.js +1 -2
  48. package/dist/cjs/get-theme-html-attrs.js +1 -2
  49. package/dist/cjs/get-theme-styles.js +12 -10
  50. package/dist/cjs/get-token-value.js +2 -3
  51. package/dist/cjs/get-token.js +2 -3
  52. package/dist/cjs/load-custom-theme-styles.js +1 -2
  53. package/dist/cjs/palettes/legacy-palette.js +1 -2
  54. package/dist/cjs/palettes/palette.js +1 -2
  55. package/dist/cjs/palettes/shape-palette.js +1 -2
  56. package/dist/cjs/palettes/spacing-scale.js +1 -2
  57. package/dist/cjs/palettes/typography-palette.js +2 -3
  58. package/dist/cjs/palettes/updated-saturated-palette.js +320 -0
  59. package/dist/cjs/set-global-theme.js +38 -4
  60. package/dist/cjs/theme-config.js +31 -12
  61. package/dist/cjs/theme-mutation-observer.js +2 -3
  62. package/dist/cjs/theme-state-transformer.js +3 -5
  63. package/dist/cjs/tokens/atlassian-dark/color/accent.js +1 -2
  64. package/dist/cjs/tokens/atlassian-dark/color/background.js +1 -2
  65. package/dist/cjs/tokens/atlassian-dark/color/border.js +1 -2
  66. package/dist/cjs/tokens/atlassian-dark/color/chart.js +1 -2
  67. package/dist/cjs/tokens/atlassian-dark/color/icon.js +1 -2
  68. package/dist/cjs/tokens/atlassian-dark/color/interaction.js +1 -2
  69. package/dist/cjs/tokens/atlassian-dark/color/skeleton.js +1 -2
  70. package/dist/cjs/tokens/atlassian-dark/color/text.js +1 -2
  71. package/dist/cjs/tokens/atlassian-dark/elevation/shadow.js +1 -2
  72. package/dist/cjs/tokens/atlassian-dark/elevation/surface.js +1 -2
  73. package/dist/cjs/tokens/atlassian-dark/opacity/opacity.js +1 -2
  74. package/dist/cjs/tokens/atlassian-dark/utility/utility.js +2 -3
  75. package/dist/cjs/tokens/atlassian-dark-new-input-border/color/border.js +1 -2
  76. package/dist/cjs/tokens/atlassian-dark-saturated-palette-changes/color/accent.js +21 -0
  77. package/dist/cjs/tokens/atlassian-dark-saturated-palette-changes/color/background.js +26 -0
  78. package/dist/cjs/tokens/atlassian-dark-saturated-palette-changes/color/icon.js +18 -0
  79. package/dist/cjs/tokens/atlassian-legacy-dark/color/accent.js +1 -2
  80. package/dist/cjs/tokens/atlassian-legacy-dark/color/background.js +1 -2
  81. package/dist/cjs/tokens/atlassian-legacy-dark/color/border.js +1 -2
  82. package/dist/cjs/tokens/atlassian-legacy-dark/color/chart.js +1 -2
  83. package/dist/cjs/tokens/atlassian-legacy-dark/color/icon.js +1 -2
  84. package/dist/cjs/tokens/atlassian-legacy-dark/color/interaction.js +1 -2
  85. package/dist/cjs/tokens/atlassian-legacy-dark/color/skeleton.js +1 -2
  86. package/dist/cjs/tokens/atlassian-legacy-dark/color/text.js +1 -2
  87. package/dist/cjs/tokens/atlassian-legacy-dark/elevation/shadow.js +1 -2
  88. package/dist/cjs/tokens/atlassian-legacy-dark/elevation/surface.js +1 -2
  89. package/dist/cjs/tokens/atlassian-legacy-dark/opacity/opacity.js +1 -2
  90. package/dist/cjs/tokens/atlassian-legacy-dark/utility/utility.js +2 -3
  91. package/dist/cjs/tokens/atlassian-legacy-light/color/accent.js +1 -2
  92. package/dist/cjs/tokens/atlassian-legacy-light/color/background.js +1 -2
  93. package/dist/cjs/tokens/atlassian-legacy-light/color/border.js +1 -2
  94. package/dist/cjs/tokens/atlassian-legacy-light/color/chart.js +1 -2
  95. package/dist/cjs/tokens/atlassian-legacy-light/color/icon.js +1 -2
  96. package/dist/cjs/tokens/atlassian-legacy-light/color/interaction.js +1 -2
  97. package/dist/cjs/tokens/atlassian-legacy-light/color/skeleton.js +1 -2
  98. package/dist/cjs/tokens/atlassian-legacy-light/color/text.js +1 -2
  99. package/dist/cjs/tokens/atlassian-legacy-light/elevation/shadow.js +1 -2
  100. package/dist/cjs/tokens/atlassian-legacy-light/elevation/surface.js +1 -2
  101. package/dist/cjs/tokens/atlassian-legacy-light/opacity/opacity.js +1 -2
  102. package/dist/cjs/tokens/atlassian-legacy-light/utility/utility.js +2 -3
  103. package/dist/cjs/tokens/atlassian-light/color/accent.js +1 -2
  104. package/dist/cjs/tokens/atlassian-light/color/background.js +1 -2
  105. package/dist/cjs/tokens/atlassian-light/color/border.js +1 -2
  106. package/dist/cjs/tokens/atlassian-light/color/chart.js +1 -2
  107. package/dist/cjs/tokens/atlassian-light/color/icon.js +1 -2
  108. package/dist/cjs/tokens/atlassian-light/color/interaction.js +1 -2
  109. package/dist/cjs/tokens/atlassian-light/color/skeleton.js +1 -2
  110. package/dist/cjs/tokens/atlassian-light/color/text.js +1 -2
  111. package/dist/cjs/tokens/atlassian-light/elevation/shadow.js +1 -2
  112. package/dist/cjs/tokens/atlassian-light/elevation/surface.js +1 -2
  113. package/dist/cjs/tokens/atlassian-light/opacity/opacity.js +1 -2
  114. package/dist/cjs/tokens/atlassian-light/utility/utility.js +2 -3
  115. package/dist/cjs/tokens/atlassian-light-new-input-border/color/border.js +1 -2
  116. package/dist/cjs/tokens/atlassian-light-saturated-palette-changes/color/accent.js +35 -0
  117. package/dist/cjs/tokens/atlassian-light-saturated-palette-changes/color/background.js +26 -0
  118. package/dist/cjs/tokens/atlassian-light-saturated-palette-changes/color/icon.js +16 -0
  119. package/dist/cjs/tokens/atlassian-shape/shape.js +1 -2
  120. package/dist/cjs/tokens/atlassian-spacing/spacing.js +1 -2
  121. package/dist/cjs/tokens/atlassian-typography/font-family.js +1 -2
  122. package/dist/cjs/tokens/atlassian-typography/letter-spacing.js +1 -2
  123. package/dist/cjs/tokens/atlassian-typography/theme.js +11 -12
  124. package/dist/cjs/tokens/atlassian-typography-adg3/font-family.js +1 -2
  125. package/dist/cjs/tokens/atlassian-typography-adg3/font-size.js +1 -2
  126. package/dist/cjs/tokens/atlassian-typography-adg3/font-weight.js +1 -2
  127. package/dist/cjs/tokens/atlassian-typography-adg3/letter-spacing.js +1 -2
  128. package/dist/cjs/tokens/atlassian-typography-adg3/line-height.js +1 -2
  129. package/dist/cjs/tokens/atlassian-typography-adg3/theme.js +12 -13
  130. package/dist/cjs/tokens/atlassian-typography-minor3/font-family.js +1 -2
  131. package/dist/cjs/tokens/atlassian-typography-minor3/letter-spacing.js +1 -2
  132. package/dist/cjs/tokens/atlassian-typography-minor3/theme.js +12 -13
  133. package/dist/cjs/tokens/default/color/accent.js +1 -2
  134. package/dist/cjs/tokens/default/color/background.js +1 -2
  135. package/dist/cjs/tokens/default/color/border.js +1 -2
  136. package/dist/cjs/tokens/default/color/chart.js +1 -2
  137. package/dist/cjs/tokens/default/color/icon.js +1 -2
  138. package/dist/cjs/tokens/default/color/interaction.js +1 -2
  139. package/dist/cjs/tokens/default/color/skeleton.js +1 -2
  140. package/dist/cjs/tokens/default/color/text.js +1 -2
  141. package/dist/cjs/tokens/default/elevation/shadow.js +1 -2
  142. package/dist/cjs/tokens/default/elevation/surface.js +1 -2
  143. package/dist/cjs/tokens/default/opacity/opacity.js +1 -2
  144. package/dist/cjs/tokens/default/shape/shape.js +1 -2
  145. package/dist/cjs/tokens/default/spacing/spacing.js +1 -2
  146. package/dist/cjs/tokens/default/typography/font-family.js +1 -2
  147. package/dist/cjs/tokens/default/typography/font-size.js +1 -2
  148. package/dist/cjs/tokens/default/typography/font-weight.js +1 -2
  149. package/dist/cjs/tokens/default/typography/font.js +11 -12
  150. package/dist/cjs/tokens/default/typography/letter-spacing.js +1 -2
  151. package/dist/cjs/tokens/default/typography/line-height.js +1 -2
  152. package/dist/cjs/tokens/default/utility/utility.js +2 -3
  153. package/dist/cjs/use-theme-observer.js +1 -2
  154. package/dist/cjs/utils/color-detection.js +3 -5
  155. package/dist/cjs/utils/color-mode-listeners.js +1 -2
  156. package/dist/cjs/utils/color-utils.js +1 -2
  157. package/dist/cjs/utils/custom-theme-token-contrast-check.js +3 -5
  158. package/dist/cjs/utils/generate-custom-color-ramp.js +5 -9
  159. package/dist/cjs/utils/get-theme-preferences.js +27 -6
  160. package/dist/cjs/utils/hash.js +2 -3
  161. package/dist/cjs/utils/hct-color-utils/contrast.js +2 -3
  162. package/dist/cjs/utils/hct-color-utils/hct.js +7 -7
  163. package/dist/cjs/utils/theme-loading.js +3 -6
  164. package/dist/cjs/utils/token-ids.js +4 -7
  165. package/dist/cjs/utils/token-order.js +2 -3
  166. package/dist/es2019/artifacts/palettes-raw/typography-palette.js +3 -3
  167. package/dist/es2019/artifacts/palettes-raw/updated-saturated-palette.js +2251 -0
  168. package/dist/es2019/artifacts/theme-import-map.js +5 -1
  169. package/dist/es2019/artifacts/themes/atlassian-dark-saturated-palette-changes.js +399 -0
  170. package/dist/es2019/artifacts/themes/atlassian-light-saturated-palette-changes.js +399 -0
  171. package/dist/es2019/artifacts/themes/atlassian-typography-adg3.js +13 -13
  172. package/dist/es2019/artifacts/themes/atlassian-typography-minor3.js +14 -14
  173. package/dist/es2019/artifacts/themes/atlassian-typography.js +14 -14
  174. package/dist/es2019/artifacts/token-default-values.js +13 -13
  175. package/dist/es2019/artifacts/token-names.js +11 -11
  176. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.js +8677 -0
  177. package/dist/es2019/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.js +8639 -0
  178. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +33 -33
  179. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-minor3.js +34 -34
  180. package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +34 -34
  181. package/dist/es2019/get-theme-styles.js +7 -4
  182. package/dist/es2019/get-token-value.js +1 -1
  183. package/dist/es2019/get-token.js +1 -1
  184. package/dist/es2019/palettes/typography-palette.js +1 -1
  185. package/dist/es2019/palettes/updated-saturated-palette.js +312 -0
  186. package/dist/es2019/set-global-theme.js +8 -2
  187. package/dist/es2019/theme-config.js +25 -1
  188. package/dist/es2019/tokens/atlassian-dark-saturated-palette-changes/color/accent.js +15 -0
  189. package/dist/es2019/tokens/atlassian-dark-saturated-palette-changes/color/background.js +20 -0
  190. package/dist/es2019/tokens/atlassian-dark-saturated-palette-changes/color/icon.js +12 -0
  191. package/dist/es2019/tokens/atlassian-light-saturated-palette-changes/color/accent.js +29 -0
  192. package/dist/es2019/tokens/atlassian-light-saturated-palette-changes/color/background.js +20 -0
  193. package/dist/es2019/tokens/atlassian-light-saturated-palette-changes/color/icon.js +10 -0
  194. package/dist/es2019/tokens/atlassian-typography/theme.js +10 -10
  195. package/dist/es2019/tokens/atlassian-typography-adg3/theme.js +10 -10
  196. package/dist/es2019/tokens/atlassian-typography-minor3/theme.js +10 -10
  197. package/dist/es2019/tokens/default/typography/font.js +10 -10
  198. package/dist/es2019/utils/get-theme-preferences.js +26 -2
  199. package/dist/es2019/utils/hct-color-utils/hct.js +3 -1
  200. package/dist/esm/artifacts/palettes-raw/typography-palette.js +3 -3
  201. package/dist/esm/artifacts/palettes-raw/updated-saturated-palette.js +2251 -0
  202. package/dist/esm/artifacts/theme-import-map.js +9 -1
  203. package/dist/esm/artifacts/themes/atlassian-dark-saturated-palette-changes.js +6 -0
  204. package/dist/esm/artifacts/themes/atlassian-light-saturated-palette-changes.js +6 -0
  205. package/dist/esm/artifacts/themes/atlassian-typography-adg3.js +2 -2
  206. package/dist/esm/artifacts/themes/atlassian-typography-minor3.js +2 -2
  207. package/dist/esm/artifacts/themes/atlassian-typography.js +2 -2
  208. package/dist/esm/artifacts/token-default-values.js +13 -13
  209. package/dist/esm/artifacts/token-names.js +11 -11
  210. package/dist/esm/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.js +8677 -0
  211. package/dist/esm/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.js +8639 -0
  212. package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +33 -33
  213. package/dist/esm/artifacts/tokens-raw/atlassian-typography-minor3.js +34 -34
  214. package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +34 -34
  215. package/dist/esm/custom-theme.js +1 -1
  216. package/dist/esm/get-theme-styles.js +12 -9
  217. package/dist/esm/get-token-value.js +1 -1
  218. package/dist/esm/get-token.js +1 -1
  219. package/dist/esm/palettes/typography-palette.js +1 -1
  220. package/dist/esm/palettes/updated-saturated-palette.js +313 -0
  221. package/dist/esm/set-global-theme.js +38 -3
  222. package/dist/esm/theme-config.js +25 -1
  223. package/dist/esm/tokens/atlassian-dark-saturated-palette-changes/color/accent.js +15 -0
  224. package/dist/esm/tokens/atlassian-dark-saturated-palette-changes/color/background.js +20 -0
  225. package/dist/esm/tokens/atlassian-dark-saturated-palette-changes/color/icon.js +12 -0
  226. package/dist/esm/tokens/atlassian-light-saturated-palette-changes/color/accent.js +29 -0
  227. package/dist/esm/tokens/atlassian-light-saturated-palette-changes/color/background.js +20 -0
  228. package/dist/esm/tokens/atlassian-light-saturated-palette-changes/color/icon.js +10 -0
  229. package/dist/esm/tokens/atlassian-typography/theme.js +10 -10
  230. package/dist/esm/tokens/atlassian-typography-adg3/theme.js +10 -10
  231. package/dist/esm/tokens/atlassian-typography-minor3/theme.js +10 -10
  232. package/dist/esm/tokens/default/typography/font.js +10 -10
  233. package/dist/esm/utils/get-theme-preferences.js +24 -2
  234. package/dist/esm/utils/hct-color-utils/hct.js +3 -1
  235. package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +1 -1
  236. package/dist/types/artifacts/palettes-raw/updated-saturated-palette.d.ts +41 -0
  237. package/dist/types/artifacts/theme-import-map.d.ts +1 -1
  238. package/dist/types/artifacts/themes/atlassian-dark-saturated-palette-changes.d.ts +7 -0
  239. package/dist/types/artifacts/themes/atlassian-light-saturated-palette-changes.d.ts +7 -0
  240. package/dist/types/artifacts/themes/atlassian-typography-adg3.d.ts +2 -2
  241. package/dist/types/artifacts/themes/atlassian-typography-minor3.d.ts +2 -2
  242. package/dist/types/artifacts/themes/atlassian-typography.d.ts +2 -2
  243. package/dist/types/artifacts/token-default-values.d.ts +13 -13
  244. package/dist/types/artifacts/token-names.d.ts +21 -21
  245. package/dist/types/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.d.ts +109 -0
  246. package/dist/types/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.d.ts +89 -0
  247. package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +1 -1
  248. package/dist/types/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +1 -1
  249. package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +1 -1
  250. package/dist/types/palettes/palette.d.ts +1 -1
  251. package/dist/types/palettes/updated-saturated-palette.d.ts +10 -0
  252. package/dist/types/theme-config.d.ts +8 -4
  253. package/dist/types/tokens/atlassian-dark/utility/utility.d.ts +1 -1
  254. package/dist/types/tokens/atlassian-dark-saturated-palette-changes/color/accent.d.ts +4 -0
  255. package/dist/types/tokens/atlassian-dark-saturated-palette-changes/color/background.d.ts +4 -0
  256. package/dist/types/tokens/atlassian-dark-saturated-palette-changes/color/icon.d.ts +4 -0
  257. package/dist/types/tokens/atlassian-light/utility/utility.d.ts +1 -1
  258. package/dist/types/tokens/atlassian-light-saturated-palette-changes/color/accent.d.ts +4 -0
  259. package/dist/types/tokens/atlassian-light-saturated-palette-changes/color/background.d.ts +4 -0
  260. package/dist/types/tokens/atlassian-light-saturated-palette-changes/color/icon.d.ts +4 -0
  261. package/dist/types/tokens/atlassian-typography-adg3/theme.d.ts +13 -13
  262. package/dist/types/tokens/atlassian-typography-minor3/theme.d.ts +13 -13
  263. package/dist/types/tokens/default/utility/utility.d.ts +1 -1
  264. package/dist/types/types.d.ts +11 -11
  265. package/dist/types/utils/get-theme-preferences.d.ts +1 -0
  266. package/dist/types-ts4.5/artifacts/palettes-raw/typography-palette.d.ts +1 -1
  267. package/dist/types-ts4.5/artifacts/palettes-raw/updated-saturated-palette.d.ts +41 -0
  268. package/dist/types-ts4.5/artifacts/theme-import-map.d.ts +1 -1
  269. package/dist/types-ts4.5/artifacts/themes/atlassian-dark-saturated-palette-changes.d.ts +7 -0
  270. package/dist/types-ts4.5/artifacts/themes/atlassian-light-saturated-palette-changes.d.ts +7 -0
  271. package/dist/types-ts4.5/artifacts/themes/atlassian-typography-adg3.d.ts +2 -2
  272. package/dist/types-ts4.5/artifacts/themes/atlassian-typography-minor3.d.ts +2 -2
  273. package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +2 -2
  274. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +13 -13
  275. package/dist/types-ts4.5/artifacts/token-names.d.ts +21 -21
  276. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.d.ts +109 -0
  277. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.d.ts +89 -0
  278. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +1 -1
  279. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +1 -1
  280. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +1 -1
  281. package/dist/types-ts4.5/palettes/palette.d.ts +1 -1
  282. package/dist/types-ts4.5/palettes/updated-saturated-palette.d.ts +10 -0
  283. package/dist/types-ts4.5/theme-config.d.ts +12 -4
  284. package/dist/types-ts4.5/tokens/atlassian-dark/utility/utility.d.ts +1 -1
  285. package/dist/types-ts4.5/tokens/atlassian-dark-saturated-palette-changes/color/accent.d.ts +4 -0
  286. package/dist/types-ts4.5/tokens/atlassian-dark-saturated-palette-changes/color/background.d.ts +4 -0
  287. package/dist/types-ts4.5/tokens/atlassian-dark-saturated-palette-changes/color/icon.d.ts +4 -0
  288. package/dist/types-ts4.5/tokens/atlassian-light/utility/utility.d.ts +1 -1
  289. package/dist/types-ts4.5/tokens/atlassian-light-saturated-palette-changes/color/accent.d.ts +4 -0
  290. package/dist/types-ts4.5/tokens/atlassian-light-saturated-palette-changes/color/background.d.ts +4 -0
  291. package/dist/types-ts4.5/tokens/atlassian-light-saturated-palette-changes/color/icon.d.ts +4 -0
  292. package/dist/types-ts4.5/tokens/atlassian-typography-adg3/theme.d.ts +13 -13
  293. package/dist/types-ts4.5/tokens/atlassian-typography-minor3/theme.d.ts +13 -13
  294. package/dist/types-ts4.5/tokens/default/utility/utility.d.ts +1 -1
  295. package/dist/types-ts4.5/types.d.ts +11 -11
  296. package/dist/types-ts4.5/utils/get-theme-preferences.d.ts +1 -0
  297. package/figma/atlassian-dark-saturated-palette-changes.json +3540 -0
  298. package/figma/atlassian-light-saturated-palette-changes.json +3519 -0
  299. package/figma/atlassian-typography-adg3.json +2 -2
  300. package/figma/atlassian-typography-minor3.json +3 -3
  301. package/figma/atlassian-typography.json +3 -3
  302. package/package.json +5 -1
  303. package/report.api.md +32 -22
  304. package/tmp/api-report-tmp.d.ts +26 -24
@@ -9,7 +9,7 @@ const utility = {
9
9
  const typography = {
10
10
  font: {
11
11
  heading: {
12
- xxl: {
12
+ xxlarge: {
13
13
  value: {
14
14
  fontWeight: 'FontWeight700',
15
15
  fontSize: 'FontSize32',
@@ -19,7 +19,7 @@ const typography = {
19
19
  letterSpacing: 'LetterSpacing0'
20
20
  }
21
21
  },
22
- xl: {
22
+ xlarge: {
23
23
  value: {
24
24
  fontWeight: 'FontWeight700',
25
25
  fontSize: 'FontSize28',
@@ -29,7 +29,7 @@ const typography = {
29
29
  letterSpacing: 'LetterSpacing0'
30
30
  }
31
31
  },
32
- lg: {
32
+ large: {
33
33
  value: {
34
34
  fontWeight: 'FontWeight700',
35
35
  fontSize: 'FontSize24',
@@ -39,7 +39,7 @@ const typography = {
39
39
  letterSpacing: 'LetterSpacing0'
40
40
  }
41
41
  },
42
- md: {
42
+ medium: {
43
43
  value: {
44
44
  fontWeight: 'FontWeight700',
45
45
  fontSize: 'FontSize20',
@@ -49,7 +49,7 @@ const typography = {
49
49
  letterSpacing: 'LetterSpacing0'
50
50
  }
51
51
  },
52
- sm: {
52
+ small: {
53
53
  value: {
54
54
  fontWeight: 'FontWeight700',
55
55
  fontSize: 'FontSize16',
@@ -59,7 +59,7 @@ const typography = {
59
59
  letterSpacing: 'LetterSpacing0'
60
60
  }
61
61
  },
62
- xs: {
62
+ xsmall: {
63
63
  value: {
64
64
  fontWeight: 'FontWeight700',
65
65
  fontSize: 'FontSize14',
@@ -69,7 +69,7 @@ const typography = {
69
69
  letterSpacing: 'LetterSpacing0'
70
70
  }
71
71
  },
72
- xxs: {
72
+ xxsmall: {
73
73
  value: {
74
74
  fontWeight: 'FontWeight700',
75
75
  fontSize: 'FontSize12',
@@ -103,7 +103,7 @@ const typography = {
103
103
  letterSpacing: 'LetterSpacing0'
104
104
  }
105
105
  },
106
- lg: {
106
+ large: {
107
107
  value: {
108
108
  fontWeight: 'FontWeight400',
109
109
  fontSize: 'FontSize16',
@@ -113,7 +113,7 @@ const typography = {
113
113
  letterSpacing: 'LetterSpacing0'
114
114
  }
115
115
  },
116
- sm: {
116
+ small: {
117
117
  value: {
118
118
  fontWeight: 'FontWeight400',
119
119
  fontSize: 'FontSize12',
@@ -135,7 +135,7 @@ const typography = {
135
135
  letterSpacing: 'LetterSpacing0'
136
136
  }
137
137
  },
138
- sm: {
138
+ small: {
139
139
  value: {
140
140
  fontWeight: 'FontWeight400',
141
141
  fontSize: 'FontSize12',
@@ -28,7 +28,7 @@ const font = {
28
28
  }
29
29
  },
30
30
  heading: {
31
- xxl: {
31
+ xxlarge: {
32
32
  attributes: {
33
33
  group: 'typography',
34
34
  state: 'experimental',
@@ -36,7 +36,7 @@ const font = {
36
36
  description: 'TBD'
37
37
  }
38
38
  },
39
- xl: {
39
+ xlarge: {
40
40
  attributes: {
41
41
  group: 'typography',
42
42
  state: 'experimental',
@@ -44,7 +44,7 @@ const font = {
44
44
  description: 'TBD'
45
45
  }
46
46
  },
47
- lg: {
47
+ large: {
48
48
  attributes: {
49
49
  group: 'typography',
50
50
  state: 'experimental',
@@ -52,7 +52,7 @@ const font = {
52
52
  description: 'TBD'
53
53
  }
54
54
  },
55
- md: {
55
+ medium: {
56
56
  attributes: {
57
57
  group: 'typography',
58
58
  state: 'experimental',
@@ -60,7 +60,7 @@ const font = {
60
60
  description: 'TBD'
61
61
  }
62
62
  },
63
- sm: {
63
+ small: {
64
64
  attributes: {
65
65
  group: 'typography',
66
66
  state: 'experimental',
@@ -68,7 +68,7 @@ const font = {
68
68
  description: 'TBD'
69
69
  }
70
70
  },
71
- xs: {
71
+ xsmall: {
72
72
  attributes: {
73
73
  group: 'typography',
74
74
  state: 'experimental',
@@ -76,7 +76,7 @@ const font = {
76
76
  description: 'TBD'
77
77
  }
78
78
  },
79
- xxs: {
79
+ xxsmall: {
80
80
  attributes: {
81
81
  group: 'typography',
82
82
  state: 'experimental',
@@ -86,7 +86,7 @@ const font = {
86
86
  }
87
87
  },
88
88
  ui: {
89
- sm: {
89
+ small: {
90
90
  attributes: {
91
91
  group: 'typography',
92
92
  state: 'experimental',
@@ -104,7 +104,7 @@ const font = {
104
104
  }
105
105
  },
106
106
  body: {
107
- lg: {
107
+ large: {
108
108
  attributes: {
109
109
  group: 'typography',
110
110
  state: 'experimental',
@@ -112,7 +112,7 @@ const font = {
112
112
  description: 'Larger body font or default body font for text rich experiences.'
113
113
  }
114
114
  },
115
- sm: {
115
+ small: {
116
116
  attributes: {
117
117
  group: 'typography',
118
118
  state: 'experimental',
@@ -9,13 +9,37 @@ export const getThemePreferences = themeState => {
9
9
  typography
10
10
  } = themeState;
11
11
  const themePreferences = colorMode === 'auto' ? [light, dark] : [themeState[colorMode]];
12
+
13
+ // Replace light/dark theme with new palette if feature flag is on
14
+ if (getBooleanFF('platform.design-system-team.saturated-palette-changes_asoro')) {
15
+ // Iterate over themePreferences and swap out light/dark with new palette
16
+ themePreferences.forEach((themeId, index) => {
17
+ if (themeId === 'light') {
18
+ themePreferences[index] = 'light-saturated-palette-changes';
19
+ }
20
+ if (themeId === 'dark') {
21
+ themePreferences[index] = 'dark-saturated-palette-changes';
22
+ }
23
+ });
24
+ }
12
25
  [shape, spacing, typography].forEach(themeId => {
13
26
  if (themeId) {
14
27
  themePreferences.push(themeId);
15
28
  }
16
29
  });
30
+ return [...new Set(themePreferences)];
31
+ };
32
+ export const getThemeOverridePreferences = themeState => {
33
+ const {
34
+ colorMode,
35
+ dark,
36
+ light
37
+ } = themeState;
38
+ const themeOverridePreferences = [];
39
+ const themePreferences = colorMode === 'auto' ? [light, dark] : [themeState[colorMode]];
17
40
  if (getBooleanFF('platform.design-system-team.border-checkbox_nyoiu')) {
18
- themePreferences.push(`${themePreferences.includes('dark') ? 'dark' : 'light'}-new-input-border`);
41
+ themePreferences.includes('light') && themeOverridePreferences.push('light-new-input-border');
42
+ themePreferences.includes('dark') && themeOverridePreferences.push('dark-new-input-border');
19
43
  }
20
- return [...new Set(themePreferences)];
44
+ return [...new Set(themeOverridePreferences)];
21
45
  };
@@ -1,4 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ var _class2;
2
3
  /**
3
4
  * Below lines are copied from @material/material-color-utilities.
4
5
  * Do not modify it.
@@ -925,7 +926,8 @@ export class ViewingConditions {
925
926
  this.z = z;
926
927
  }
927
928
  }
929
+ _class2 = ViewingConditions;
928
930
  /**
929
931
  * sRGB-like viewing conditions.
930
932
  */
931
- _defineProperty(ViewingConditions, "DEFAULT", ViewingConditions.make());
933
+ _defineProperty(ViewingConditions, "DEFAULT", _class2.make());
@@ -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::fb8c64dc20041c62b562be8da8152e46>>
3
+ * @codegen <<SignedSource::70935f0c6dc0ecb8df8e0eea44853fba>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  var tokens = [{
@@ -64,14 +64,14 @@ var tokens = [{
64
64
  "name": "typography.fontFamily.FontFamilyWebMono",
65
65
  "path": ["typography", "fontFamily", "FontFamilyWebMono"]
66
66
  }, {
67
- "value": "ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
67
+ "value": "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif",
68
68
  "attributes": {
69
69
  "group": "fontFamily"
70
70
  },
71
71
  "filePath": "src/palettes/typography-palette.tsx",
72
72
  "isSource": true,
73
73
  "original": {
74
- "value": "ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
74
+ "value": "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif",
75
75
  "attributes": {
76
76
  "group": "fontFamily"
77
77
  }