@atlaskit/tokens 0.10.25 → 0.10.27

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 (258) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/css/atlassian-spacing.css +20 -0
  3. package/dist/cjs/artifacts/palettes-raw/palette.js +233 -233
  4. package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +195 -0
  5. package/dist/cjs/artifacts/rename-mapping/atlassian-dark.js +427 -0
  6. package/dist/cjs/artifacts/rename-mapping/atlassian-legacy-dark.js +427 -0
  7. package/dist/cjs/artifacts/rename-mapping/atlassian-legacy-light.js +427 -0
  8. package/dist/cjs/artifacts/rename-mapping/atlassian-light.js +427 -0
  9. package/dist/cjs/artifacts/rename-mapping/atlassian-spacing.js +79 -0
  10. package/dist/cjs/artifacts/rename-mapping.js +11 -418
  11. package/dist/cjs/artifacts/token-default-values.js +15 -302
  12. package/dist/cjs/artifacts/token-names.js +14 -298
  13. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +282 -282
  14. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +282 -282
  15. package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +314 -0
  16. package/dist/cjs/artifacts/typescript/atlassian-dark-token-names.js +307 -0
  17. package/dist/cjs/artifacts/typescript/atlassian-dark-types-internal.js +5 -0
  18. package/dist/cjs/artifacts/typescript/atlassian-dark-types.js +5 -0
  19. package/dist/cjs/artifacts/typescript/atlassian-legacy-dark-token-names.js +307 -0
  20. package/dist/cjs/artifacts/typescript/atlassian-legacy-dark-types-internal.js +5 -0
  21. package/dist/cjs/artifacts/typescript/atlassian-legacy-dark-types.js +5 -0
  22. package/dist/cjs/artifacts/typescript/atlassian-legacy-light-token-names.js +307 -0
  23. package/dist/cjs/artifacts/typescript/atlassian-legacy-light-types-internal.js +5 -0
  24. package/dist/cjs/artifacts/typescript/atlassian-legacy-light-types.js +5 -0
  25. package/dist/cjs/artifacts/typescript/atlassian-light-token-default-values.js +311 -0
  26. package/dist/cjs/artifacts/typescript/atlassian-light-token-names.js +307 -0
  27. package/dist/cjs/artifacts/typescript/atlassian-light-types-internal.js +5 -0
  28. package/dist/cjs/artifacts/typescript/atlassian-light-types.js +5 -0
  29. package/dist/cjs/artifacts/typescript/atlassian-spacing-token-default-values.js +33 -0
  30. package/dist/cjs/artifacts/typescript/atlassian-spacing-token-names.js +29 -0
  31. package/dist/cjs/artifacts/typescript/atlassian-spacing-types-internal.js +5 -0
  32. package/dist/cjs/artifacts/typescript/atlassian-spacing-types.js +5 -0
  33. package/dist/cjs/constants.js +4 -3
  34. package/dist/cjs/get-token.js +1 -1
  35. package/dist/cjs/palettes/palette.js +116 -116
  36. package/dist/cjs/palettes/spacing-scale.js +86 -0
  37. package/dist/cjs/tokens/atlassian-dark/color/accent.js +72 -72
  38. package/dist/cjs/tokens/atlassian-dark/color/background.js +54 -54
  39. package/dist/cjs/tokens/atlassian-dark/color/border.js +13 -13
  40. package/dist/cjs/tokens/atlassian-dark/color/icon.js +12 -12
  41. package/dist/cjs/tokens/atlassian-dark/color/skeleton.js +2 -2
  42. package/dist/cjs/tokens/atlassian-dark/color/text.js +15 -15
  43. package/dist/cjs/tokens/atlassian-dark/deprecated/deprecated.js +100 -100
  44. package/dist/cjs/tokens/atlassian-dark/elevation/shadow.js +5 -5
  45. package/dist/cjs/tokens/atlassian-dark/elevation/surface.js +10 -10
  46. package/dist/cjs/tokens/atlassian-legacy-dark/color/background.js +2 -2
  47. package/dist/cjs/tokens/atlassian-legacy-light/color/background.js +2 -2
  48. package/dist/cjs/tokens/atlassian-light/color/accent.js +72 -72
  49. package/dist/cjs/tokens/atlassian-light/color/background.js +54 -54
  50. package/dist/cjs/tokens/atlassian-light/color/border.js +13 -13
  51. package/dist/cjs/tokens/atlassian-light/color/icon.js +12 -12
  52. package/dist/cjs/tokens/atlassian-light/color/skeleton.js +2 -2
  53. package/dist/cjs/tokens/atlassian-light/color/text.js +15 -15
  54. package/dist/cjs/tokens/atlassian-light/deprecated/deprecated.js +99 -99
  55. package/dist/cjs/tokens/atlassian-light/elevation/shadow.js +6 -6
  56. package/dist/cjs/tokens/atlassian-light/elevation/surface.js +10 -10
  57. package/dist/cjs/tokens/atlassian-spacing/spacing.js +55 -0
  58. package/dist/cjs/tokens/default/spacing/spacing.js +133 -0
  59. package/dist/cjs/version.json +1 -1
  60. package/dist/es2019/artifacts/palettes-raw/palette.js +233 -233
  61. package/dist/es2019/artifacts/palettes-raw/spacing-scale.js +187 -0
  62. package/dist/es2019/artifacts/rename-mapping/atlassian-dark.js +419 -0
  63. package/dist/es2019/artifacts/rename-mapping/atlassian-legacy-dark.js +419 -0
  64. package/dist/es2019/artifacts/rename-mapping/atlassian-legacy-light.js +419 -0
  65. package/dist/es2019/artifacts/rename-mapping/atlassian-light.js +419 -0
  66. package/dist/es2019/artifacts/rename-mapping/atlassian-spacing.js +71 -0
  67. package/dist/es2019/artifacts/rename-mapping.js +5 -418
  68. package/dist/es2019/artifacts/token-default-values.js +7 -301
  69. package/dist/es2019/artifacts/token-names.js +6 -297
  70. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +282 -282
  71. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +282 -282
  72. package/dist/es2019/artifacts/tokens-raw/atlassian-spacing.js +306 -0
  73. package/dist/es2019/artifacts/typescript/atlassian-dark-token-names.js +299 -0
  74. package/dist/es2019/artifacts/typescript/atlassian-dark-types-internal.js +1 -0
  75. package/dist/es2019/artifacts/typescript/atlassian-dark-types.js +1 -0
  76. package/dist/es2019/artifacts/typescript/atlassian-legacy-dark-token-names.js +299 -0
  77. package/dist/es2019/artifacts/typescript/atlassian-legacy-dark-types-internal.js +1 -0
  78. package/dist/es2019/artifacts/typescript/atlassian-legacy-dark-types.js +1 -0
  79. package/dist/es2019/artifacts/typescript/atlassian-legacy-light-token-names.js +299 -0
  80. package/dist/es2019/artifacts/typescript/atlassian-legacy-light-types-internal.js +1 -0
  81. package/dist/es2019/artifacts/typescript/atlassian-legacy-light-types.js +1 -0
  82. package/dist/es2019/artifacts/typescript/atlassian-light-token-default-values.js +303 -0
  83. package/dist/es2019/artifacts/typescript/atlassian-light-token-names.js +299 -0
  84. package/dist/es2019/artifacts/typescript/atlassian-light-types-internal.js +1 -0
  85. package/dist/es2019/artifacts/typescript/atlassian-light-types.js +1 -0
  86. package/dist/es2019/artifacts/typescript/atlassian-spacing-token-default-values.js +25 -0
  87. package/dist/es2019/artifacts/typescript/atlassian-spacing-token-names.js +21 -0
  88. package/dist/es2019/artifacts/typescript/atlassian-spacing-types-internal.js +7 -0
  89. package/dist/es2019/artifacts/typescript/atlassian-spacing-types.js +7 -0
  90. package/dist/es2019/constants.js +4 -3
  91. package/dist/es2019/get-token.js +1 -1
  92. package/dist/es2019/palettes/palette.js +116 -116
  93. package/dist/es2019/palettes/spacing-scale.js +79 -0
  94. package/dist/es2019/tokens/atlassian-dark/color/accent.js +72 -72
  95. package/dist/es2019/tokens/atlassian-dark/color/background.js +54 -54
  96. package/dist/es2019/tokens/atlassian-dark/color/border.js +13 -13
  97. package/dist/es2019/tokens/atlassian-dark/color/icon.js +12 -12
  98. package/dist/es2019/tokens/atlassian-dark/color/skeleton.js +2 -2
  99. package/dist/es2019/tokens/atlassian-dark/color/text.js +15 -15
  100. package/dist/es2019/tokens/atlassian-dark/deprecated/deprecated.js +100 -100
  101. package/dist/es2019/tokens/atlassian-dark/elevation/shadow.js +5 -5
  102. package/dist/es2019/tokens/atlassian-dark/elevation/surface.js +10 -10
  103. package/dist/es2019/tokens/atlassian-legacy-dark/color/background.js +2 -2
  104. package/dist/es2019/tokens/atlassian-legacy-light/color/background.js +2 -2
  105. package/dist/es2019/tokens/atlassian-light/color/accent.js +72 -72
  106. package/dist/es2019/tokens/atlassian-light/color/background.js +54 -54
  107. package/dist/es2019/tokens/atlassian-light/color/border.js +13 -13
  108. package/dist/es2019/tokens/atlassian-light/color/icon.js +12 -12
  109. package/dist/es2019/tokens/atlassian-light/color/skeleton.js +2 -2
  110. package/dist/es2019/tokens/atlassian-light/color/text.js +15 -15
  111. package/dist/es2019/tokens/atlassian-light/deprecated/deprecated.js +99 -99
  112. package/dist/es2019/tokens/atlassian-light/elevation/shadow.js +6 -6
  113. package/dist/es2019/tokens/atlassian-light/elevation/surface.js +10 -10
  114. package/dist/es2019/tokens/atlassian-spacing/spacing.js +48 -0
  115. package/dist/es2019/tokens/default/spacing/spacing.js +126 -0
  116. package/dist/es2019/version.json +1 -1
  117. package/dist/esm/artifacts/palettes-raw/palette.js +233 -233
  118. package/dist/esm/artifacts/palettes-raw/spacing-scale.js +187 -0
  119. package/dist/esm/artifacts/rename-mapping/atlassian-dark.js +419 -0
  120. package/dist/esm/artifacts/rename-mapping/atlassian-legacy-dark.js +419 -0
  121. package/dist/esm/artifacts/rename-mapping/atlassian-legacy-light.js +419 -0
  122. package/dist/esm/artifacts/rename-mapping/atlassian-light.js +419 -0
  123. package/dist/esm/artifacts/rename-mapping/atlassian-spacing.js +71 -0
  124. package/dist/esm/artifacts/rename-mapping.js +7 -418
  125. package/dist/esm/artifacts/token-default-values.js +14 -302
  126. package/dist/esm/artifacts/token-names.js +13 -298
  127. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +282 -282
  128. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +282 -282
  129. package/dist/esm/artifacts/tokens-raw/atlassian-spacing.js +306 -0
  130. package/dist/esm/artifacts/typescript/atlassian-dark-token-names.js +299 -0
  131. package/dist/esm/artifacts/typescript/atlassian-dark-types-internal.js +1 -0
  132. package/dist/esm/artifacts/typescript/atlassian-dark-types.js +1 -0
  133. package/dist/esm/artifacts/typescript/atlassian-legacy-dark-token-names.js +299 -0
  134. package/dist/esm/artifacts/typescript/atlassian-legacy-dark-types-internal.js +1 -0
  135. package/dist/esm/artifacts/typescript/atlassian-legacy-dark-types.js +1 -0
  136. package/dist/esm/artifacts/typescript/atlassian-legacy-light-token-names.js +299 -0
  137. package/dist/esm/artifacts/typescript/atlassian-legacy-light-types-internal.js +1 -0
  138. package/dist/esm/artifacts/typescript/atlassian-legacy-light-types.js +1 -0
  139. package/dist/esm/artifacts/typescript/atlassian-light-token-default-values.js +303 -0
  140. package/dist/esm/artifacts/typescript/atlassian-light-token-names.js +299 -0
  141. package/dist/esm/artifacts/typescript/atlassian-light-types-internal.js +1 -0
  142. package/dist/esm/artifacts/typescript/atlassian-light-types.js +1 -0
  143. package/dist/esm/artifacts/typescript/atlassian-spacing-token-default-values.js +25 -0
  144. package/dist/esm/artifacts/typescript/atlassian-spacing-token-names.js +21 -0
  145. package/dist/esm/artifacts/typescript/atlassian-spacing-types-internal.js +7 -0
  146. package/dist/esm/artifacts/typescript/atlassian-spacing-types.js +7 -0
  147. package/dist/esm/constants.js +4 -3
  148. package/dist/esm/get-token.js +1 -1
  149. package/dist/esm/palettes/palette.js +116 -116
  150. package/dist/esm/palettes/spacing-scale.js +79 -0
  151. package/dist/esm/tokens/atlassian-dark/color/accent.js +72 -72
  152. package/dist/esm/tokens/atlassian-dark/color/background.js +54 -54
  153. package/dist/esm/tokens/atlassian-dark/color/border.js +13 -13
  154. package/dist/esm/tokens/atlassian-dark/color/icon.js +12 -12
  155. package/dist/esm/tokens/atlassian-dark/color/skeleton.js +2 -2
  156. package/dist/esm/tokens/atlassian-dark/color/text.js +15 -15
  157. package/dist/esm/tokens/atlassian-dark/deprecated/deprecated.js +100 -100
  158. package/dist/esm/tokens/atlassian-dark/elevation/shadow.js +5 -5
  159. package/dist/esm/tokens/atlassian-dark/elevation/surface.js +10 -10
  160. package/dist/esm/tokens/atlassian-legacy-dark/color/background.js +2 -2
  161. package/dist/esm/tokens/atlassian-legacy-light/color/background.js +2 -2
  162. package/dist/esm/tokens/atlassian-light/color/accent.js +72 -72
  163. package/dist/esm/tokens/atlassian-light/color/background.js +54 -54
  164. package/dist/esm/tokens/atlassian-light/color/border.js +13 -13
  165. package/dist/esm/tokens/atlassian-light/color/icon.js +12 -12
  166. package/dist/esm/tokens/atlassian-light/color/skeleton.js +2 -2
  167. package/dist/esm/tokens/atlassian-light/color/text.js +15 -15
  168. package/dist/esm/tokens/atlassian-light/deprecated/deprecated.js +99 -99
  169. package/dist/esm/tokens/atlassian-light/elevation/shadow.js +6 -6
  170. package/dist/esm/tokens/atlassian-light/elevation/surface.js +10 -10
  171. package/dist/esm/tokens/atlassian-spacing/spacing.js +48 -0
  172. package/dist/esm/tokens/default/spacing/spacing.js +126 -0
  173. package/dist/esm/version.json +1 -1
  174. package/dist/types/artifacts/palettes-raw/palette.d.ts +1 -1
  175. package/dist/types/artifacts/palettes-raw/spacing-scale.d.ts +22 -0
  176. package/dist/types/artifacts/rename-mapping/atlassian-dark.d.ts +26 -0
  177. package/dist/types/artifacts/rename-mapping/atlassian-legacy-dark.d.ts +26 -0
  178. package/dist/types/artifacts/rename-mapping/atlassian-legacy-light.d.ts +26 -0
  179. package/dist/types/artifacts/rename-mapping/atlassian-light.d.ts +26 -0
  180. package/dist/types/artifacts/rename-mapping/atlassian-spacing.d.ts +26 -0
  181. package/dist/types/artifacts/rename-mapping.d.ts +4 -24
  182. package/dist/types/artifacts/token-default-values.d.ts +306 -301
  183. package/dist/types/artifacts/token-names.d.ts +16 -298
  184. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
  185. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  186. package/dist/types/artifacts/tokens-raw/atlassian-spacing.d.ts +30 -0
  187. package/dist/types/artifacts/types-internal.d.ts +2 -6
  188. package/dist/types/artifacts/types.d.ts +2 -6
  189. package/dist/types/artifacts/typescript/atlassian-dark-token-names.d.ts +592 -0
  190. package/dist/types/artifacts/typescript/atlassian-dark-types-internal.d.ts +6 -0
  191. package/dist/types/artifacts/typescript/atlassian-dark-types.d.ts +6 -0
  192. package/dist/types/artifacts/typescript/atlassian-legacy-dark-token-names.d.ts +592 -0
  193. package/dist/types/artifacts/typescript/atlassian-legacy-dark-types-internal.d.ts +6 -0
  194. package/dist/types/artifacts/typescript/atlassian-legacy-dark-types.d.ts +6 -0
  195. package/dist/types/artifacts/typescript/atlassian-legacy-light-token-names.d.ts +592 -0
  196. package/dist/types/artifacts/typescript/atlassian-legacy-light-types-internal.d.ts +6 -0
  197. package/dist/types/artifacts/typescript/atlassian-legacy-light-types.d.ts +6 -0
  198. package/dist/types/artifacts/typescript/atlassian-light-token-default-values.d.ts +303 -0
  199. package/dist/types/artifacts/typescript/atlassian-light-token-names.d.ts +592 -0
  200. package/dist/types/artifacts/typescript/atlassian-light-types-internal.d.ts +6 -0
  201. package/dist/types/artifacts/typescript/atlassian-light-types.d.ts +6 -0
  202. package/dist/types/artifacts/typescript/atlassian-spacing-token-default-values.d.ts +25 -0
  203. package/dist/types/artifacts/typescript/atlassian-spacing-token-names.d.ts +36 -0
  204. package/dist/types/artifacts/typescript/atlassian-spacing-types-internal.d.ts +6 -0
  205. package/dist/types/artifacts/typescript/atlassian-spacing-types.d.ts +6 -0
  206. package/dist/types/constants.d.ts +3 -2
  207. package/dist/types/palettes/palette.d.ts +1 -1
  208. package/dist/types/palettes/spacing-scale.d.ts +5 -0
  209. package/dist/types/tokens/atlassian-dark/utility/utility.d.ts +1 -1
  210. package/dist/types/tokens/atlassian-light/utility/utility.d.ts +1 -1
  211. package/dist/types/tokens/atlassian-spacing/spacing.d.ts +4 -0
  212. package/dist/types/tokens/default/spacing/spacing.d.ts +4 -0
  213. package/dist/types/tokens/default/utility/utility.d.ts +1 -1
  214. package/dist/types/types.d.ts +45 -5
  215. package/dist/types-ts4.0/artifacts/palettes-raw/palette.d.ts +1 -1
  216. package/dist/types-ts4.0/artifacts/palettes-raw/spacing-scale.d.ts +22 -0
  217. package/dist/types-ts4.0/artifacts/rename-mapping/atlassian-dark.d.ts +26 -0
  218. package/dist/types-ts4.0/artifacts/rename-mapping/atlassian-legacy-dark.d.ts +26 -0
  219. package/dist/types-ts4.0/artifacts/rename-mapping/atlassian-legacy-light.d.ts +26 -0
  220. package/dist/types-ts4.0/artifacts/rename-mapping/atlassian-light.d.ts +26 -0
  221. package/dist/types-ts4.0/artifacts/rename-mapping/atlassian-spacing.d.ts +26 -0
  222. package/dist/types-ts4.0/artifacts/rename-mapping.d.ts +4 -24
  223. package/dist/types-ts4.0/artifacts/token-default-values.d.ts +306 -301
  224. package/dist/types-ts4.0/artifacts/token-names.d.ts +16 -298
  225. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
  226. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  227. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-spacing.d.ts +30 -0
  228. package/dist/types-ts4.0/artifacts/types-internal.d.ts +2 -6
  229. package/dist/types-ts4.0/artifacts/types.d.ts +2 -6
  230. package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-token-names.d.ts +592 -0
  231. package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-types-internal.d.ts +6 -0
  232. package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-types.d.ts +6 -0
  233. package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-token-names.d.ts +592 -0
  234. package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-types-internal.d.ts +6 -0
  235. package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-types.d.ts +6 -0
  236. package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-token-names.d.ts +592 -0
  237. package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-types-internal.d.ts +6 -0
  238. package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-types.d.ts +6 -0
  239. package/dist/types-ts4.0/artifacts/typescript/atlassian-light-token-default-values.d.ts +303 -0
  240. package/dist/types-ts4.0/artifacts/typescript/atlassian-light-token-names.d.ts +592 -0
  241. package/dist/types-ts4.0/artifacts/typescript/atlassian-light-types-internal.d.ts +6 -0
  242. package/dist/types-ts4.0/artifacts/typescript/atlassian-light-types.d.ts +6 -0
  243. package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-token-default-values.d.ts +25 -0
  244. package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-token-names.d.ts +36 -0
  245. package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-types-internal.d.ts +6 -0
  246. package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-types.d.ts +6 -0
  247. package/dist/types-ts4.0/constants.d.ts +4 -2
  248. package/dist/types-ts4.0/palettes/palette.d.ts +1 -1
  249. package/dist/types-ts4.0/palettes/spacing-scale.d.ts +5 -0
  250. package/dist/types-ts4.0/tokens/atlassian-dark/utility/utility.d.ts +1 -1
  251. package/dist/types-ts4.0/tokens/atlassian-light/utility/utility.d.ts +1 -1
  252. package/dist/types-ts4.0/tokens/atlassian-spacing/spacing.d.ts +4 -0
  253. package/dist/types-ts4.0/tokens/default/spacing/spacing.d.ts +4 -0
  254. package/dist/types-ts4.0/tokens/default/utility/utility.d.ts +1 -1
  255. package/dist/types-ts4.0/types.d.ts +45 -5
  256. package/package.json +3 -2
  257. package/report.api.md +97 -50
  258. package/tmp/api-report-tmp.d.ts +664 -0
