@atlaskit/tokens 0.10.35 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/css/atlassian-spacing.css +2 -2
  3. package/css/atlassian-typography.css +27 -0
  4. package/dist/cjs/artifacts/palettes-raw/font-size-scale.js +135 -0
  5. package/dist/cjs/artifacts/palettes-raw/font-weight-scale.js +75 -0
  6. package/dist/cjs/artifacts/palettes-raw/line-height-scale.js +105 -0
  7. package/dist/{types-ts4.0/artifacts/rename-mapping/atlassian-legacy-dark.d.ts → cjs/artifacts/rename-mapping/atlassian-typography.js} +11 -10
  8. package/dist/cjs/artifacts/rename-mapping.js +3 -1
  9. package/dist/cjs/artifacts/token-default-values.js +3 -1
  10. package/dist/cjs/artifacts/token-names.js +3 -1
  11. package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +435 -0
  12. package/dist/cjs/artifacts/typescript/atlassian-light-token-default-values.js +2 -2
  13. package/dist/cjs/artifacts/typescript/atlassian-spacing-token-default-values.js +2 -2
  14. package/dist/cjs/artifacts/typescript/atlassian-typography-token-default-values.js +40 -0
  15. package/dist/cjs/artifacts/typescript/atlassian-typography-token-names.js +36 -0
  16. package/dist/cjs/artifacts/typescript/atlassian-typography-types-internal.js +5 -0
  17. package/dist/cjs/artifacts/typescript/atlassian-typography-types.js +5 -0
  18. package/dist/cjs/constants.js +2 -2
  19. package/dist/cjs/entry-points/init.js +9 -0
  20. package/dist/cjs/get-token.js +1 -1
  21. package/dist/cjs/palettes/typography/font-family.js +24 -0
  22. package/dist/cjs/palettes/typography/font-size-scale.js +60 -0
  23. package/dist/cjs/palettes/typography/font-weight-scale.js +36 -0
  24. package/dist/cjs/palettes/typography/index.js +28 -0
  25. package/dist/cjs/palettes/typography/line-height-scale.js +48 -0
  26. package/dist/cjs/theme-config.js +8 -0
  27. package/dist/cjs/tokens/atlassian-typography/font-family.js +20 -0
  28. package/dist/cjs/tokens/atlassian-typography/font-size.js +38 -0
  29. package/dist/cjs/tokens/atlassian-typography/font-weight.js +26 -0
  30. package/dist/cjs/tokens/atlassian-typography/line-height.js +32 -0
  31. package/dist/cjs/tokens/default/elevation/surface.js +2 -2
  32. package/dist/cjs/tokens/default/typography/font-family.js +30 -0
  33. package/dist/cjs/tokens/default/typography/font-size.js +78 -0
  34. package/dist/cjs/tokens/default/typography/font-weight.js +46 -0
  35. package/dist/cjs/tokens/default/typography/line-height.js +62 -0
  36. package/dist/cjs/version.json +1 -1
  37. package/dist/es2019/artifacts/palettes-raw/font-size-scale.js +127 -0
  38. package/dist/es2019/artifacts/palettes-raw/font-weight-scale.js +67 -0
  39. package/dist/es2019/artifacts/palettes-raw/line-height-scale.js +97 -0
  40. package/dist/{types-ts4.0/artifacts/rename-mapping/atlassian-light.d.ts → es2019/artifacts/rename-mapping/atlassian-typography.js} +3 -10
  41. package/dist/es2019/artifacts/rename-mapping.js +2 -1
  42. package/dist/es2019/artifacts/token-default-values.js +3 -1
  43. package/dist/es2019/artifacts/token-names.js +3 -1
  44. package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +427 -0
  45. package/dist/es2019/artifacts/typescript/atlassian-light-token-default-values.js +2 -2
  46. package/dist/es2019/artifacts/typescript/atlassian-spacing-token-default-values.js +2 -2
  47. package/dist/es2019/artifacts/typescript/atlassian-typography-token-default-values.js +32 -0
  48. package/dist/es2019/artifacts/typescript/atlassian-typography-token-names.js +28 -0
  49. package/dist/es2019/artifacts/typescript/atlassian-typography-types-internal.js +1 -0
  50. package/dist/es2019/artifacts/typescript/atlassian-typography-types.js +1 -0
  51. package/dist/es2019/constants.js +2 -2
  52. package/dist/es2019/entry-points/init.js +4 -0
  53. package/dist/es2019/get-token.js +1 -1
  54. package/dist/es2019/palettes/typography/font-family.js +17 -0
  55. package/dist/es2019/palettes/typography/font-size-scale.js +53 -0
  56. package/dist/es2019/palettes/typography/font-weight-scale.js +29 -0
  57. package/dist/es2019/palettes/typography/index.js +12 -0
  58. package/dist/es2019/palettes/typography/line-height-scale.js +41 -0
  59. package/dist/es2019/theme-config.js +8 -0
  60. package/dist/es2019/tokens/atlassian-typography/font-family.js +13 -0
  61. package/dist/es2019/tokens/atlassian-typography/font-size.js +31 -0
  62. package/dist/es2019/tokens/atlassian-typography/font-weight.js +19 -0
  63. package/dist/es2019/tokens/atlassian-typography/line-height.js +25 -0
  64. package/dist/es2019/tokens/default/elevation/surface.js +2 -2
  65. package/dist/es2019/tokens/default/typography/font-family.js +23 -0
  66. package/dist/es2019/tokens/default/typography/font-size.js +71 -0
  67. package/dist/es2019/tokens/default/typography/font-weight.js +39 -0
  68. package/dist/es2019/tokens/default/typography/line-height.js +55 -0
  69. package/dist/es2019/version.json +1 -1
  70. package/dist/esm/artifacts/palettes-raw/font-size-scale.js +127 -0
  71. package/dist/esm/artifacts/palettes-raw/font-weight-scale.js +67 -0
  72. package/dist/esm/artifacts/palettes-raw/line-height-scale.js +97 -0
  73. package/dist/{types-ts4.0/artifacts/rename-mapping/atlassian-dark.d.ts → esm/artifacts/rename-mapping/atlassian-typography.js} +3 -10
  74. package/dist/esm/artifacts/rename-mapping.js +2 -1
  75. package/dist/esm/artifacts/token-default-values.js +2 -1
  76. package/dist/esm/artifacts/token-names.js +2 -1
  77. package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +427 -0
  78. package/dist/esm/artifacts/typescript/atlassian-light-token-default-values.js +2 -2
  79. package/dist/esm/artifacts/typescript/atlassian-spacing-token-default-values.js +2 -2
  80. package/dist/esm/artifacts/typescript/atlassian-typography-token-default-values.js +32 -0
  81. package/dist/esm/artifacts/typescript/atlassian-typography-token-names.js +28 -0
  82. package/dist/esm/artifacts/typescript/atlassian-typography-types-internal.js +1 -0
  83. package/dist/esm/artifacts/typescript/atlassian-typography-types.js +1 -0
  84. package/dist/esm/constants.js +2 -2
  85. package/dist/esm/entry-points/init.js +4 -0
  86. package/dist/esm/get-token.js +1 -1
  87. package/dist/esm/palettes/typography/font-family.js +17 -0
  88. package/dist/esm/palettes/typography/font-size-scale.js +53 -0
  89. package/dist/esm/palettes/typography/font-weight-scale.js +29 -0
  90. package/dist/esm/palettes/typography/index.js +14 -0
  91. package/dist/esm/palettes/typography/line-height-scale.js +41 -0
  92. package/dist/esm/theme-config.js +8 -0
  93. package/dist/esm/tokens/atlassian-typography/font-family.js +13 -0
  94. package/dist/esm/tokens/atlassian-typography/font-size.js +31 -0
  95. package/dist/esm/tokens/atlassian-typography/font-weight.js +19 -0
  96. package/dist/esm/tokens/atlassian-typography/line-height.js +25 -0
  97. package/dist/esm/tokens/default/elevation/surface.js +2 -2
  98. package/dist/esm/tokens/default/typography/font-family.js +23 -0
  99. package/dist/esm/tokens/default/typography/font-size.js +71 -0
  100. package/dist/esm/tokens/default/typography/font-weight.js +39 -0
  101. package/dist/esm/tokens/default/typography/line-height.js +55 -0
  102. package/dist/esm/version.json +1 -1
  103. package/dist/{types-ts4.0/artifacts/palettes-raw/spacing-scale.d.ts → types/artifacts/palettes-raw/font-size-scale.d.ts} +1 -1
  104. package/dist/types/artifacts/palettes-raw/font-weight-scale.d.ts +22 -0
  105. package/dist/types/artifacts/palettes-raw/line-height-scale.d.ts +22 -0
  106. package/dist/{types-ts4.0/artifacts/rename-mapping/atlassian-legacy-light.d.ts → types/artifacts/rename-mapping/atlassian-typography.d.ts} +1 -1
  107. package/dist/types/artifacts/token-default-values.d.ts +20 -0
  108. package/dist/types/artifacts/token-names.d.ts +22 -1
  109. package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +28 -0
  110. package/dist/types/artifacts/typescript/atlassian-light-token-default-values.d.ts +2 -2
  111. package/dist/types/artifacts/typescript/atlassian-spacing-token-default-values.d.ts +2 -2
  112. package/dist/types/artifacts/typescript/atlassian-typography-token-default-values.d.ts +32 -0
  113. package/dist/types/artifacts/typescript/atlassian-typography-token-names.d.ts +50 -0
  114. package/dist/types/artifacts/typescript/atlassian-typography-types-internal.d.ts +6 -0
  115. package/dist/types/artifacts/typescript/atlassian-typography-types.d.ts +6 -0
  116. package/dist/types/constants.d.ts +1 -1
  117. package/dist/types/entry-points/init.d.ts +4 -0
  118. package/dist/types/palettes/typography/font-family.d.ts +5 -0
  119. package/dist/types/palettes/typography/font-size-scale.d.ts +5 -0
  120. package/dist/types/palettes/typography/font-weight-scale.d.ts +5 -0
  121. package/dist/types/palettes/typography/index.d.ts +10 -0
  122. package/dist/types/palettes/typography/line-height-scale.d.ts +5 -0
  123. package/dist/types/theme-config.d.ts +5 -3
  124. package/dist/types/tokens/atlassian-typography/font-family.d.ts +4 -0
  125. package/dist/types/tokens/atlassian-typography/font-size.d.ts +4 -0
  126. package/dist/types/tokens/atlassian-typography/font-weight.d.ts +4 -0
  127. package/dist/types/tokens/atlassian-typography/line-height.d.ts +4 -0
  128. package/dist/types/tokens/default/elevation/surface.d.ts +2 -2
  129. package/dist/types/tokens/default/typography/font-family.d.ts +4 -0
  130. package/dist/types/tokens/default/typography/font-size.d.ts +4 -0
  131. package/dist/types/tokens/default/typography/font-weight.d.ts +4 -0
  132. package/dist/types/tokens/default/typography/line-height.d.ts +4 -0
  133. package/dist/types/types.d.ts +62 -1
  134. package/init/package.json +17 -0
  135. package/package.json +6 -5
  136. package/report.api.md +57 -4
  137. package/tmp/api-report-tmp.d.ts +50 -4
  138. package/dist/types-ts4.0/artifacts/palettes-raw/legacy-palette.d.ts +0 -41
  139. package/dist/types-ts4.0/artifacts/palettes-raw/palette.d.ts +0 -41
  140. package/dist/types-ts4.0/artifacts/rename-mapping/atlassian-spacing.d.ts +0 -26
  141. package/dist/types-ts4.0/artifacts/rename-mapping.d.ts +0 -6
  142. package/dist/types-ts4.0/artifacts/token-default-values.d.ts +0 -372
  143. package/dist/types-ts4.0/artifacts/token-names.d.ts +0 -376
  144. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-dark.d.ts +0 -222
  145. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +0 -222
  146. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-legacy-light.d.ts +0 -174
  147. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-light.d.ts +0 -174
  148. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-spacing.d.ts +0 -82
  149. package/dist/types-ts4.0/artifacts/types-internal.d.ts +0 -2
  150. package/dist/types-ts4.0/artifacts/types.d.ts +0 -2
  151. package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-token-names.d.ts +0 -596
  152. package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-types-internal.d.ts +0 -6
  153. package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-types.d.ts +0 -6
  154. package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-token-names.d.ts +0 -596
  155. package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-types-internal.d.ts +0 -6
  156. package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-types.d.ts +0 -6
  157. package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-token-names.d.ts +0 -596
  158. package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-types-internal.d.ts +0 -6
  159. package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-types.d.ts +0 -6
  160. package/dist/types-ts4.0/artifacts/typescript/atlassian-light-token-default-values.d.ts +0 -305
  161. package/dist/types-ts4.0/artifacts/typescript/atlassian-light-token-names.d.ts +0 -596
  162. package/dist/types-ts4.0/artifacts/typescript/atlassian-light-types-internal.d.ts +0 -6
  163. package/dist/types-ts4.0/artifacts/typescript/atlassian-light-types.d.ts +0 -6
  164. package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-token-default-values.d.ts +0 -88
  165. package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-token-names.d.ts +0 -162
  166. package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-types-internal.d.ts +0 -6
  167. package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-types.d.ts +0 -6
  168. package/dist/types-ts4.0/babel-plugin/index.d.ts +0 -1
  169. package/dist/types-ts4.0/babel-plugin/plugin.d.ts +0 -14
  170. package/dist/types-ts4.0/constants.d.ts +0 -6
  171. package/dist/types-ts4.0/entry-points/babel-plugin.d.ts +0 -1
  172. package/dist/types-ts4.0/entry-points/palettes-raw.d.ts +0 -1
  173. package/dist/types-ts4.0/entry-points/rename-mapping.d.ts +0 -1
  174. package/dist/types-ts4.0/entry-points/spacing-raw.d.ts +0 -1
  175. package/dist/types-ts4.0/entry-points/token-ids.d.ts +0 -1
  176. package/dist/types-ts4.0/entry-points/token-names.d.ts +0 -2
  177. package/dist/types-ts4.0/entry-points/tokens-raw.d.ts +0 -2
  178. package/dist/types-ts4.0/figma/synchronize-figma-tokens.d.ts +0 -24
  179. package/dist/types-ts4.0/figma/types.d.ts +0 -40
  180. package/dist/types-ts4.0/get-token.d.ts +0 -25
  181. package/dist/types-ts4.0/index.d.ts +0 -6
  182. package/dist/types-ts4.0/palettes/legacy-palette.d.ts +0 -10
  183. package/dist/types-ts4.0/palettes/palette.d.ts +0 -5
  184. package/dist/types-ts4.0/palettes/spacing-scale.d.ts +0 -5
  185. package/dist/types-ts4.0/set-global-theme.d.ts +0 -15
  186. package/dist/types-ts4.0/theme-change-observer.d.ts +0 -36
  187. package/dist/types-ts4.0/theme-config.d.ts +0 -53
  188. package/dist/types-ts4.0/tokens/atlassian-dark/color/accent.d.ts +0 -4
  189. package/dist/types-ts4.0/tokens/atlassian-dark/color/background.d.ts +0 -4
  190. package/dist/types-ts4.0/tokens/atlassian-dark/color/border.d.ts +0 -4
  191. package/dist/types-ts4.0/tokens/atlassian-dark/color/icon.d.ts +0 -4
  192. package/dist/types-ts4.0/tokens/atlassian-dark/color/interaction.d.ts +0 -4
  193. package/dist/types-ts4.0/tokens/atlassian-dark/color/skeleton.d.ts +0 -4
  194. package/dist/types-ts4.0/tokens/atlassian-dark/color/text.d.ts +0 -4
  195. package/dist/types-ts4.0/tokens/atlassian-dark/deprecated/deprecated.d.ts +0 -4
  196. package/dist/types-ts4.0/tokens/atlassian-dark/elevation/shadow.d.ts +0 -4
  197. package/dist/types-ts4.0/tokens/atlassian-dark/elevation/surface.d.ts +0 -4
  198. package/dist/types-ts4.0/tokens/atlassian-dark/opacity/opacity.d.ts +0 -3
  199. package/dist/types-ts4.0/tokens/atlassian-dark/utility/utility.d.ts +0 -5
  200. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/accent.d.ts +0 -4
  201. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/background.d.ts +0 -4
  202. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/border.d.ts +0 -4
  203. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/icon.d.ts +0 -4
  204. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/interaction.d.ts +0 -4
  205. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/skeleton.d.ts +0 -4
  206. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/text.d.ts +0 -4
  207. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/deprecated/deprecated.d.ts +0 -4
  208. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/elevation/shadow.d.ts +0 -4
  209. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/elevation/surface.d.ts +0 -4
  210. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/opacity/opacity.d.ts +0 -3
  211. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/utility/utility.d.ts +0 -5
  212. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/accent.d.ts +0 -4
  213. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/background.d.ts +0 -4
  214. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/border.d.ts +0 -4
  215. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/icon.d.ts +0 -4
  216. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/interaction.d.ts +0 -4
  217. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/skeleton.d.ts +0 -4
  218. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/text.d.ts +0 -4
  219. package/dist/types-ts4.0/tokens/atlassian-legacy-light/deprecated/deprecated.d.ts +0 -4
  220. package/dist/types-ts4.0/tokens/atlassian-legacy-light/elevation/shadow.d.ts +0 -4
  221. package/dist/types-ts4.0/tokens/atlassian-legacy-light/elevation/surface.d.ts +0 -4
  222. package/dist/types-ts4.0/tokens/atlassian-legacy-light/opacity/opacity.d.ts +0 -3
  223. package/dist/types-ts4.0/tokens/atlassian-legacy-light/utility/utility.d.ts +0 -5
  224. package/dist/types-ts4.0/tokens/atlassian-light/color/accent.d.ts +0 -4
  225. package/dist/types-ts4.0/tokens/atlassian-light/color/background.d.ts +0 -4
  226. package/dist/types-ts4.0/tokens/atlassian-light/color/border.d.ts +0 -4
  227. package/dist/types-ts4.0/tokens/atlassian-light/color/icon.d.ts +0 -4
  228. package/dist/types-ts4.0/tokens/atlassian-light/color/interaction.d.ts +0 -4
  229. package/dist/types-ts4.0/tokens/atlassian-light/color/skeleton.d.ts +0 -4
  230. package/dist/types-ts4.0/tokens/atlassian-light/color/text.d.ts +0 -4
  231. package/dist/types-ts4.0/tokens/atlassian-light/deprecated/deprecated.d.ts +0 -4
  232. package/dist/types-ts4.0/tokens/atlassian-light/elevation/shadow.d.ts +0 -4
  233. package/dist/types-ts4.0/tokens/atlassian-light/elevation/surface.d.ts +0 -4
  234. package/dist/types-ts4.0/tokens/atlassian-light/opacity/opacity.d.ts +0 -3
  235. package/dist/types-ts4.0/tokens/atlassian-light/utility/utility.d.ts +0 -5
  236. package/dist/types-ts4.0/tokens/atlassian-spacing/spacing.d.ts +0 -4
  237. package/dist/types-ts4.0/tokens/default/color/accent.d.ts +0 -4
  238. package/dist/types-ts4.0/tokens/default/color/background.d.ts +0 -4
  239. package/dist/types-ts4.0/tokens/default/color/border.d.ts +0 -4
  240. package/dist/types-ts4.0/tokens/default/color/icon.d.ts +0 -4
  241. package/dist/types-ts4.0/tokens/default/color/interaction.d.ts +0 -4
  242. package/dist/types-ts4.0/tokens/default/color/skeleton.d.ts +0 -4
  243. package/dist/types-ts4.0/tokens/default/color/text.d.ts +0 -4
  244. package/dist/types-ts4.0/tokens/default/deprecated/deprecated.d.ts +0 -4
  245. package/dist/types-ts4.0/tokens/default/elevation/shadow.d.ts +0 -4
  246. package/dist/types-ts4.0/tokens/default/elevation/surface.d.ts +0 -4
  247. package/dist/types-ts4.0/tokens/default/opacity/opacity.d.ts +0 -3
  248. package/dist/types-ts4.0/tokens/default/spacing/spacing.d.ts +0 -4
  249. package/dist/types-ts4.0/tokens/default/utility/utility.d.ts +0 -5
  250. package/dist/types-ts4.0/types.d.ts +0 -798
  251. package/dist/types-ts4.0/utils/color-detection.d.ts +0 -38
  252. package/dist/types-ts4.0/utils/token-ids.d.ts +0 -41