@@ -0,0 +1,6 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::39f5c50a16b92a67dcd34ffb038b73d2>>
4
+ * @codegenCommand yarn build tokens
5
+ */
6
+ export declare type InternalTokenIds = 'color.text.accent.blue.[default]' | 'color.text.accent.blue.bolder' | 'color.text.accent.red.[default]' | 'color.text.accent.red.bolder' | 'color.text.accent.orange.[default]' | 'color.text.accent.orange.bolder' | 'color.text.accent.yellow.[default]' | 'color.text.accent.yellow.bolder' | 'color.text.accent.green.[default]' | 'color.text.accent.green.bolder' | 'color.text.accent.purple.[default]' | 'color.text.accent.purple.bolder' | 'color.text.accent.teal.[default]' | 'color.text.accent.teal.bolder' | 'color.text.accent.magenta.[default]' | 'color.text.accent.magenta.bolder' | 'color.text.accent.gray.[default]' | 'color.text.accent.gray.bolder' | 'color.text.[default]' | 'color.text.subtle' | 'color.text.subtlest' | 'color.text.disabled' | 'color.text.inverse' | 'color.text.brand' | 'color.text.selected' | 'color.text.danger' | 'color.text.warning.[default]' | 'color.text.warning.inverse' | 'color.text.success' | 'color.text.discovery' | 'color.text.information' | 'color.icon.accent.blue' | 'color.icon.accent.red' | 'color.icon.accent.orange' | 'color.icon.accent.yellow' | 'color.icon.accent.green' | 'color.icon.accent.purple' | 'color.icon.accent.teal' | 'color.icon.accent.magenta' | 'color.icon.accent.gray' | 'color.icon.[default]' | 'color.icon.subtle' | 'color.icon.inverse' | 'color.icon.disabled' | 'color.icon.brand' | 'color.icon.selected' | 'color.icon.danger' | 'color.icon.warning.[default]' | 'color.icon.warning.inverse' | 'color.icon.success' | 'color.icon.discovery' | 'color.icon.information' | 'color.border.accent.blue' | 'color.border.accent.red' | 'color.border.accent.orange' | 'color.border.accent.yellow' | 'color.border.accent.green' | 'color.border.accent.purple' | 'color.border.accent.teal' | 'color.border.accent.magenta' | 'color.border.accent.gray' | 'color.border.[default]' | 'color.border.bold' | 'color.border.inverse' | 'color.border.focused' | 'color.border.input' | 'color.border.disabled' | 'color.border.brand' | 'color.border.selected' | 'color.border.danger' | 'color.border.warning' | 'color.border.success' | 'color.border.discovery' | 'color.border.information' | 'color.background.accent.blue.subtlest' | 'color.background.accent.blue.subtler' | 'color.background.accent.blue.subtle' | 'color.background.accent.blue.bolder' | 'color.background.accent.red.subtlest' | 'color.background.accent.red.subtler' | 'color.background.accent.red.subtle' | 'color.background.accent.red.bolder' | 'color.background.accent.orange.subtlest' | 'color.background.accent.orange.subtler' | 'color.background.accent.orange.subtle' | 'color.background.accent.orange.bolder' | 'color.background.accent.yellow.subtlest' | 'color.background.accent.yellow.subtler' | 'color.background.accent.yellow.subtle' | 'color.background.accent.yellow.bolder' | 'color.background.accent.green.subtlest' | 'color.background.accent.green.subtler' | 'color.background.accent.green.subtle' | 'color.background.accent.green.bolder' | 'color.background.accent.teal.subtlest' | 'color.background.accent.teal.subtler' | 'color.background.accent.teal.subtle' | 'color.background.accent.teal.bolder' | 'color.background.accent.purple.subtlest' | 'color.background.accent.purple.subtler' | 'color.background.accent.purple.subtle' | 'color.background.accent.purple.bolder' | 'color.background.accent.magenta.subtlest' | 'color.background.accent.magenta.subtler' | 'color.background.accent.magenta.subtle' | 'color.background.accent.magenta.bolder' | 'color.background.accent.gray.subtlest' | 'color.background.accent.gray.subtler' | 'color.background.accent.gray.subtle' | 'color.background.accent.gray.bolder' | 'color.background.disabled' | 'color.background.inverse.subtle.[default]' | 'color.background.inverse.subtle.hovered' | 'color.background.inverse.subtle.pressed' | 'color.background.input.[default]' | 'color.background.input.hovered' | 'color.background.input.pressed' | 'color.background.neutral.[default].[default]' | 'color.background.neutral.[default].hovered' | 'color.background.neutral.[default].pressed' | 'color.background.neutral.subtle.[default]' | 'color.background.neutral.subtle.hovered' | 'color.background.neutral.subtle.pressed' | 'color.background.neutral.bold.[default]' | 'color.background.neutral.bold.hovered' | 'color.background.neutral.bold.pressed' | 'color.background.brand.bold.[default]' | 'color.background.brand.bold.hovered' | 'color.background.brand.bold.pressed' | 'color.background.selected.[default].[default]' | 'color.background.selected.[default].hovered' | 'color.background.selected.[default].pressed' | 'color.background.selected.bold.[default]' | 'color.background.selected.bold.hovered' | 'color.background.selected.bold.pressed' | 'color.background.danger.[default].[default]' | 'color.background.danger.[default].hovered' | 'color.background.danger.[default].pressed' | 'color.background.danger.bold.[default]' | 'color.background.danger.bold.hovered' | 'color.background.danger.bold.pressed' | 'color.background.warning.[default].[default]' | 'color.background.warning.[default].hovered' | 'color.background.warning.[default].pressed' | 'color.background.warning.bold.[default]' | 'color.background.warning.bold.hovered' | 'color.background.warning.bold.pressed' | 'color.background.success.[default].[default]' | 'color.background.success.[default].hovered' | 'color.background.success.[default].pressed' | 'color.background.success.bold.[default]' | 'color.background.success.bold.hovered' | 'color.background.success.bold.pressed' | 'color.background.discovery.[default].[default]' | 'color.background.discovery.[default].hovered' | 'color.background.discovery.[default].pressed' | 'color.background.discovery.bold.[default]' | 'color.background.discovery.bold.hovered' | 'color.background.discovery.bold.pressed' | 'color.background.information.[default].[default]' | 'color.background.information.[default].hovered' | 'color.background.information.[default].pressed' | 'color.background.information.bold.[default]' | 'color.background.information.bold.hovered' | 'color.background.information.bold.pressed' | 'color.blanket.[default]' | 'color.blanket.selected' | 'color.blanket.danger' | 'color.interaction.hovered' | 'color.interaction.pressed' | 'color.skeleton.[default]' | 'color.skeleton.subtle' | 'color.link.[default]' | 'color.link.pressed' | 'elevation.shadow.raised' | 'elevation.shadow.overflow' | 'elevation.shadow.overlay' | 'elevation.surface.[default].[default]' | 'elevation.surface.[default].hovered' | 'elevation.surface.[default].pressed' | 'elevation.surface.sunken' | 'elevation.surface.raised.[default]' | 'elevation.surface.raised.hovered' | 'elevation.surface.raised.pressed' | 'elevation.surface.overlay.[default]' | 'elevation.surface.overlay.hovered' | 'elevation.surface.overlay.pressed' | 'opacity.disabled' | 'opacity.loading' | 'utility.UNSAFE_util.transparent' | 'utility.UNSAFE_util.MISSING_TOKEN';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::02e94c9602d30a3320fd9e00a1950a7c>>
4
+ * @codegenCommand yarn build tokens
5
+ */
6
+ export declare type ActiveTokens = 'color.text.accent.blue' | 'color.text.accent.blue.bolder' | 'color.text.accent.red' | 'color.text.accent.red.bolder' | 'color.text.accent.orange' | 'color.text.accent.orange.bolder' | 'color.text.accent.yellow' | 'color.text.accent.yellow.bolder' | 'color.text.accent.green' | 'color.text.accent.green.bolder' | 'color.text.accent.purple' | 'color.text.accent.purple.bolder' | 'color.text.accent.teal' | 'color.text.accent.teal.bolder' | 'color.text.accent.magenta' | 'color.text.accent.magenta.bolder' | 'color.text.accent.gray' | 'color.text.accent.gray.bolder' | 'color.text' | 'color.text.subtle' | 'color.text.subtlest' | 'color.text.disabled' | 'color.text.inverse' | 'color.text.brand' | 'color.text.selected' | 'color.text.danger' | 'color.text.warning' | 'color.text.warning.inverse' | 'color.text.success' | 'color.text.discovery' | 'color.text.information' | 'color.icon.accent.blue' | 'color.icon.accent.red' | 'color.icon.accent.orange' | 'color.icon.accent.yellow' | 'color.icon.accent.green' | 'color.icon.accent.purple' | 'color.icon.accent.teal' | 'color.icon.accent.magenta' | 'color.icon.accent.gray' | 'color.icon' | 'color.icon.subtle' | 'color.icon.inverse' | 'color.icon.disabled' | 'color.icon.brand' | 'color.icon.selected' | 'color.icon.danger' | 'color.icon.warning' | 'color.icon.warning.inverse' | 'color.icon.success' | 'color.icon.discovery' | 'color.icon.information' | 'color.border.accent.blue' | 'color.border.accent.red' | 'color.border.accent.orange' | 'color.border.accent.yellow' | 'color.border.accent.green' | 'color.border.accent.purple' | 'color.border.accent.teal' | 'color.border.accent.magenta' | 'color.border.accent.gray' | 'color.border' | 'color.border.bold' | 'color.border.inverse' | 'color.border.focused' | 'color.border.input' | 'color.border.disabled' | 'color.border.brand' | 'color.border.selected' | 'color.border.danger' | 'color.border.warning' | 'color.border.success' | 'color.border.discovery' | 'color.border.information' | 'color.background.accent.blue.subtlest' | 'color.background.accent.blue.subtler' | 'color.background.accent.blue.subtle' | 'color.background.accent.blue.bolder' | 'color.background.accent.red.subtlest' | 'color.background.accent.red.subtler' | 'color.background.accent.red.subtle' | 'color.background.accent.red.bolder' | 'color.background.accent.orange.subtlest' | 'color.background.accent.orange.subtler' | 'color.background.accent.orange.subtle' | 'color.background.accent.orange.bolder' | 'color.background.accent.yellow.subtlest' | 'color.background.accent.yellow.subtler' | 'color.background.accent.yellow.subtle' | 'color.background.accent.yellow.bolder' | 'color.background.accent.green.subtlest' | 'color.background.accent.green.subtler' | 'color.background.accent.green.subtle' | 'color.background.accent.green.bolder' | 'color.background.accent.teal.subtlest' | 'color.background.accent.teal.subtler' | 'color.background.accent.teal.subtle' | 'color.background.accent.teal.bolder' | 'color.background.accent.purple.subtlest' | 'color.background.accent.purple.subtler' | 'color.background.accent.purple.subtle' | 'color.background.accent.purple.bolder' | 'color.background.accent.magenta.subtlest' | 'color.background.accent.magenta.subtler' | 'color.background.accent.magenta.subtle' | 'color.background.accent.magenta.bolder' | 'color.background.accent.gray.subtlest' | 'color.background.accent.gray.subtler' | 'color.background.accent.gray.subtle' | 'color.background.accent.gray.bolder' | 'color.background.disabled' | 'color.background.inverse.subtle' | 'color.background.inverse.subtle.hovered' | 'color.background.inverse.subtle.pressed' | 'color.background.input' | 'color.background.input.hovered' | 'color.background.input.pressed' | 'color.background.neutral' | 'color.background.neutral.hovered' | 'color.background.neutral.pressed' | 'color.background.neutral.subtle' | 'color.background.neutral.subtle.hovered' | 'color.background.neutral.subtle.pressed' | 'color.background.neutral.bold' | 'color.background.neutral.bold.hovered' | 'color.background.neutral.bold.pressed' | 'color.background.brand.bold' | 'color.background.brand.bold.hovered' | 'color.background.brand.bold.pressed' | 'color.background.selected' | 'color.background.selected.hovered' | 'color.background.selected.pressed' | 'color.background.selected.bold' | 'color.background.selected.bold.hovered' | 'color.background.selected.bold.pressed' | 'color.background.danger' | 'color.background.danger.hovered' | 'color.background.danger.pressed' | 'color.background.danger.bold' | 'color.background.danger.bold.hovered' | 'color.background.danger.bold.pressed' | 'color.background.warning' | 'color.background.warning.hovered' | 'color.background.warning.pressed' | 'color.background.warning.bold' | 'color.background.warning.bold.hovered' | 'color.background.warning.bold.pressed' | 'color.background.success' | 'color.background.success.hovered' | 'color.background.success.pressed' | 'color.background.success.bold' | 'color.background.success.bold.hovered' | 'color.background.success.bold.pressed' | 'color.background.discovery' | 'color.background.discovery.hovered' | 'color.background.discovery.pressed' | 'color.background.discovery.bold' | 'color.background.discovery.bold.hovered' | 'color.background.discovery.bold.pressed' | 'color.background.information' | 'color.background.information.hovered' | 'color.background.information.pressed' | 'color.background.information.bold' | 'color.background.information.bold.hovered' | 'color.background.information.bold.pressed' | 'color.blanket' | 'color.blanket.selected' | 'color.blanket.danger' | 'color.interaction.hovered' | 'color.interaction.pressed' | 'color.skeleton' | 'color.skeleton.subtle' | 'color.link' | 'color.link.pressed' | 'elevation.shadow.raised' | 'elevation.shadow.overflow' | 'elevation.shadow.overlay' | 'elevation.surface' | 'elevation.surface.hovered' | 'elevation.surface.pressed' | 'elevation.surface.sunken' | 'elevation.surface.raised' | 'elevation.surface.raised.hovered' | 'elevation.surface.raised.pressed' | 'elevation.surface.overlay' | 'elevation.surface.overlay.hovered' | 'elevation.surface.overlay.pressed' | 'opacity.disabled' | 'opacity.loading' | 'utility.UNSAFE_util.transparent' | 'utility.UNSAFE_util.MISSING_TOKEN';
@@ -0,0 +1,25 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ *
4
+ * Token names mapped to their value in the default Atlassian themes ('light spacing').
5
+ * These default values are used by the Babel plugin to optionally provide automatic fallbacks.
6
+ *
7
+ * @codegen <<SignedSource::c5f4991ca82e83d24ff38509c8df5121>>
8
+ * @codegenCommand yarn build tokens
9
+ */
10
+ declare const defaultTokenValues: {
11
+ readonly 'spacing.container.gutter': "8px";
12
+ readonly 'spacing.scale.0': "0";
13
+ readonly 'spacing.scale.100': "8px";
14
+ readonly 'spacing.scale.150': "12px";
15
+ readonly 'spacing.scale.200': "16px";
16
+ readonly 'spacing.scale.250': "20px";
17
+ readonly 'spacing.scale.300': "24px";
18
+ readonly 'spacing.scale.400': "32px";
19
+ readonly 'spacing.scale.500': "40px";
20
+ readonly 'spacing.scale.600': "48px";
21
+ readonly 'spacing.scale.025': "2px";
22
+ readonly 'spacing.scale.050': "4px";
23
+ readonly 'spacing.scale.075': "6px";
24
+ };
25
+ export default defaultTokenValues;
@@ -0,0 +1,36 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::873e77ae05fb3ff2730f5f6110aaeae3>>
4
+ * @codegenCommand yarn build tokens
5
+ */
6
+ declare const tokens: {
7
+ readonly 'spacing.container.gutter': "--ds-container-gutter";
8
+ readonly 'spacing.scale.0': "--ds-scale-0";
9
+ readonly 'spacing.scale.100': "--ds-scale-100";
10
+ readonly 'spacing.scale.150': "--ds-scale-150";
11
+ readonly 'spacing.scale.200': "--ds-scale-200";
12
+ readonly 'spacing.scale.250': "--ds-scale-250";
13
+ readonly 'spacing.scale.300': "--ds-scale-300";
14
+ readonly 'spacing.scale.400': "--ds-scale-400";
15
+ readonly 'spacing.scale.500': "--ds-scale-500";
16
+ readonly 'spacing.scale.600': "--ds-scale-600";
17
+ readonly 'spacing.scale.025': "--ds-scale-025";
18
+ readonly 'spacing.scale.050': "--ds-scale-050";
19
+ readonly 'spacing.scale.075': "--ds-scale-075";
20
+ };
21
+ export declare type CSSTokenMap = {
22
+ 'spacing.container.gutter': 'var(--ds-container-gutter)';
23
+ 'spacing.scale.0': 'var(--ds-scale-0)';
24
+ 'spacing.scale.100': 'var(--ds-scale-100)';
25
+ 'spacing.scale.150': 'var(--ds-scale-150)';
26
+ 'spacing.scale.200': 'var(--ds-scale-200)';
27
+ 'spacing.scale.250': 'var(--ds-scale-250)';
28
+ 'spacing.scale.300': 'var(--ds-scale-300)';
29
+ 'spacing.scale.400': 'var(--ds-scale-400)';
30
+ 'spacing.scale.500': 'var(--ds-scale-500)';
31
+ 'spacing.scale.600': 'var(--ds-scale-600)';
32
+ 'spacing.scale.025': 'var(--ds-scale-025)';
33
+ 'spacing.scale.050': 'var(--ds-scale-050)';
34
+ 'spacing.scale.075': 'var(--ds-scale-075)';
35
+ };
36
+ export default tokens;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::09e6dd0e22e09011160890dfb93241da>>
4
+ * @codegenCommand yarn build tokens
5
+ */
6
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::09e6dd0e22e09011160890dfb93241da>>
4
+ * @codegenCommand yarn build tokens
5
+ */
6
+ export {};
@@ -2,10 +2,11 @@ export declare const THEMES: readonly [
2
2
  "light",
3
3
  "dark",
4
4
  "legacy-light",
5
- "legacy-dark"
5
+ "legacy-dark",
6
+ "spacing"
6
7
  ];