@@ -1,6 +1,27 @@
1
1
  import { CSSTokenMap as AtlassianLightCSSTokenMap } from './typescript/atlassian-light-token-names';
2
2
  import { CSSTokenMap as AtlassianSpacingCSSTokenMap } from './typescript/atlassian-spacing-token-names';
3
+ import { CSSTokenMap as AtlassianTypographyCSSTokenMap } from './typescript/atlassian-typography-token-names';
3
4
  declare const tokens: {
5
+ readonly 'font.family.sans': "--ds-font-family-sans";
6
+ readonly 'font.family.monospace': "--ds-font-family-monospace";
7
+ readonly 'font.size.100': "--ds-font-size-100";
8
+ readonly 'font.size.200': "--ds-font-size-200";
9
+ readonly 'font.size.300': "--ds-font-size-300";
10
+ readonly 'font.size.400': "--ds-font-size-400";
11
+ readonly 'font.size.500': "--ds-font-size-500";
12
+ readonly 'font.size.600': "--ds-font-size-600";
13
+ readonly 'font.size.050': "--ds-font-size-050";
14
+ readonly 'font.size.075': "--ds-font-size-075";
15
+ readonly 'font.weight.regular': "--ds-font-weight-regular";
16
+ readonly 'font.weight.medium': "--ds-font-weight-medium";
17
+ readonly 'font.weight.semibold': "--ds-font-weight-semibold";
18
+ readonly 'font.weight.bold': "--ds-font-weight-bold";
19
+ readonly 'font.lineHeight.100': "--ds-font-lineHeight-100";
20
+ readonly 'font.lineHeight.200': "--ds-font-lineHeight-200";
21
+ readonly 'font.lineHeight.300': "--ds-font-lineHeight-300";
22
+ readonly 'font.lineHeight.400': "--ds-font-lineHeight-400";
23
+ readonly 'font.lineHeight.500': "--ds-font-lineHeight-500";
24
+ readonly 'font.lineHeight.600': "--ds-font-lineHeight-600";
4
25
  readonly 'spacing.scale.0': "--ds-scale-0";
5
26
  readonly 'spacing.scale.100': "--ds-scale-100";
6
27
  readonly 'spacing.scale.150': "--ds-scale-150";
@@ -371,6 +392,6 @@ declare const tokens: {
371
392
  readonly 'utility.UNSAFE_util.transparent': "--ds-UNSAFE_util-transparent";
372
393
  readonly 'utility.UNSAFE_util.MISSING_TOKEN': "--ds-UNSAFE_util-MISSING_TOKEN";
373
394
  };
374
- export declare type CSSTokenMap = AtlassianLightCSSTokenMap & AtlassianSpacingCSSTokenMap;
395
+ export declare type CSSTokenMap = AtlassianLightCSSTokenMap & AtlassianSpacingCSSTokenMap & AtlassianTypographyCSSTokenMap;
375
396
  export declare type CSSToken = CSSTokenMap[keyof CSSTokenMap];
376
397
  export default tokens;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::7237ae542acbfbf81d98127d8003c2dd>>
4
+ * @codegenCommand yarn build tokens
5
+ */
6
+ declare const tokens: {
7
+ attributes: {
8
+ group: string;
9
+ state: string;
10
+ introduced: string;
11
+ description: string;
12
+ };
13
+ value: string;
14
+ filePath: string;
15
+ isSource: boolean;
16
+ original: {
17
+ attributes: {
18
+ group: string;
19
+ state: string;
20
+ introduced: string;
21
+ description: string;
22
+ };
23
+ value: string;
24
+ };
25
+ name: string;
26
+ path: string[];
27
+ }[];
28
+ export default tokens;
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
3
  *
4
- * Token names mapped to their value in the default Atlassian themes ('light spacing').
4
+ * Token names mapped to their value in the default Atlassian themes ('light').
5
5
  * These default values are used by the Babel plugin to optionally provide automatic fallbacks.
6
6
  *
7
- * @codegen <<SignedSource::ef6186f17dafc7e13af4096ad3cf41bb>>
7
+ * @codegen <<SignedSource::59114010c9c11270dd28c9a285bed33a>>
8
8
  * @codegenCommand yarn build tokens
9
9
  */
10
10
  declare const defaultTokenValues: {
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
3
  *
4
- * Token names mapped to their value in the default Atlassian themes ('light spacing').
4
+ * Token names mapped to their value in the default Atlassian themes ('light').
5
5
  * These default values are used by the Babel plugin to optionally provide automatic fallbacks.
6
6
  *
7
- * @codegen <<SignedSource::070fc18ba91d3a0673dcabb4f936f8d9>>
7
+ * @codegen <<SignedSource::6774c0c721b46e66ada20e02efc078c0>>
8
8
  * @codegenCommand yarn build tokens
9
9
  */
10
10
  declare const defaultTokenValues: {
@@ -0,0 +1,32 @@
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').
5
+ * These default values are used by the Babel plugin to optionally provide automatic fallbacks.
6
+ *
7
+ * @codegen <<SignedSource::c3cd2758c83d1514a33fbaec6ceb0a8d>>
8
+ * @codegenCommand yarn build tokens
9
+ */
10
+ declare const defaultTokenValues: {
11
+ readonly 'font.family.sans': "-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif";
12
+ readonly 'font.family.monospace': "\"SFMono-Medium\", \"SF Mono\", \"Segoe UI Mono\", \"Roboto Mono\", \"Ubuntu Mono\", Menlo, Consolas, Courier, monospace";
13
+ readonly 'font.size.100': "14px";
14
+ readonly 'font.size.200': "16px";
15
+ readonly 'font.size.300': "20px";
16
+ readonly 'font.size.400': "24px";
17
+ readonly 'font.size.500': "29px";
18
+ readonly 'font.size.600': "35px";
19
+ readonly 'font.size.050': "11px";
20
+ readonly 'font.size.075': "12px";
21
+ readonly 'font.weight.regular': "400";
22
+ readonly 'font.weight.medium': "500";
23
+ readonly 'font.weight.semibold': "600";
24
+ readonly 'font.weight.bold': "700";
25
+ readonly 'font.lineHeight.100': "16px";
26
+ readonly 'font.lineHeight.200': "20px";
27
+ readonly 'font.lineHeight.300': "24px";
28
+ readonly 'font.lineHeight.400': "28px";
29
+ readonly 'font.lineHeight.500': "32px";
30
+ readonly 'font.lineHeight.600': "40px";
31
+ };
32
+ export default defaultTokenValues;
@@ -0,0 +1,50 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::552924bc6add2fabb3af5b1ac93a9721>>
4
+ * @codegenCommand yarn build tokens
5
+ */
6
+ declare const tokens: {
7
+ readonly 'font.family.sans': "--ds-font-family-sans";
8
+ readonly 'font.family.monospace': "--ds-font-family-monospace";
9
+ readonly 'font.size.100': "--ds-font-size-100";
10
+ readonly 'font.size.200': "--ds-font-size-200";
11
+ readonly 'font.size.300': "--ds-font-size-300";
12
+ readonly 'font.size.400': "--ds-font-size-400";
13
+ readonly 'font.size.500': "--ds-font-size-500";
14
+ readonly 'font.size.600': "--ds-font-size-600";
15
+ readonly 'font.size.050': "--ds-font-size-050";
16
+ readonly 'font.size.075': "--ds-font-size-075";
17
+ readonly 'font.weight.regular': "--ds-font-weight-regular";
18
+ readonly 'font.weight.medium': "--ds-font-weight-medium";
19
+ readonly 'font.weight.semibold': "--ds-font-weight-semibold";
20
+ readonly 'font.weight.bold': "--ds-font-weight-bold";
21
+ readonly 'font.lineHeight.100': "--ds-font-lineHeight-100";
22
+ readonly 'font.lineHeight.200': "--ds-font-lineHeight-200";
23
+ readonly 'font.lineHeight.300': "--ds-font-lineHeight-300";
24
+ readonly 'font.lineHeight.400': "--ds-font-lineHeight-400";
25
+ readonly 'font.lineHeight.500': "--ds-font-lineHeight-500";
26
+ readonly 'font.lineHeight.600': "--ds-font-lineHeight-600";
27
+ };
28
+ export declare type CSSTokenMap = {
29
+ 'font.family.sans': 'var(--ds-font-family-sans)';
30
+ 'font.family.monospace': 'var(--ds-font-family-monospace)';
31
+ 'font.size.100': 'var(--ds-font-size-100)';
32
+ 'font.size.200': 'var(--ds-font-size-200)';
33
+ 'font.size.300': 'var(--ds-font-size-300)';
34
+ 'font.size.400': 'var(--ds-font-size-400)';
35
+ 'font.size.500': 'var(--ds-font-size-500)';
36
+ 'font.size.600': 'var(--ds-font-size-600)';
37
+ 'font.size.050': 'var(--ds-font-size-050)';
38
+ 'font.size.075': 'var(--ds-font-size-075)';
39
+ 'font.weight.regular': 'var(--ds-font-weight-regular)';
40
+ 'font.weight.medium': 'var(--ds-font-weight-medium)';
41
+ 'font.weight.semibold': 'var(--ds-font-weight-semibold)';
42
+ 'font.weight.bold': 'var(--ds-font-weight-bold)';
43
+ 'font.lineHeight.100': 'var(--ds-font-lineHeight-100)';
44
+ 'font.lineHeight.200': 'var(--ds-font-lineHeight-200)';
45
+ 'font.lineHeight.300': 'var(--ds-font-lineHeight-300)';
46
+ 'font.lineHeight.400': 'var(--ds-font-lineHeight-400)';
47
+ 'font.lineHeight.500': 'var(--ds-font-lineHeight-500)';
48
+ 'font.lineHeight.600': 'var(--ds-font-lineHeight-600)';
49
+ };
50
+ 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::26cbb810692cdf86cc645f8f2e64e557>>
4
+ * @codegenCommand yarn build tokens
5
+ */
6
+ export declare type InternalTokenIds = 'font.family.sans' | 'font.family.monospace' | 'font.size.100' | 'font.size.200' | 'font.size.300' | 'font.size.400' | 'font.size.500' | 'font.size.600' | 'font.size.050' | 'font.size.075' | 'font.weight.regular' | 'font.weight.medium' | 'font.weight.semibold' | 'font.weight.bold' | 'font.lineHeight.100' | 'font.lineHeight.200' | 'font.lineHeight.300' | 'font.lineHeight.400' | 'font.lineHeight.500' | 'font.lineHeight.600';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::58b491a5e9ad73249947dac36265057f>>
4
+ * @codegenCommand yarn build tokens
5
+ */
6
+ export declare type ActiveTokens = 'font.family.sans' | 'font.family.monospace' | 'font.size.100' | 'font.size.200' | 'font.size.300' | 'font.size.400' | 'font.size.500' | 'font.size.600' | 'font.size.050' | 'font.size.075' | 'font.weight.regular' | 'font.weight.medium' | 'font.weight.semibold' | 'font.weight.bold' | 'font.lineHeight.100' | 'font.lineHeight.200' | 'font.lineHeight.300' | 'font.lineHeight.400' | 'font.lineHeight.500' | 'font.lineHeight.600';
@@ -1,6 +1,6 @@
1
1
  export declare const THEME_DATA_ATTRIBUTE = "data-theme";
2
2
  export declare const COLOR_MODE_ATTRIBUTE = "data-color-mode";
3
- export declare const DEFAULT_THEME = "light spacing";
3
+ export declare const DEFAULT_THEME = "light";
4
4
  export declare const CSS_PREFIX = "ds";
5
5
  export declare const CSS_VAR_FULL: string[];
6
6
  export declare const TOKEN_NOT_FOUND_CSS_VAR: string;
@@ -0,0 +1,4 @@
1
+ import '../../css/atlassian-light.css';
2
+ import '../../css/atlassian-dark.css';
3
+ import '../../css/atlassian-spacing.css';
4
+ import '../../css/atlassian-typography.css';
@@ -0,0 +1,5 @@
1
+ import { FontFamilyPaletteTokenSchema } from '../../types';
2
+ export declare type FontFamilyPaletteValues = 'FontFamilySans' | 'FontFamilyMonospace';
3
+ export declare type BaseToken = keyof FontFamilyPaletteTokenSchema<FontFamilyPaletteValues>['fontFamily'];
4
+ declare const palette: FontFamilyPaletteTokenSchema<FontFamilyPaletteValues>;
5
+ export default palette;
@@ -0,0 +1,5 @@
1
+ import { FontSizeScaleTokenSchema } from '../../types';
2
+ export declare type FontSizeScaleValues = 'FontSize050' | 'FontSize075' | 'FontSize100' | 'FontSize200' | 'FontSize300' | 'FontSize400' | 'FontSize500' | 'FontSize600';
3
+ export declare type BaseToken = keyof FontSizeScaleTokenSchema<FontSizeScaleValues>['fontSize'];
4
+ declare const scale: FontSizeScaleTokenSchema<FontSizeScaleValues>;
5
+ export default scale;
@@ -0,0 +1,5 @@
1
+ import { FontWeightScaleTokenSchema } from '../../types';
2
+ export declare type FontWeightScaleValues = 'FontWeightRegular' | 'FontWeightMedium' | 'FontWeightSemiBold' | 'FontWeightBold';
3
+ export declare type BaseToken = keyof FontWeightScaleTokenSchema<FontWeightScaleValues>['fontWeight'];
4
+ declare const scale: FontWeightScaleTokenSchema<FontWeightScaleValues>;
5
+ export default scale;
@@ -0,0 +1,10 @@
1
+ import { FontFamilyPaletteTokenSchema, FontSizeScaleTokenSchema, FontWeightScaleTokenSchema, LineHeightScaleTokenSchema } from '../../types';
2
+ import { FontFamilyPaletteValues } from './font-family';
3
+ import { FontSizeScaleValues } from './font-size-scale';
4
+ import { FontWeightScaleValues } from './font-weight-scale';
5
+ import { LineHeightScaleValues } from './line-height-scale';
6
+ export declare type AtlassianTokenSchema = {
7
+ typography: FontSizeScaleTokenSchema<FontSizeScaleValues> | FontWeightScaleTokenSchema<FontWeightScaleValues> | FontFamilyPaletteTokenSchema<FontFamilyPaletteValues> | LineHeightScaleTokenSchema<LineHeightScaleValues>;
8
+ };
9
+ declare const typographyPalette: AtlassianTokenSchema;
10
+ export default typographyPalette;
@@ -0,0 +1,5 @@
1
+ import { LineHeightScaleTokenSchema } from '../../types';
2
+ export declare type LineHeightScaleValues = 'LineHeight100' | 'LineHeight200' | 'LineHeight300' | 'LineHeight400' | 'LineHeight500' | 'LineHeight600';
3
+ export declare type BaseToken = keyof LineHeightScaleTokenSchema<LineHeightScaleValues>['lineHeight'];
4
+ declare const scale: LineHeightScaleTokenSchema<LineHeightScaleValues>;
5
+ export default scale;
@@ -6,7 +6,7 @@
6
6
  * These ids are what the actual theme files/folders are called.
7
7
  * style-dictionary will attempt to locate these in the file-system.
8
8
  */
9
- export declare type Themes = 'atlassian-light' | 'atlassian-dark' | 'atlassian-legacy-light' | 'atlassian-legacy-dark' | 'atlassian-spacing';
9
+ export declare type Themes = 'atlassian-light' | 'atlassian-dark' | 'atlassian-legacy-light' | 'atlassian-legacy-dark' | 'atlassian-spacing' | 'atlassian-typography';
10
10
  export declare type ThemeFileNames = Themes;
11
11
  /**
12
12
  * Theme kinds: The type of theme.
@@ -27,13 +27,13 @@ export declare type ThemeColorModes = 'light' | 'dark';
27
27
  *
28
28
  * These ids must be kebab case
29
29
  */
30
- export declare type ThemeIds = 'light' | 'dark' | 'legacy-light' | 'legacy-dark' | 'spacing';
30
+ export declare type ThemeIds = 'light' | 'dark' | 'legacy-light' | 'legacy-dark' | 'spacing' | 'typography';
31
31
  /**
32
32
  * Palettes: The set of base tokens a given theme may be populated with.
33
33
  * For example: legacy light & dark themes use the "legacyPalette" containing colors from our
34
34
  * previous color set.
35
35
  */
36
- export declare type Palettes = 'defaultPalette' | 'legacyPalette' | 'spacingScale';
36
+ export declare type Palettes = 'defaultPalette' | 'legacyPalette' | 'spacingScale' | 'typographyPalette';
37
37
  /**
38
38
  * ThemeConfig: the source of truth for all theme meta-data.
39
39
  * This object should be used whenever interfacing with themes.
@@ -47,6 +47,8 @@ interface ThemeConfig {
47
47
  mode: ThemeColorModes;
48
48
  } | {
49
49
  type: 'spacing';
50
+ } | {
51
+ type: 'typography';
50
52
  };
51
53
  }
52
54
  declare const themeConfig: Record<Themes, ThemeConfig>;
@@ -0,0 +1,4 @@
1
+ import { BaseToken } from '../../palettes/typography/font-family';
2
+ import { FontFamilyTokenSchema, ValueSchema } from '../../types';
3
+ declare const font: ValueSchema<FontFamilyTokenSchema<BaseToken>>;
4
+ export default font;
@@ -0,0 +1,4 @@
1
+ import { BaseToken } from '../../palettes/typography/font-size-scale';
2
+ import { FontSizeTokenSchema, ValueSchema } from '../../types';
3
+ declare const font: ValueSchema<FontSizeTokenSchema<BaseToken>>;
4
+ export default font;
@@ -0,0 +1,4 @@
1
+ import { BaseToken } from '../../palettes/typography/font-weight-scale';
2
+ import { FontWeightTokenSchema, ValueSchema } from '../../types';
3
+ declare const font: ValueSchema<FontWeightTokenSchema<BaseToken>>;
4
+ export default font;
@@ -0,0 +1,4 @@
1
+ import { BaseToken } from '../../palettes/typography/line-height-scale';
2
+ import { LineHeightTokenSchema, ValueSchema } from '../../types';
3
+ declare const font: ValueSchema<LineHeightTokenSchema<BaseToken>>;
4
+ export default font;
@@ -1,4 +1,4 @@
1
1
  import type { BaseToken } from '../../../palettes/palette';
2
2
  import type { AttributeSchema, SurfaceTokenSchema } from '../../../types';
3
- declare const shadow: AttributeSchema<SurfaceTokenSchema<BaseToken>>;
4
- export default shadow;
3
+ declare const surface: AttributeSchema<SurfaceTokenSchema<BaseToken>>;
4
+ export default surface;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/typography/font-family';
2
+ import type { AttributeSchema, FontFamilyTokenSchema } from '../../../types';
3
+ declare const font: AttributeSchema<FontFamilyTokenSchema<BaseToken>>;
4
+ export default font;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/typography/font-size-scale';
2
+ import type { AttributeSchema, FontSizeTokenSchema } from '../../../types';
3
+ declare const font: AttributeSchema<FontSizeTokenSchema<BaseToken>>;
4
+ export default font;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/typography/font-weight-scale';
2
+ import type { AttributeSchema, FontWeightTokenSchema } from '../../../types';
3
+ declare const font: AttributeSchema<FontWeightTokenSchema<BaseToken>>;
4
+ export default font;
@@ -0,0 +1,4 @@
1
+ import type { BaseToken } from '../../../palettes/typography/line-height-scale';
2
+ import type { AttributeSchema, LineHeightTokenSchema } from '../../../types';
3
+ declare const font: AttributeSchema<LineHeightTokenSchema<BaseToken>>;
4
+ export default font;
@@ -1,5 +1,5 @@
1
1
  import { InternalTokenIds } from './artifacts/types-internal';
2
- export declare type Groups = 'raw' | 'paint' | 'shadow' | 'palette' | 'opacity' | 'spacing' | 'scale';
2
+ export declare type Groups = 'raw' | 'paint' | 'shadow' | 'palette' | 'opacity' | 'spacing' | 'scale' | 'fontSize' | 'fontWeight' | 'fontFamily' | 'lineHeight';
3
3
  export declare type ActiveTokenState = 'active';
4
4
  export declare type DeprecatedTokenState = 'deprecated';
5
5
  export declare type DeletedTokenState = 'deleted';
@@ -97,6 +97,11 @@ export declare type ShadowToken<BaseToken> = DesignToken<Array<{
97
97
  }>, 'shadow'>;
98
98
  export declare type OpacityToken = DesignToken<string, 'opacity'>;
99
99
  export declare type SpacingToken<BaseToken> = DesignToken<BaseToken, 'spacing'>;
100
+ export declare type FontSizeToken<BaseToken> = DesignToken<BaseToken, 'fontSize'>;
101
+ export declare type FontWeightToken<BaseToken> = DesignToken<BaseToken, 'fontWeight'>;
102
+ export declare type FontFamilyToken<BaseToken> = DesignToken<BaseToken, 'fontFamily'>;
103
+ export declare type LineHeightToken<BaseToken> = DesignToken<BaseToken, 'lineHeight'>;
104
+ export declare type TypographyToken<BaseToken> = DesignToken<BaseToken, 'fontSize' | 'fontWeight' | 'fontFamily' | 'lineHeight'>;
100
105
  export declare type RawToken = DesignToken<string, 'raw'>;
101
106
  export interface ScaleToken extends BaseToken<string, 'scale'> {
102
107
  attributes: {
@@ -119,6 +124,18 @@ export interface SpacingScaleTokenSchema<ScaleValues extends string> {
119
124
  scale: Record<ScaleValues, ScaleToken>;
120
125
  };
121
126
  }
127
+ export interface FontSizeScaleTokenSchema<ScaleValues extends string> {
128
+ fontSize: Record<ScaleValues, ScaleToken>;
129
+ }
130
+ export interface FontWeightScaleTokenSchema<ScaleValues extends string> {
131
+ fontWeight: Record<ScaleValues, ScaleToken>;
132
+ }
133
+ export interface FontFamilyPaletteTokenSchema<ScaleValues extends string> {
134
+ fontFamily: Record<ScaleValues, ScaleToken>;
135
+ }
136
+ export interface LineHeightScaleTokenSchema<ScaleValues extends string> {
137
+ lineHeight: Record<ScaleValues, ScaleToken>;
138
+ }
122
139
  export interface BackgroundColorTokenSchema<BaseToken> {
123
140
  color: {
124
141
  blanket: {
@@ -795,4 +812,48 @@ export interface SpacingTokenSchema<BaseToken> {
795
812
  };
796
813
  };
797
814
  }
815
+ export interface FontSizeTokenSchema<BaseToken> {
816
+ font: {
817
+ size: {
818
+ '050': TypographyToken<BaseToken>;
819
+ '075': TypographyToken<BaseToken>;
820
+ '100': TypographyToken<BaseToken>;
821
+ '200': TypographyToken<BaseToken>;
822
+ '300': TypographyToken<BaseToken>;
823
+ '400': TypographyToken<BaseToken>;
824
+ '500': TypographyToken<BaseToken>;
825
+ '600': TypographyToken<BaseToken>;
826
+ };
827
+ };
828
+ }
829
+ export interface FontWeightTokenSchema<BaseToken> {
830
+ font: {
831
+ weight: {
832
+ regular: TypographyToken<BaseToken>;
833
+ medium: TypographyToken<BaseToken>;
834
+ semibold: TypographyToken<BaseToken>;
835
+ bold: TypographyToken<BaseToken>;
836
+ };
837
+ };
838
+ }
839
+ export interface FontFamilyTokenSchema<BaseToken> {
840
+ font: {
841
+ family: {
842
+ sans: TypographyToken<BaseToken>;
843
+ monospace: TypographyToken<BaseToken>;
844
+ };
845
+ };
846
+ }
847
+ export interface LineHeightTokenSchema<BaseToken> {
848
+ font: {
849
+ lineHeight: {
850
+ '100': TypographyToken<BaseToken>;
851
+ '200': TypographyToken<BaseToken>;
852
+ '300': TypographyToken<BaseToken>;
853
+ '400': TypographyToken<BaseToken>;
854
+ '500': TypographyToken<BaseToken>;
855
+ '600': TypographyToken<BaseToken>;
856
+ };
857
+ };
858
+ }
798
859
  export {};
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@atlaskit/tokens/init",
3
+ "main": "../dist/cjs/entry-points/init.js",
4
+ "module": "../dist/esm/entry-points/init.js",
5
+ "module:es2019": "../dist/es2019/entry-points/init.js",
6
+ "sideEffects": [
7
+ "**/*.css"
8
+ ],
9
+ "types": "../dist/types/entry-points/init.d.ts",
10
+ "typesVersions": {
11
+ ">=4.0 <4.5": {
12
+ "*": [
13
+ "../dist/types-ts4.0/entry-points/init.d.ts"
14
+ ]
15
+ }
16
+ }
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "0.10.35",
3
+ "version": "0.11.0",
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",
@@ -41,6 +41,7 @@
41
41
  "./spacing-raw": "./src/entry-points/spacing-raw.tsx",
42
42
  "./rename-mapping": "./src/entry-points/rename-mapping.tsx",
43
43
  "./babel-plugin": "./src/entry-points/babel-plugin.tsx",
44
+ "./init": "./src/entry-points/init.tsx",
44
45
  "./css/atlassian-light.css": "./css/atlassian-light.css",
45
46
  "./css/atlassian-dark.css": "./css/atlassian-dark.css",
46
47
  "./css/atlassian-legacy-light.css": "./css/atlassian-legacy-light.css",
@@ -70,11 +71,11 @@
70
71
  "@atlaskit/code": "^14.4.0",
71
72
  "@atlaskit/docs": "^9.0.10",
72
73
  "@atlaskit/dropdown-menu": "^11.5.0",
73
- "@atlaskit/ds-explorations": "^1.0.0",
74
+ "@atlaskit/ds-explorations": "^1.2.0",
74
75
  "@atlaskit/dynamic-table": "^14.8.0",
75
76
  "@atlaskit/empty-state": "^7.4.0",
76
- "@atlaskit/focus-ring": "^1.1.0",
77
- "@atlaskit/heading": "^0.1.16",
77
+ "@atlaskit/focus-ring": "^1.2.0",
78
+ "@atlaskit/heading": "^1.0.0",
78
79
  "@atlaskit/icon": "^21.11.0",
79
80
  "@atlaskit/lozenge": "^11.3.0",
80
81
  "@atlaskit/modal-dialog": "^12.4.0",
@@ -97,7 +98,7 @@
97
98
  "copy-webpack-plugin": "^6.4.0",
98
99
  "fuse.js": "^6.6.2",
99
100
  "lodash": "^4.17.21",
100
- "prettier": "^2.1.1",
101
+ "prettier": "^2.7.0",
101
102
  "react": "^16.8.0",
102
103
  "react-use-clipboard": "^1.0.0",
103
104
  "style-dictionary": "^3.0.0",
package/report.api.md CHANGED
@@ -18,7 +18,7 @@
18
18
  export type CSSToken = CSSTokenMap[keyof CSSTokenMap];
19
19
 
20
20
  // @public (undocumented)
21
- type CSSTokenMap = CSSTokenMap_2 & CSSTokenMap_3;
21
+ type CSSTokenMap = CSSTokenMap_2 & CSSTokenMap_3 & CSSTokenMap_4;
22
22
 
23
23
  // @public (undocumented)
24
24
  type CSSTokenMap_2 = {
@@ -397,8 +397,36 @@ type CSSTokenMap_3 = {
397
397
  'spacing.inset.300': 'var(--ds-inset-300)';
398
398
  };
399
399
 
400
+ // @public (undocumented)
401
+ type CSSTokenMap_4 = {
402
+ 'font.family.sans': 'var(--ds-font-family-sans)';
403
+ 'font.family.monospace': 'var(--ds-font-family-monospace)';
404
+ 'font.size.100': 'var(--ds-font-size-100)';
405
+ 'font.size.200': 'var(--ds-font-size-200)';
406
+ 'font.size.300': 'var(--ds-font-size-300)';
407
+ 'font.size.400': 'var(--ds-font-size-400)';
408
+ 'font.size.500': 'var(--ds-font-size-500)';
409
+ 'font.size.600': 'var(--ds-font-size-600)';
410
+ 'font.size.050': 'var(--ds-font-size-050)';
411
+ 'font.size.075': 'var(--ds-font-size-075)';
412
+ 'font.weight.regular': 'var(--ds-font-weight-regular)';
413
+ 'font.weight.medium': 'var(--ds-font-weight-medium)';
414
+ 'font.weight.semibold': 'var(--ds-font-weight-semibold)';
415
+ 'font.weight.bold': 'var(--ds-font-weight-bold)';
416
+ 'font.lineHeight.100': 'var(--ds-font-lineHeight-100)';
417
+ 'font.lineHeight.200': 'var(--ds-font-lineHeight-200)';
418
+ 'font.lineHeight.300': 'var(--ds-font-lineHeight-300)';
419
+ 'font.lineHeight.400': 'var(--ds-font-lineHeight-400)';
420
+ 'font.lineHeight.500': 'var(--ds-font-lineHeight-500)';
421
+ 'font.lineHeight.600': 'var(--ds-font-lineHeight-600)';
422
+ };
423
+
400
424
  // @public
401
- type Palettes = 'defaultPalette' | 'legacyPalette' | 'spacingScale';
425
+ type Palettes =
426
+ | 'defaultPalette'
427
+ | 'legacyPalette'
428
+ | 'spacingScale'
429
+ | 'typographyPalette';
402
430
 
403
431
  // @public
404
432
  export const setGlobalTheme: (
@@ -419,6 +447,9 @@ interface ThemeConfig {
419
447
  }
420
448
  | {
421
449
  type: 'spacing';
450
+ }
451
+ | {
452
+ type: 'typography';
422
453
  };
423
454
  // (undocumented)
424
455
  displayName: string;
@@ -437,7 +468,8 @@ export type ThemeIds =
437
468
  | 'legacy-dark'
438
469
  | 'legacy-light'
439
470
  | 'light'
440
- | 'spacing';
471
+ | 'spacing'
472
+ | 'typography';
441
473
 
442
474
  // @public
443
475
  export class ThemeMutationObserver {
@@ -458,7 +490,8 @@ export type Themes =
458
490
  | 'atlassian-legacy-dark'
459
491
  | 'atlassian-legacy-light'
460
492
  | 'atlassian-light'
461
- | 'atlassian-spacing';
493
+ | 'atlassian-spacing'
494
+ | 'atlassian-typography';
462
495
 
463
496
  // @public
464
497
  export function token<T extends keyof Tokens>(
@@ -471,6 +504,26 @@ type Tokens = typeof tokens;
471
504
 
472
505
  // @public (undocumented)
473
506
  const tokens: {
507
+ readonly 'font.family.sans': '--ds-font-family-sans';
508
+ readonly 'font.family.monospace': '--ds-font-family-monospace';
509
+ readonly 'font.size.100': '--ds-font-size-100';
510
+ readonly 'font.size.200': '--ds-font-size-200';
511
+ readonly 'font.size.300': '--ds-font-size-300';
512
+ readonly 'font.size.400': '--ds-font-size-400';
513
+ readonly 'font.size.500': '--ds-font-size-500';
514
+ readonly 'font.size.600': '--ds-font-size-600';
515
+ readonly 'font.size.050': '--ds-font-size-050';
516
+ readonly 'font.size.075': '--ds-font-size-075';
517
+ readonly 'font.weight.regular': '--ds-font-weight-regular';
518
+ readonly 'font.weight.medium': '--ds-font-weight-medium';
519
+ readonly 'font.weight.semibold': '--ds-font-weight-semibold';
520
+ readonly 'font.weight.bold': '--ds-font-weight-bold';
521
+ readonly 'font.lineHeight.100': '--ds-font-lineHeight-100';
522
+ readonly 'font.lineHeight.200': '--ds-font-lineHeight-200';
523
+ readonly 'font.lineHeight.300': '--ds-font-lineHeight-300';
524
+ readonly 'font.lineHeight.400': '--ds-font-lineHeight-400';
525
+ readonly 'font.lineHeight.500': '--ds-font-lineHeight-500';
526
+ readonly 'font.lineHeight.600': '--ds-font-lineHeight-600';
474
527
  readonly 'spacing.scale.0': '--ds-scale-0';
475
528
  readonly 'spacing.scale.100': '--ds-scale-100';
476
529
  readonly 'spacing.scale.150': '--ds-scale-150';