7
8
  export declare const THEME_DATA_ATTRIBUTE = "data-theme";
8
- export declare const DEFAULT_THEME = "light";
9
+ export declare const DEFAULT_THEME = "light spacing";
9
10
  export declare const CSS_PREFIX = "ds";
10
11
  export declare const CSS_VAR_FULL: string[];
11
12
  export declare const THEME_NAME_MAP: {
@@ -13,5 +14,6 @@ export declare const THEME_NAME_MAP: {
13
14
  'atlassian-dark': string;
14
15
  'atlassian-legacy-light': string;
15
16
  'atlassian-legacy-dark': string;
17
+ 'atlassian-spacing': string;
16
18
  };
17
19
  export declare const TOKEN_NOT_FOUND_CSS_VAR: string;
@@ -1,5 +1,5 @@
1
1
  import type { PaletteColorTokenSchema } from '../types';
2
- declare type PaletteValues = 'B100' | 'B200' | 'B300' | 'B400' | 'B500' | 'B600' | 'B700' | 'B800' | 'B900' | 'B1000' | 'R100' | 'R200' | 'R300' | 'R400' | 'R500' | 'R600' | 'R700' | 'R800' | 'R900' | 'R1000' | 'Y100' | 'Y200' | 'Y300' | 'Y400' | 'Y500' | 'Y600' | 'Y700' | 'Y800' | 'Y900' | 'Y1000' | 'G100' | 'G200' | 'G300' | 'G400' | 'G500' | 'G600' | 'G700' | 'G800' | 'G900' | 'G1000' | 'P100' | 'P200' | 'P300' | 'P400' | 'P500' | 'P600' | 'P700' | 'P800' | 'P900' | 'P1000' | 'T100' | 'T200' | 'T300' | 'T400' | 'T500' | 'T600' | 'T700' | 'T800' | 'T900' | 'T1000' | 'O100' | 'O200' | 'O300' | 'O400' | 'O500' | 'O600' | 'O700' | 'O800' | 'O900' | 'O1000' | 'M100' | 'M200' | 'M300' | 'M400' | 'M500' | 'M600' | 'M700' | 'M800' | 'M900' | 'M1000' | 'DN-100' | 'DN-100A' | 'DN0' | 'DN100' | 'DN100A' | 'DN200' | 'DN200A' | 'DN300' | 'DN300A' | 'DN400' | 'DN400A' | 'DN500' | 'DN500A' | 'DN600' | 'DN700' | 'DN800' | 'DN900' | 'DN1000' | 'DN1100' | 'N0' | 'N100' | 'N100A' | 'N200' | 'N200A' | 'N300' | 'N300A' | 'N400' | 'N400A' | 'N500' | 'N500A' | 'N600' | 'N700' | 'N800' | 'N900' | 'N1000' | 'N1100';
2
+ declare type PaletteValues = 'Blue100' | 'Blue200' | 'Blue300' | 'Blue400' | 'Blue500' | 'Blue600' | 'Blue700' | 'Blue800' | 'Blue900' | 'Blue1000' | 'Red100' | 'Red200' | 'Red300' | 'Red400' | 'Red500' | 'Red600' | 'Red700' | 'Red800' | 'Red900' | 'Red1000' | 'Yellow100' | 'Yellow200' | 'Yellow300' | 'Yellow400' | 'Yellow500' | 'Yellow600' | 'Yellow700' | 'Yellow800' | 'Yellow900' | 'Yellow1000' | 'Green100' | 'Green200' | 'Green300' | 'Green400' | 'Green500' | 'Green600' | 'Green700' | 'Green800' | 'Green900' | 'Green1000' | 'Purple100' | 'Purple200' | 'Purple300' | 'Purple400' | 'Purple500' | 'Purple600' | 'Purple700' | 'Purple800' | 'Purple900' | 'Purple1000' | 'Teal100' | 'Teal200' | 'Teal300' | 'Teal400' | 'Teal500' | 'Teal600' | 'Teal700' | 'Teal800' | 'Teal900' | 'Teal1000' | 'Orange100' | 'Orange200' | 'Orange300' | 'Orange400' | 'Orange500' | 'Orange600' | 'Orange700' | 'Orange800' | 'Orange900' | 'Orange1000' | 'Magenta100' | 'Magenta200' | 'Magenta300' | 'Magenta400' | 'Magenta500' | 'Magenta600' | 'Magenta700' | 'Magenta800' | 'Magenta900' | 'Magenta1000' | 'DarkNeutral-100' | 'DarkNeutral-100A' | 'DarkNeutral0' | 'DarkNeutral100' | 'DarkNeutral100A' | 'DarkNeutral200' | 'DarkNeutral200A' | 'DarkNeutral300' | 'DarkNeutral300A' | 'DarkNeutral400' | 'DarkNeutral400A' | 'DarkNeutral500' | 'DarkNeutral500A' | 'DarkNeutral600' | 'DarkNeutral700' | 'DarkNeutral800' | 'DarkNeutral900' | 'DarkNeutral1000' | 'DarkNeutral1100' | 'Neutral0' | 'Neutral100' | 'Neutral100A' | 'Neutral200' | 'Neutral200A' | 'Neutral300' | 'Neutral300A' | 'Neutral400' | 'Neutral400A' | 'Neutral500' | 'Neutral500A' | 'Neutral600' | 'Neutral700' | 'Neutral800' | 'Neutral900' | 'Neutral1000' | 'Neutral1100';
3
3
  export declare type BaseToken = keyof PaletteColorTokenSchema<PaletteValues>['color']['palette'];
4
4
  declare const palette: PaletteColorTokenSchema<PaletteValues>;
5
5
  export default palette;
@@ -0,0 +1,5 @@
1
+ import type { SpacingScaleTokenSchema } from '../types';
2
+ export declare type ScaleValues = 'Space0' | 'Space025' | 'Space050' | 'Space075' | 'Space100' | 'Space150' | 'Space200' | 'Space250' | 'Space300' | 'Space400' | 'Space500' | 'Space600';
3
+ export declare type BaseToken = keyof SpacingScaleTokenSchema<ScaleValues>['spacing']['scale'];
4
+ declare const scale: SpacingScaleTokenSchema<ScaleValues>;
5
+ export default scale;
@@ -1,5 +1,5 @@
1
1
  import type { UtilTokenSchema, ValueSchema } from '../../../types';
2
2
  declare const _default: {
3
- utility: ValueSchema<UtilTokenSchema<"R100" | "R200" | "R300" | "R400" | "R500" | "Y100" | "Y200" | "Y300" | "Y400" | "Y500" | "G100" | "G200" | "G300" | "G400" | "G500" | "B100" | "B200" | "B300" | "B400" | "B500" | "P100" | "P200" | "P300" | "P400" | "P500" | "T100" | "T200" | "T300" | "T400" | "T500" | "N0" | "N100" | "N200" | "N300" | "N400" | "N500" | "N600" | "N700" | "N800" | "N900" | "N100A" | "N200A" | "N300A" | "N400A" | "N500A" | "DN900" | "DN800" | "DN700" | "DN600" | "DN500" | "DN400" | "DN300" | "DN200" | "DN100" | "DN0" | "DN500A" | "DN400A" | "DN300A" | "DN200A" | "DN100A" | "B600" | "B700" | "B800" | "B900" | "B1000" | "R600" | "R700" | "R800" | "R900" | "R1000" | "Y600" | "Y700" | "Y800" | "Y900" | "Y1000" | "G600" | "G700" | "G800" | "G900" | "G1000" | "P600" | "P700" | "P800" | "P900" | "P1000" | "T600" | "T700" | "T800" | "T900" | "T1000" | "O100" | "O200" | "O300" | "O400" | "O500" | "O600" | "O700" | "O800" | "O900" | "O1000" | "M100" | "M200" | "M300" | "M400" | "M500" | "M600" | "M700" | "M800" | "M900" | "M1000" | "DN-100" | "DN-100A" | "DN1000" | "DN1100" | "N1000" | "N1100">>;
3
+ utility: ValueSchema<UtilTokenSchema<"Blue100" | "Blue200" | "Blue300" | "Blue400" | "Blue500" | "Blue600" | "Blue700" | "Blue800" | "Blue900" | "Blue1000" | "Red100" | "Red200" | "Red300" | "Red400" | "Red500" | "Red600" | "Red700" | "Red800" | "Red900" | "Red1000" | "Yellow100" | "Yellow200" | "Yellow300" | "Yellow400" | "Yellow500" | "Yellow600" | "Yellow700" | "Yellow800" | "Yellow900" | "Yellow1000" | "Green100" | "Green200" | "Green300" | "Green400" | "Green500" | "Green600" | "Green700" | "Green800" | "Green900" | "Green1000" | "Purple100" | "Purple200" | "Purple300" | "Purple400" | "Purple500" | "Purple600" | "Purple700" | "Purple800" | "Purple900" | "Purple1000" | "Teal100" | "Teal200" | "Teal300" | "Teal400" | "Teal500" | "Teal600" | "Teal700" | "Teal800" | "Teal900" | "Teal1000" | "Orange100" | "Orange200" | "Orange300" | "Orange400" | "Orange500" | "Orange600" | "Orange700" | "Orange800" | "Orange900" | "Orange1000" | "Magenta100" | "Magenta200" | "Magenta300" | "Magenta400" | "Magenta500" | "Magenta600" | "Magenta700" | "Magenta800" | "Magenta900" | "Magenta1000" | "DarkNeutral-100" | "DarkNeutral-100A" | "DarkNeutral0" | "DarkNeutral100" | "DarkNeutral100A" | "DarkNeutral200" | "DarkNeutral200A" | "DarkNeutral300" | "DarkNeutral300A" | "DarkNeutral400" | "DarkNeutral400A" | "DarkNeutral500" | "DarkNeutral500A" | "DarkNeutral600" | "DarkNeutral700" | "DarkNeutral800" | "DarkNeutral900" | "DarkNeutral1000" | "DarkNeutral1100" | "Neutral0" | "Neutral100" | "Neutral100A" | "Neutral200" | "Neutral200A" | "Neutral300" | "Neutral300A" | "Neutral400" | "Neutral400A" | "Neutral500" | "Neutral500A" | "Neutral600" | "Neutral700" | "Neutral800" | "Neutral900" | "Neutral1000" | "Neutral1100">>;
4
4
  };
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import type { UtilTokenSchema, ValueSchema } from '../../../types';
2
2
  declare const _default: {
3
- utility: ValueSchema<UtilTokenSchema<"R100" | "R200" | "R300" | "R400" | "R500" | "Y100" | "Y200" | "Y300" | "Y400" | "Y500" | "G100" | "G200" | "G300" | "G400" | "G500" | "B100" | "B200" | "B300" | "B400" | "B500" | "P100" | "P200" | "P300" | "P400" | "P500" | "T100" | "T200" | "T300" | "T400" | "T500" | "N0" | "N100" | "N200" | "N300" | "N400" | "N500" | "N600" | "N700" | "N800" | "N900" | "N100A" | "N200A" | "N300A" | "N400A" | "N500A" | "DN900" | "DN800" | "DN700" | "DN600" | "DN500" | "DN400" | "DN300" | "DN200" | "DN100" | "DN0" | "DN500A" | "DN400A" | "DN300A" | "DN200A" | "DN100A" | "B600" | "B700" | "B800" | "B900" | "B1000" | "R600" | "R700" | "R800" | "R900" | "R1000" | "Y600" | "Y700" | "Y800" | "Y900" | "Y1000" | "G600" | "G700" | "G800" | "G900" | "G1000" | "P600" | "P700" | "P800" | "P900" | "P1000" | "T600" | "T700" | "T800" | "T900" | "T1000" | "O100" | "O200" | "O300" | "O400" | "O500" | "O600" | "O700" | "O800" | "O900" | "O1000" | "M100" | "M200" | "M300" | "M400" | "M500" | "M600" | "M700" | "M800" | "M900" | "M1000" | "DN-100" | "DN-100A" | "DN1000" | "DN1100" | "N1000" | "N1100">>;
3
+ utility: ValueSchema<UtilTokenSchema<"Blue100" | "Blue200" | "Blue300" | "Blue400" | "Blue500" | "Blue600" | "Blue700" | "Blue800" | "Blue900" | "Blue1000" | "Red100" | "Red200" | "Red300" | "Red400" | "Red500" | "Red600" | "Red700" | "Red800" | "Red900" | "Red1000" | "Yellow100" | "Yellow200" | "Yellow300" | "Yellow400" | "Yellow500" | "Yellow600" | "Yellow700" | "Yellow800" | "Yellow900" | "Yellow1000" | "Green100" | "Green200" | "Green300" | "Green400" | "Green500" | "Green600" | "Green700" | "Green800" | "Green900" | "Green1000" | "Purple100" | "Purple200" | "Purple300" | "Purple400" | "Purple500" | "Purple600" | "Purple700" | "Purple800" | "Purple900" | "Purple1000" | "Teal100" | "Teal200" | "Teal300" | "Teal400" | "Teal500" | "Teal600" | "Teal700" | "Teal800" | "Teal900" | "Teal1000" | "Orange100" | "Orange200" | "Orange300" | "Orange400" | "Orange500" | "Orange600" | "Orange700" | "Orange800" | "Orange900" | "Orange1000" | "Magenta100" | "Magenta200" | "Magenta300" | "Magenta400" | "Magenta500" | "Magenta600" | "Magenta700" | "Magenta800" | "Magenta900" | "Magenta1000" | "DarkNeutral-100" | "DarkNeutral-100A" | "DarkNeutral0" | "DarkNeutral100" | "DarkNeutral100A" | "DarkNeutral200" | "DarkNeutral200A" | "DarkNeutral300" | "DarkNeutral300A" | "DarkNeutral400" | "DarkNeutral400A" | "DarkNeutral500" | "DarkNeutral500A" | "DarkNeutral600" | "DarkNeutral700" | "DarkNeutral800" | "DarkNeutral900" | "DarkNeutral1000" | "DarkNeutral1100" | "Neutral0" | "Neutral100" | "Neutral100A" | "Neutral200" | "Neutral200A" | "Neutral300" | "Neutral300A" | "Neutral400" | "Neutral400A" | "Neutral500" | "Neutral500A" | "Neutral600" | "Neutral700" | "Neutral800" | "Neutral900" | "Neutral1000" | "Neutral1100">>;
4
4
  };
5
5
  export default _default;
@@ -0,0 +1,4 @@
1
+ import { BaseToken } from '../../palettes/spacing-scale';
2
+ import type { SpacingTokenSchema, ValueSchema } from '../../types';
3
+ declare const spacing: ValueSchema<SpacingTokenSchema<BaseToken>>;
4
+ export default spacing;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/spacing-scale';
2
+ import type { AttributeSchema, SpacingTokenSchema } from '../../../types';
3
+ declare const spacing: AttributeSchema<SpacingTokenSchema<BaseToken>>;
4
+ export default spacing;
@@ -1,5 +1,5 @@
1
1
  import type { AttributeSchema, UtilTokenSchema } from '../../../types';
2
2
  declare const _default: {
3
- utility: AttributeSchema<UtilTokenSchema<"R100" | "R200" | "R300" | "R400" | "R500" | "Y100" | "Y200" | "Y300" | "Y400" | "Y500" | "G100" | "G200" | "G300" | "G400" | "G500" | "B100" | "B200" | "B300" | "B400" | "B500" | "P100" | "P200" | "P300" | "P400" | "P500" | "T100" | "T200" | "T300" | "T400" | "T500" | "N0" | "N100" | "N200" | "N300" | "N400" | "N500" | "N600" | "N700" | "N800" | "N900" | "N100A" | "N200A" | "N300A" | "N400A" | "N500A" | "DN900" | "DN800" | "DN700" | "DN600" | "DN500" | "DN400" | "DN300" | "DN200" | "DN100" | "DN0" | "DN500A" | "DN400A" | "DN300A" | "DN200A" | "DN100A" | "B600" | "B700" | "B800" | "B900" | "B1000" | "R600" | "R700" | "R800" | "R900" | "R1000" | "Y600" | "Y700" | "Y800" | "Y900" | "Y1000" | "G600" | "G700" | "G800" | "G900" | "G1000" | "P600" | "P700" | "P800" | "P900" | "P1000" | "T600" | "T700" | "T800" | "T900" | "T1000" | "O100" | "O200" | "O300" | "O400" | "O500" | "O600" | "O700" | "O800" | "O900" | "O1000" | "M100" | "M200" | "M300" | "M400" | "M500" | "M600" | "M700" | "M800" | "M900" | "M1000" | "DN-100" | "DN-100A" | "DN1000" | "DN1100" | "N1000" | "N1100">>;
3
+ utility: AttributeSchema<UtilTokenSchema<"Blue100" | "Blue200" | "Blue300" | "Blue400" | "Blue500" | "Blue600" | "Blue700" | "Blue800" | "Blue900" | "Blue1000" | "Red100" | "Red200" | "Red300" | "Red400" | "Red500" | "Red600" | "Red700" | "Red800" | "Red900" | "Red1000" | "Yellow100" | "Yellow200" | "Yellow300" | "Yellow400" | "Yellow500" | "Yellow600" | "Yellow700" | "Yellow800" | "Yellow900" | "Yellow1000" | "Green100" | "Green200" | "Green300" | "Green400" | "Green500" | "Green600" | "Green700" | "Green800" | "Green900" | "Green1000" | "Purple100" | "Purple200" | "Purple300" | "Purple400" | "Purple500" | "Purple600" | "Purple700" | "Purple800" | "Purple900" | "Purple1000" | "Teal100" | "Teal200" | "Teal300" | "Teal400" | "Teal500" | "Teal600" | "Teal700" | "Teal800" | "Teal900" | "Teal1000" | "Orange100" | "Orange200" | "Orange300" | "Orange400" | "Orange500" | "Orange600" | "Orange700" | "Orange800" | "Orange900" | "Orange1000" | "Magenta100" | "Magenta200" | "Magenta300" | "Magenta400" | "Magenta500" | "Magenta600" | "Magenta700" | "Magenta800" | "Magenta900" | "Magenta1000" | "DarkNeutral-100" | "DarkNeutral-100A" | "DarkNeutral0" | "DarkNeutral100" | "DarkNeutral100A" | "DarkNeutral200" | "DarkNeutral200A" | "DarkNeutral300" | "DarkNeutral300A" | "DarkNeutral400" | "DarkNeutral400A" | "DarkNeutral500" | "DarkNeutral500A" | "DarkNeutral600" | "DarkNeutral700" | "DarkNeutral800" | "DarkNeutral900" | "DarkNeutral1000" | "DarkNeutral1100" | "Neutral0" | "Neutral100" | "Neutral100A" | "Neutral200" | "Neutral200A" | "Neutral300" | "Neutral300A" | "Neutral400" | "Neutral400A" | "Neutral500" | "Neutral500A" | "Neutral600" | "Neutral700" | "Neutral800" | "Neutral900" | "Neutral1000" | "Neutral1100">>;
4
4
  };
5
5
  export default _default;
@@ -1,11 +1,13 @@
1
1
  import { InternalTokenIds } from './artifacts/types-internal';
2
2
  import { THEME_NAME_MAP, THEMES } from './constants';
3
- export declare type Groups = 'raw' | 'paint' | 'shadow' | 'opacity' | 'palette';
3
+ export declare type Groups = 'raw' | 'paint' | 'shadow' | 'palette' | 'opacity' | 'spacing' | 'scale';
4
4
  export declare type ActiveTokenState = 'active';
5
5
  export declare type DeprecatedTokenState = 'deprecated';
6
6
  export declare type DeletedTokenState = 'deleted';
7
- export declare type TokenState = ActiveTokenState | DeprecatedTokenState | DeletedTokenState;
7
+ export declare type ExperimentalTokenState = 'experimental';
8
+ export declare type TokenState = ActiveTokenState | DeprecatedTokenState | DeletedTokenState | ExperimentalTokenState;
8
9
  export declare type Replacement = InternalTokenIds | InternalTokenIds[];
10
+ export declare type ExperimentalReplacement = InternalTokenIds | InternalTokenIds[] | string;
9
11
  export declare type PaletteCategory = 'blue' | 'purple' | 'red' | 'magenta' | 'orange' | 'yellow' | 'green' | 'teal' | 'light mode neutral' | 'dark mode neutral';
10
12
  export declare type ValueCategory = 'opacity';
11
13
  export declare type Themes = typeof THEMES[number];
@@ -16,12 +18,12 @@ export interface Token<TValue, Group extends Groups> {
16
18
  group: Group;
17
19
  description?: string;
18
20
  state?: TokenState;
19
- replacement?: Replacement;
21
+ replacement?: Replacement | ExperimentalReplacement;
20
22
  };
21
23
  }
22
24
  /**
23
25
  * Base tokens define the raw values consumed by Design Tokens. They are a context-agnostic
24
- * name:value pairing (for example, the base token N0 represents the value #FFFFFF ).
26
+ * name:value pairing (for example, the base token Neutral0 represents the value #FFFFFF ).
25
27
  */
26
28
  export interface BaseToken<TValue, Group extends Groups> extends Token<TValue, Group> {
27
29
  attributes: {
@@ -30,7 +32,7 @@ export interface BaseToken<TValue, Group extends Groups> extends Token<TValue, G
30
32
  }
31
33
  /**
32
34
  * Design tokens represent single sources of truth to name and store semantic design decisions.
33
- * They map a semantic name (color.background.default) to a base token (N0).
35
+ * They map a semantic name (color.background.default) to a base token (Neutral0).
34
36
  */
35
37
  export interface DesignToken<TValue, Group extends Groups> extends Token<TValue, Group> {
36
38
  attributes: {
@@ -53,6 +55,12 @@ export interface DesignToken<TValue, Group extends Groups> extends Token<TValue,
53
55
  deprecated: string;
54
56
  deleted: string;
55
57
  replacement?: Replacement;
58
+ } | {
59
+ state: ExperimentalTokenState;
60
+ group: Group;
61
+ description: string;
62
+ introduced: string;
63
+ replacement?: ExperimentalReplacement;
56
64
  };
57
65
  }
58
66
  declare type OmitDistributive<T, K extends PropertyKey> = T extends any ? T extends object ? Id<DeepOmit<T, K>> : T : never;
@@ -89,7 +97,13 @@ export declare type ShadowToken<BaseToken> = DesignToken<Array<{
89
97
  inset?: boolean;
90
98
  }>, 'shadow'>;
91
99
  export declare type OpacityToken = DesignToken<string, 'opacity'>;
100
+ export declare type SpacingToken<BaseToken> = DesignToken<BaseToken, 'spacing'>;
92
101
  export declare type RawToken = DesignToken<string, 'raw'>;
102
+ export interface ScaleToken extends BaseToken<string, 'scale'> {
103
+ attributes: {
104
+ group: 'scale';
105
+ };
106
+ }
93
107
  export interface PaletteColorTokenSchema<PaletteValues extends string> {
94
108
  value: {
95
109
  opacity: {
@@ -101,6 +115,11 @@ export interface PaletteColorTokenSchema<PaletteValues extends string> {
101
115
  palette: Record<PaletteValues, PaletteToken>;
102
116
  };
103
117
  }
118
+ export interface SpacingScaleTokenSchema<ScaleValues extends string> {
119
+ spacing: {
120
+ scale: Record<ScaleValues, ScaleToken>;
121
+ };
122
+ }
104
123
  export interface BackgroundColorTokenSchema<BaseToken> {
105
124
  color: {
106
125
  blanket: {
@@ -653,4 +672,25 @@ export interface DeprecatedTokenSchema<BaseToken> {
653
672
  export declare type ElevationTokenSchema<BaseToken> = SurfaceTokenSchema<BaseToken> & ShadowTokenSchema<BaseToken>;
654
673
  export declare type ColorTokenSchema<BaseToken> = BackgroundColorTokenSchema<BaseToken> & BorderColorTokenSchema<BaseToken> & IconColorTokenSchema<BaseToken> & TextColorTokenSchema<BaseToken> & AccentColorTokenSchema<BaseToken> & UtilTokenSchema<BaseToken>;
655
674
  export declare type TokenSchema<BaseToken> = ColorTokenSchema<BaseToken> & ElevationTokenSchema<BaseToken>;
675
+ export interface SpacingTokenSchema<BaseToken> {
676
+ spacing: {
677
+ container: {
678
+ gutter: SpacingToken<BaseToken>;
679
+ };
680
+ scale: {
681
+ '0': SpacingToken<BaseToken>;
682
+ '025': SpacingToken<BaseToken>;
683
+ '050': SpacingToken<BaseToken>;
684
+ '075': SpacingToken<BaseToken>;
685
+ '100': SpacingToken<BaseToken>;
686
+ '150': SpacingToken<BaseToken>;
687
+ '200': SpacingToken<BaseToken>;
688
+ '250': SpacingToken<BaseToken>;
689
+ '300': SpacingToken<BaseToken>;
690
+ '400': SpacingToken<BaseToken>;
691
+ '500': SpacingToken<BaseToken>;
692
+ '600': SpacingToken<BaseToken>;
693
+ };
694
+ };
695
+ }
656
696
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "0.10.25",
3
+ "version": "0.10.27",
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",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "atlassian": {
11
11
  "team": "Design System Team",
12
- "releaseModel": "scheduled",
12
+ "releaseModel": "continuous",
13
13
  "website": {
14
14
  "name": "Design tokens",
15
15
  "category": "Libraries",
@@ -69,6 +69,7 @@
69
69
  "@atlaskit/code": "^14.4.0",
70
70
  "@atlaskit/docs": "^9.0.10",
71
71
  "@atlaskit/dropdown-menu": "^11.5.0",
72
+ "@atlaskit/ds-explorations": "^0.1.5",
72
73
  "@atlaskit/dynamic-table": "^14.8.0",
73
74
  "@atlaskit/empty-state": "^7.4.0",
74
75
  "@atlaskit/focus-ring": "^1.1.0",
package/report.api.md CHANGED
@@ -1,13 +1,27 @@
1
- ## API Report File for "@atlaskit/tokens".
1
+ <!-- API Report Version: 2.2 -->
2
2
 
3
- > Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
3
+ ## API Report File for "@atlaskit/tokens"
4
4
 
5
- [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
5
+ > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
6
+ > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
6
7
 
7
- ````ts
8
- export declare type CSSToken = CSSTokenMap[keyof CSSTokenMap];
8
+ ### Table of contents
9
9
 
10
- declare type CSSTokenMap = {
10
+ - [Main Entry Types](#main-entry-types)
11
+
12
+ ### Main Entry Types
13
+
14
+ <!--SECTION START: Main Entry Types-->
15
+
16
+ ```ts
17
+ // @public (undocumented)
18
+ export type CSSToken = CSSTokenMap[keyof CSSTokenMap];
19
+
20
+ // @public (undocumented)
21
+ type CSSTokenMap = CSSTokenMap_2 & CSSTokenMap_3;
22
+
23
+ // @public (undocumented)
24
+ type CSSTokenMap_2 = {
11
25
  'color.text.accent.blue': 'var(--ds-text-accent-blue)';
12
26
  'color.text.accent.blue.bolder': 'var(--ds-text-accent-blue-bolder)';
13
27
  'color.text.accent.red': 'var(--ds-text-accent-red)';
@@ -286,53 +300,88 @@ declare type CSSTokenMap = {
286
300
  'elevation.shadow.overflow': 'var(--ds-shadow-overflow)';
287
301
  'elevation.shadow.overlay': 'var(--ds-shadow-overlay)';
288
302
  'elevation.surface': 'var(--ds-surface)';
303
+ 'elevation.surface.hovered': 'var(--ds-surface-hovered)';
304
+ 'elevation.surface.pressed': 'var(--ds-surface-pressed)';
289
305
  'elevation.surface.sunken': 'var(--ds-surface-sunken)';
290
306
  'elevation.surface.raised': 'var(--ds-surface-raised)';
307
+ 'elevation.surface.raised.hovered': 'var(--ds-surface-raised-hovered)';
308
+ 'elevation.surface.raised.pressed': 'var(--ds-surface-raised-pressed)';
291
309
  'elevation.surface.overlay': 'var(--ds-surface-overlay)';
310
+ 'elevation.surface.overlay.hovered': 'var(--ds-surface-overlay-hovered)';
311
+ 'elevation.surface.overlay.pressed': 'var(--ds-surface-overlay-pressed)';
312
+ 'opacity.disabled': 'var(--ds-opacity-disabled)';
313
+ 'opacity.loading': 'var(--ds-opacity-loading)';
292
314
  'utility.UNSAFE_util.transparent': 'var(--ds-UNSAFE_util-transparent)';
293
315
  'utility.UNSAFE_util.MISSING_TOKEN': 'var(--ds-UNSAFE_util-MISSING_TOKEN)';
294
316
  };
295
317
 
296
- export declare const setGlobalTheme: (theme: Themes) => void;
318
+ // @public (undocumented)
319
+ type CSSTokenMap_3 = {
320
+ 'spacing.container.gutter': 'var(--ds-container-gutter)';
321
+ 'spacing.scale.0': 'var(--ds-scale-0)';
322
+ 'spacing.scale.100': 'var(--ds-scale-100)';
323
+ 'spacing.scale.150': 'var(--ds-scale-150)';
324
+ 'spacing.scale.200': 'var(--ds-scale-200)';
325
+ 'spacing.scale.250': 'var(--ds-scale-250)';
326
+ 'spacing.scale.300': 'var(--ds-scale-300)';
327
+ 'spacing.scale.400': 'var(--ds-scale-400)';
328
+ 'spacing.scale.500': 'var(--ds-scale-500)';
329
+ 'spacing.scale.600': 'var(--ds-scale-600)';
330
+ 'spacing.scale.025': 'var(--ds-scale-025)';
331
+ 'spacing.scale.050': 'var(--ds-scale-050)';
332
+ 'spacing.scale.075': 'var(--ds-scale-075)';
333
+ };
334
+
335
+ // @public (undocumented)
336
+ export const setGlobalTheme: (theme: Themes) => void;
297
337
 
298
- /**
299
- * A MutationObserver which watches the `<html>` element for changes to the theme.
300
- *
301
- * In React, use the {@link useThemeObserver `useThemeObserver`} hook instead.
302
- *
303
- * @param {function} callback - A callback function which fires when the theme changes.
304
- *
305
- * @example
306
- * ```
307
- * const observer = new ThemeMutationObserver((theme) => {});
308
- * observer.observe();
309
- * ```
310
- */
311
- export declare class ThemeMutationObserver {
312
- private callback;
313
- observer: MutationObserver | null;
338
+ // @public
339
+ export class ThemeMutationObserver {
314
340
  constructor(callback: (theme: Themes | null) => unknown);
315
- observe(): void;
341
+ // (undocumented)
316
342
  disconnect(): void;
343
+ // (undocumented)
344
+ observe(): void;
345
+ // (undocumented)
346
+ observer: MutationObserver | null;
317
347
  }
318
348
 
319
- declare const THEMES: readonly ['light', 'dark'];
349
+ // @public (undocumented)
350
+ const THEMES: readonly [
351
+ 'light',
352
+ 'dark',
353
+ 'legacy-light',
354
+ 'legacy-dark',
355
+ 'spacing',
356
+ ];
320
357
 
321
- export declare type Themes = typeof THEMES[number];
358
+ // @public (undocumented)
359
+ export type Themes = typeof THEMES[number];
322
360
 
323
- export declare function token<T extends keyof Tokens>(
361
+ // @public (undocumented)
362
+ export function token<T extends keyof Tokens>(
324
363
  path: T,
325
364
  fallback?: string,
326
365
  ): CSSTokenMap[T];
327
366
 
328
- declare type Tokens = typeof tokens;
367
+ // @public (undocumented)
368
+ type Tokens = typeof tokens;
329
369
 
330
- /**
331
- * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
332
- * @codegen <<SignedSource::3acc6507214a2d925fd75bce0549f0ab>>
333
- * @codegenCommand yarn build tokens
334
- */
335
- declare const tokens: {
370
+ // @public (undocumented)
371
+ const tokens: {
372
+ readonly 'spacing.container.gutter': '--ds-container-gutter';
373
+ readonly 'spacing.scale.0': '--ds-scale-0';
374
+ readonly 'spacing.scale.100': '--ds-scale-100';
375
+ readonly 'spacing.scale.150': '--ds-scale-150';
376
+ readonly 'spacing.scale.200': '--ds-scale-200';
377
+ readonly 'spacing.scale.250': '--ds-scale-250';
378
+ readonly 'spacing.scale.300': '--ds-scale-300';
379
+ readonly 'spacing.scale.400': '--ds-scale-400';
380
+ readonly 'spacing.scale.500': '--ds-scale-500';
381
+ readonly 'spacing.scale.600': '--ds-scale-600';
382
+ readonly 'spacing.scale.025': '--ds-scale-025';
383
+ readonly 'spacing.scale.050': '--ds-scale-050';
384
+ readonly 'spacing.scale.075': '--ds-scale-075';
336
385
  readonly 'color.text.accent.blue': '--ds-text-accent-blue';
337
386
  readonly 'color.text.accent.blue.bolder': '--ds-text-accent-blue-bolder';
338
387
  readonly 'color.text.accent.red': '--ds-text-accent-red';
@@ -611,27 +660,25 @@ declare const tokens: {
611
660
  readonly 'elevation.shadow.overflow': '--ds-shadow-overflow';
612
661
  readonly 'elevation.shadow.overlay': '--ds-shadow-overlay';
613
662
  readonly 'elevation.surface': '--ds-surface';
663
+ readonly 'elevation.surface.hovered': '--ds-surface-hovered';
664
+ readonly 'elevation.surface.pressed': '--ds-surface-pressed';
614
665
  readonly 'elevation.surface.sunken': '--ds-surface-sunken';
615
666
  readonly 'elevation.surface.raised': '--ds-surface-raised';
667
+ readonly 'elevation.surface.raised.hovered': '--ds-surface-raised-hovered';
668
+ readonly 'elevation.surface.raised.pressed': '--ds-surface-raised-pressed';
616
669
  readonly 'elevation.surface.overlay': '--ds-surface-overlay';
670
+ readonly 'elevation.surface.overlay.hovered': '--ds-surface-overlay-hovered';
671
+ readonly 'elevation.surface.overlay.pressed': '--ds-surface-overlay-pressed';
672
+ readonly 'opacity.disabled': '--ds-opacity-disabled';
673
+ readonly 'opacity.loading': '--ds-opacity-loading';
617
674
  readonly 'utility.UNSAFE_util.transparent': '--ds-UNSAFE_util-transparent';
618
675
  readonly 'utility.UNSAFE_util.MISSING_TOKEN': '--ds-UNSAFE_util-MISSING_TOKEN';
619
676
  };
620
677
 
621
- /**
622
- * A React hook which returns the current theme set on `<html>`, or `null` if not set.
623
- *
624
- * @example
625
- * ```
626
- * const theme = useThemeObserver(); // Returns 'light' or 'dark'
627
- *
628
- * // Performing side effects when it changes
629
- * useEffect(() => {
630
- * console.log(`The theme has changed to ${theme}`);
631
- * }, [theme]);
632
- * ```
633
- */
634
- export declare const useThemeObserver: () => Themes | null;
678
+ // @public
679
+ export const useThemeObserver: () => Themes | null;
680
+
681
+ // (No @packageDocumentation comment for this package)
682
+ ```
635
683
 
636
- export {};
637
- ````
684
+ <!--SECTION END: Main Entry Types-->