@atlaskit/tokens 0.10.34 → 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 (253) hide show
  1. package/CHANGELOG.md +15 -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/entry-points/token-names.d.ts +1 -1
  119. package/dist/types/palettes/typography/font-family.d.ts +5 -0
  120. package/dist/types/palettes/typography/font-size-scale.d.ts +5 -0
  121. package/dist/types/palettes/typography/font-weight-scale.d.ts +5 -0
  122. package/dist/types/palettes/typography/index.d.ts +10 -0
  123. package/dist/types/palettes/typography/line-height-scale.d.ts +5 -0
  124. package/dist/types/theme-config.d.ts +5 -3
  125. package/dist/types/tokens/atlassian-typography/font-family.d.ts +4 -0
  126. package/dist/types/tokens/atlassian-typography/font-size.d.ts +4 -0
  127. package/dist/types/tokens/atlassian-typography/font-weight.d.ts +4 -0
  128. package/dist/types/tokens/atlassian-typography/line-height.d.ts +4 -0
  129. package/dist/types/tokens/default/elevation/surface.d.ts +2 -2
  130. package/dist/types/tokens/default/typography/font-family.d.ts +4 -0
  131. package/dist/types/tokens/default/typography/font-size.d.ts +4 -0
  132. package/dist/types/tokens/default/typography/font-weight.d.ts +4 -0
  133. package/dist/types/tokens/default/typography/line-height.d.ts +4 -0
  134. package/dist/types/types.d.ts +62 -1
  135. package/init/package.json +17 -0
  136. package/package.json +6 -5
  137. package/report.api.md +57 -4
  138. package/tmp/api-report-tmp.d.ts +50 -4
  139. package/dist/types-ts4.0/artifacts/palettes-raw/legacy-palette.d.ts +0 -41
  140. package/dist/types-ts4.0/artifacts/palettes-raw/palette.d.ts +0 -41
  141. package/dist/types-ts4.0/artifacts/rename-mapping/atlassian-spacing.d.ts +0 -26
  142. package/dist/types-ts4.0/artifacts/rename-mapping.d.ts +0 -6
  143. package/dist/types-ts4.0/artifacts/token-default-values.d.ts +0 -372
  144. package/dist/types-ts4.0/artifacts/token-names.d.ts +0 -376
  145. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-dark.d.ts +0 -222
  146. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +0 -222
  147. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-legacy-light.d.ts +0 -174
  148. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-light.d.ts +0 -174
  149. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-spacing.d.ts +0 -82
  150. package/dist/types-ts4.0/artifacts/types-internal.d.ts +0 -2
  151. package/dist/types-ts4.0/artifacts/types.d.ts +0 -2
  152. package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-token-names.d.ts +0 -596
  153. package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-types-internal.d.ts +0 -6
  154. package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-types.d.ts +0 -6
  155. package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-token-names.d.ts +0 -596
  156. package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-types-internal.d.ts +0 -6
  157. package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-types.d.ts +0 -6
  158. package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-token-names.d.ts +0 -596
  159. package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-types-internal.d.ts +0 -6
  160. package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-types.d.ts +0 -6
  161. package/dist/types-ts4.0/artifacts/typescript/atlassian-light-token-default-values.d.ts +0 -305
  162. package/dist/types-ts4.0/artifacts/typescript/atlassian-light-token-names.d.ts +0 -596
  163. package/dist/types-ts4.0/artifacts/typescript/atlassian-light-types-internal.d.ts +0 -6
  164. package/dist/types-ts4.0/artifacts/typescript/atlassian-light-types.d.ts +0 -6
  165. package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-token-default-values.d.ts +0 -88
  166. package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-token-names.d.ts +0 -162
  167. package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-types-internal.d.ts +0 -6
  168. package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-types.d.ts +0 -6
  169. package/dist/types-ts4.0/babel-plugin/index.d.ts +0 -1
  170. package/dist/types-ts4.0/babel-plugin/plugin.d.ts +0 -14
  171. package/dist/types-ts4.0/constants.d.ts +0 -6
  172. package/dist/types-ts4.0/entry-points/babel-plugin.d.ts +0 -1
  173. package/dist/types-ts4.0/entry-points/palettes-raw.d.ts +0 -1
  174. package/dist/types-ts4.0/entry-points/rename-mapping.d.ts +0 -1
  175. package/dist/types-ts4.0/entry-points/spacing-raw.d.ts +0 -1
  176. package/dist/types-ts4.0/entry-points/token-ids.d.ts +0 -1
  177. package/dist/types-ts4.0/entry-points/token-names.d.ts +0 -2
  178. package/dist/types-ts4.0/entry-points/tokens-raw.d.ts +0 -2
  179. package/dist/types-ts4.0/figma/synchronize-figma-tokens.d.ts +0 -24
  180. package/dist/types-ts4.0/figma/types.d.ts +0 -40
  181. package/dist/types-ts4.0/get-token.d.ts +0 -25
  182. package/dist/types-ts4.0/index.d.ts +0 -6
  183. package/dist/types-ts4.0/palettes/legacy-palette.d.ts +0 -10
  184. package/dist/types-ts4.0/palettes/palette.d.ts +0 -5
  185. package/dist/types-ts4.0/palettes/spacing-scale.d.ts +0 -5
  186. package/dist/types-ts4.0/set-global-theme.d.ts +0 -15
  187. package/dist/types-ts4.0/theme-change-observer.d.ts +0 -36
  188. package/dist/types-ts4.0/theme-config.d.ts +0 -53
  189. package/dist/types-ts4.0/tokens/atlassian-dark/color/accent.d.ts +0 -4
  190. package/dist/types-ts4.0/tokens/atlassian-dark/color/background.d.ts +0 -4
  191. package/dist/types-ts4.0/tokens/atlassian-dark/color/border.d.ts +0 -4
  192. package/dist/types-ts4.0/tokens/atlassian-dark/color/icon.d.ts +0 -4
  193. package/dist/types-ts4.0/tokens/atlassian-dark/color/interaction.d.ts +0 -4
  194. package/dist/types-ts4.0/tokens/atlassian-dark/color/skeleton.d.ts +0 -4
  195. package/dist/types-ts4.0/tokens/atlassian-dark/color/text.d.ts +0 -4
  196. package/dist/types-ts4.0/tokens/atlassian-dark/deprecated/deprecated.d.ts +0 -4
  197. package/dist/types-ts4.0/tokens/atlassian-dark/elevation/shadow.d.ts +0 -4
  198. package/dist/types-ts4.0/tokens/atlassian-dark/elevation/surface.d.ts +0 -4
  199. package/dist/types-ts4.0/tokens/atlassian-dark/opacity/opacity.d.ts +0 -3
  200. package/dist/types-ts4.0/tokens/atlassian-dark/utility/utility.d.ts +0 -5
  201. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/accent.d.ts +0 -4
  202. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/background.d.ts +0 -4
  203. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/border.d.ts +0 -4
  204. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/icon.d.ts +0 -4
  205. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/interaction.d.ts +0 -4
  206. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/skeleton.d.ts +0 -4
  207. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/text.d.ts +0 -4
  208. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/deprecated/deprecated.d.ts +0 -4
  209. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/elevation/shadow.d.ts +0 -4
  210. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/elevation/surface.d.ts +0 -4
  211. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/opacity/opacity.d.ts +0 -3
  212. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/utility/utility.d.ts +0 -5
  213. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/accent.d.ts +0 -4
  214. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/background.d.ts +0 -4
  215. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/border.d.ts +0 -4
  216. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/icon.d.ts +0 -4
  217. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/interaction.d.ts +0 -4
  218. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/skeleton.d.ts +0 -4
  219. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/text.d.ts +0 -4
  220. package/dist/types-ts4.0/tokens/atlassian-legacy-light/deprecated/deprecated.d.ts +0 -4
  221. package/dist/types-ts4.0/tokens/atlassian-legacy-light/elevation/shadow.d.ts +0 -4
  222. package/dist/types-ts4.0/tokens/atlassian-legacy-light/elevation/surface.d.ts +0 -4
  223. package/dist/types-ts4.0/tokens/atlassian-legacy-light/opacity/opacity.d.ts +0 -3
  224. package/dist/types-ts4.0/tokens/atlassian-legacy-light/utility/utility.d.ts +0 -5
  225. package/dist/types-ts4.0/tokens/atlassian-light/color/accent.d.ts +0 -4
  226. package/dist/types-ts4.0/tokens/atlassian-light/color/background.d.ts +0 -4
  227. package/dist/types-ts4.0/tokens/atlassian-light/color/border.d.ts +0 -4
  228. package/dist/types-ts4.0/tokens/atlassian-light/color/icon.d.ts +0 -4
  229. package/dist/types-ts4.0/tokens/atlassian-light/color/interaction.d.ts +0 -4
  230. package/dist/types-ts4.0/tokens/atlassian-light/color/skeleton.d.ts +0 -4
  231. package/dist/types-ts4.0/tokens/atlassian-light/color/text.d.ts +0 -4
  232. package/dist/types-ts4.0/tokens/atlassian-light/deprecated/deprecated.d.ts +0 -4
  233. package/dist/types-ts4.0/tokens/atlassian-light/elevation/shadow.d.ts +0 -4
  234. package/dist/types-ts4.0/tokens/atlassian-light/elevation/surface.d.ts +0 -4
  235. package/dist/types-ts4.0/tokens/atlassian-light/opacity/opacity.d.ts +0 -3
  236. package/dist/types-ts4.0/tokens/atlassian-light/utility/utility.d.ts +0 -5
  237. package/dist/types-ts4.0/tokens/atlassian-spacing/spacing.d.ts +0 -4
  238. package/dist/types-ts4.0/tokens/default/color/accent.d.ts +0 -4
  239. package/dist/types-ts4.0/tokens/default/color/background.d.ts +0 -4
  240. package/dist/types-ts4.0/tokens/default/color/border.d.ts +0 -4
  241. package/dist/types-ts4.0/tokens/default/color/icon.d.ts +0 -4
  242. package/dist/types-ts4.0/tokens/default/color/interaction.d.ts +0 -4
  243. package/dist/types-ts4.0/tokens/default/color/skeleton.d.ts +0 -4
  244. package/dist/types-ts4.0/tokens/default/color/text.d.ts +0 -4
  245. package/dist/types-ts4.0/tokens/default/deprecated/deprecated.d.ts +0 -4
  246. package/dist/types-ts4.0/tokens/default/elevation/shadow.d.ts +0 -4
  247. package/dist/types-ts4.0/tokens/default/elevation/surface.d.ts +0 -4
  248. package/dist/types-ts4.0/tokens/default/opacity/opacity.d.ts +0 -3
  249. package/dist/types-ts4.0/tokens/default/spacing/spacing.d.ts +0 -4
  250. package/dist/types-ts4.0/tokens/default/utility/utility.d.ts +0 -5
  251. package/dist/types-ts4.0/types.d.ts +0 -798
  252. package/dist/types-ts4.0/utils/color-detection.d.ts +0 -38
  253. package/dist/types-ts4.0/utils/token-ids.d.ts +0 -41
@@ -1,6 +1,6 @@
1
1
  export const THEME_DATA_ATTRIBUTE = 'data-theme';
2
2
  export const COLOR_MODE_ATTRIBUTE = 'data-color-mode';
3
- export const DEFAULT_THEME = 'light spacing';
3
+ export const DEFAULT_THEME = 'light';
4
4
  export const CSS_PREFIX = 'ds';
5
- export const CSS_VAR_FULL = ['opacity'];
5
+ export const CSS_VAR_FULL = ['opacity', 'font'];
6
6
  export const TOKEN_NOT_FOUND_CSS_VAR = `--${CSS_PREFIX}-token-not-found`;
@@ -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';
@@ -2,7 +2,7 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  import { TOKEN_NOT_FOUND_CSS_VAR } from './constants';
4
4
  const name = "@atlaskit/tokens";
5
- const version = "0.10.34";
5
+ const version = "0.11.0";
6
6
 
7
7
  /**
8
8
  * Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
@@ -0,0 +1,17 @@
1
+ const palette = {
2
+ fontFamily: {
3
+ FontFamilySans: {
4
+ value: `-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif`,
5
+ attributes: {
6
+ group: 'scale'
7
+ }
8
+ },
9
+ FontFamilyMonospace: {
10
+ value: `"SFMono-Medium", "SF Mono", "Segoe UI Mono", "Roboto Mono", "Ubuntu Mono", Menlo, Consolas, Courier, monospace`,
11
+ attributes: {
12
+ group: 'scale'
13
+ }
14
+ }
15
+ }
16
+ };
17
+ export default palette;
@@ -0,0 +1,53 @@
1
+ const scale = {
2
+ fontSize: {
3
+ FontSize050: {
4
+ value: '11px',
5
+ attributes: {
6
+ group: 'scale'
7
+ }
8
+ },
9
+ FontSize075: {
10
+ value: '12px',
11
+ attributes: {
12
+ group: 'scale'
13
+ }
14
+ },
15
+ FontSize100: {
16
+ value: '14px',
17
+ attributes: {
18
+ group: 'scale'
19
+ }
20
+ },
21
+ FontSize200: {
22
+ value: '16px',
23
+ attributes: {
24
+ group: 'scale'
25
+ }
26
+ },
27
+ FontSize300: {
28
+ value: '20px',
29
+ attributes: {
30
+ group: 'scale'
31
+ }
32
+ },
33
+ FontSize400: {
34
+ value: '24px',
35
+ attributes: {
36
+ group: 'scale'
37
+ }
38
+ },
39
+ FontSize500: {
40
+ value: '29px',
41
+ attributes: {
42
+ group: 'scale'
43
+ }
44
+ },
45
+ FontSize600: {
46
+ value: '35px',
47
+ attributes: {
48
+ group: 'scale'
49
+ }
50
+ }
51
+ }
52
+ };
53
+ export default scale;
@@ -0,0 +1,29 @@
1
+ const scale = {
2
+ fontWeight: {
3
+ FontWeightRegular: {
4
+ value: '400',
5
+ attributes: {
6
+ group: 'scale'
7
+ }
8
+ },
9
+ FontWeightMedium: {
10
+ value: '500',
11
+ attributes: {
12
+ group: 'scale'
13
+ }
14
+ },
15
+ FontWeightSemiBold: {
16
+ value: '600',
17
+ attributes: {
18
+ group: 'scale'
19
+ }
20
+ },
21
+ FontWeightBold: {
22
+ value: '700',
23
+ attributes: {
24
+ group: 'scale'
25
+ }
26
+ }
27
+ }
28
+ };
29
+ export default scale;
@@ -0,0 +1,12 @@
1
+ import fontFamilyPalette from './font-family';
2
+ import fontSizeScale from './font-size-scale';
3
+ import fontWeightScale from './font-weight-scale';
4
+ import lineHeightScale from './line-height-scale';
5
+ const typographyPalette = {
6
+ typography: { ...fontSizeScale,
7
+ ...fontWeightScale,
8
+ ...lineHeightScale,
9
+ ...fontFamilyPalette
10
+ }
11
+ };
12
+ export default typographyPalette;
@@ -0,0 +1,41 @@
1
+ const scale = {
2
+ lineHeight: {
3
+ LineHeight100: {
4
+ value: '16px',
5
+ attributes: {
6
+ group: 'scale'
7
+ }
8
+ },
9
+ LineHeight200: {
10
+ value: '20px',
11
+ attributes: {
12
+ group: 'scale'
13
+ }
14
+ },
15
+ LineHeight300: {
16
+ value: '24px',
17
+ attributes: {
18
+ group: 'scale'
19
+ }
20
+ },
21
+ LineHeight400: {
22
+ value: '28px',
23
+ attributes: {
24
+ group: 'scale'
25
+ }
26
+ },
27
+ LineHeight500: {
28
+ value: '32px',
29
+ attributes: {
30
+ group: 'scale'
31
+ }
32
+ },
33
+ LineHeight600: {
34
+ value: '40px',
35
+ attributes: {
36
+ group: 'scale'
37
+ }
38
+ }
39
+ }
40
+ };
41
+ export default scale;
@@ -82,6 +82,14 @@ const themeConfig = {
82
82
  attributes: {
83
83
  type: 'spacing'
84
84
  }
85
+ },
86
+ 'atlassian-typography': {
87
+ id: 'typography',
88
+ displayName: 'Atlassian Typography',
89
+ palette: 'typographyPalette',
90
+ attributes: {
91
+ type: 'typography'
92
+ }
85
93
  }
86
94
  };
87
95
  export default themeConfig;
@@ -0,0 +1,13 @@
1
+ const font = {
2
+ font: {
3
+ family: {
4
+ sans: {
5
+ value: 'FontFamilySans'
6
+ },
7
+ monospace: {
8
+ value: 'FontFamilyMonospace'
9
+ }
10
+ }
11
+ }
12
+ };
13
+ export default font;
@@ -0,0 +1,31 @@
1
+ const font = {
2
+ font: {
3
+ size: {
4
+ '050': {
5
+ value: 'FontSize050'
6
+ },
7
+ '075': {
8
+ value: 'FontSize075'
9
+ },
10
+ '100': {
11
+ value: 'FontSize100'
12
+ },
13
+ '200': {
14
+ value: 'FontSize200'
15
+ },
16
+ '300': {
17
+ value: 'FontSize300'
18
+ },
19
+ '400': {
20
+ value: 'FontSize400'
21
+ },
22
+ '500': {
23
+ value: 'FontSize500'
24
+ },
25
+ '600': {
26
+ value: 'FontSize600'
27
+ }
28
+ }
29
+ }
30
+ };
31
+ export default font;
@@ -0,0 +1,19 @@
1
+ const font = {
2
+ font: {
3
+ weight: {
4
+ regular: {
5
+ value: 'FontWeightRegular'
6
+ },
7
+ medium: {
8
+ value: 'FontWeightMedium'
9
+ },
10
+ semibold: {
11
+ value: 'FontWeightSemiBold'
12
+ },
13
+ bold: {
14
+ value: 'FontWeightBold'
15
+ }
16
+ }
17
+ }
18
+ };
19
+ export default font;
@@ -0,0 +1,25 @@
1
+ const font = {
2
+ font: {
3
+ lineHeight: {
4
+ '100': {
5
+ value: 'LineHeight100'
6
+ },
7
+ '200': {
8
+ value: 'LineHeight200'
9
+ },
10
+ '300': {
11
+ value: 'LineHeight300'
12
+ },
13
+ '400': {
14
+ value: 'LineHeight400'
15
+ },
16
+ '500': {
17
+ value: 'LineHeight500'
18
+ },
19
+ '600': {
20
+ value: 'LineHeight600'
21
+ }
22
+ }
23
+ }
24
+ };
25
+ export default font;
@@ -1,4 +1,4 @@
1
- const shadow = {
1
+ const surface = {
2
2
  elevation: {
3
3
  surface: {
4
4
  '[default]': {
@@ -90,4 +90,4 @@ const shadow = {
90
90
  }
91
91
  }
92
92
  };
93
- export default shadow;
93
+ export default surface;
@@ -0,0 +1,23 @@
1
+ const font = {
2
+ font: {
3
+ family: {
4
+ sans: {
5
+ attributes: {
6
+ group: 'fontFamily',
7
+ state: 'active',
8
+ introduced: '0.10.33',
9
+ description: 'Helpful guidance goes here'
10
+ }
11
+ },
12
+ monospace: {
13
+ attributes: {
14
+ group: 'fontFamily',
15
+ state: 'active',
16
+ introduced: '0.10.33',
17
+ description: 'Helpful guidance goes here'
18
+ }
19
+ }
20
+ }
21
+ }
22
+ };
23
+ export default font;
@@ -0,0 +1,71 @@
1
+ const font = {
2
+ font: {
3
+ size: {
4
+ '050': {
5
+ attributes: {
6
+ group: 'fontSize',
7
+ state: 'active',
8
+ introduced: '0.10.33',
9
+ description: 'Helpful guidance goes here'
10
+ }
11
+ },
12
+ '075': {
13
+ attributes: {
14
+ group: 'fontSize',
15
+ state: 'active',
16
+ introduced: '0.10.33',
17
+ description: 'Helpful guidance goes here'
18
+ }
19
+ },
20
+ '100': {
21
+ attributes: {
22
+ group: 'fontSize',
23
+ state: 'active',
24
+ introduced: '0.10.33',
25
+ description: 'Helpful guidance goes here'
26
+ }
27
+ },
28
+ '200': {
29
+ attributes: {
30
+ group: 'fontSize',
31
+ state: 'active',
32
+ introduced: '0.10.33',
33
+ description: 'Helpful guidance goes here'
34
+ }
35
+ },
36
+ '300': {
37
+ attributes: {
38
+ group: 'fontSize',
39
+ state: 'active',
40
+ introduced: '0.10.33',
41
+ description: 'Helpful guidance goes here'
42
+ }
43
+ },
44
+ '400': {
45
+ attributes: {
46
+ group: 'fontSize',
47
+ state: 'active',
48
+ introduced: '0.10.33',
49
+ description: 'Helpful guidance goes here'
50
+ }
51
+ },
52
+ '500': {
53
+ attributes: {
54
+ group: 'fontSize',
55
+ state: 'active',
56
+ introduced: '0.10.33',
57
+ description: 'Helpful guidance goes here'
58
+ }
59
+ },
60
+ '600': {
61
+ attributes: {
62
+ group: 'fontSize',
63
+ state: 'active',
64
+ introduced: '0.10.33',
65
+ description: 'Helpful guidance goes here'
66
+ }
67
+ }
68
+ }
69
+ }
70
+ };
71
+ export default font;
@@ -0,0 +1,39 @@
1
+ const font = {
2
+ font: {
3
+ weight: {
4
+ regular: {
5
+ attributes: {
6
+ group: 'fontWeight',
7
+ state: 'active',
8
+ introduced: '0.10.33',
9
+ description: 'Helpful guidance goes here'
10
+ }
11
+ },
12
+ medium: {
13
+ attributes: {
14
+ group: 'fontWeight',
15
+ state: 'active',
16
+ introduced: '0.10.33',
17
+ description: 'Helpful guidance goes here'
18
+ }
19
+ },
20
+ semibold: {
21
+ attributes: {
22
+ group: 'fontWeight',
23
+ state: 'active',
24
+ introduced: '0.10.33',
25
+ description: 'Helpful guidance goes here'
26
+ }
27
+ },
28
+ bold: {
29
+ attributes: {
30
+ group: 'fontWeight',
31
+ state: 'active',
32
+ introduced: '0.10.33',
33
+ description: 'Helpful guidance goes here'
34
+ }
35
+ }
36
+ }
37
+ }
38
+ };
39
+ export default font;
@@ -0,0 +1,55 @@
1
+ const font = {
2
+ font: {
3
+ lineHeight: {
4
+ '100': {
5
+ attributes: {
6
+ group: 'lineHeight',
7
+ state: 'active',
8
+ introduced: '0.10.33',
9
+ description: 'Helpful guidance goes here'
10
+ }
11
+ },
12
+ '200': {
13
+ attributes: {
14
+ group: 'lineHeight',
15
+ state: 'active',
16
+ introduced: '0.10.33',
17
+ description: 'Helpful guidance goes here'
18
+ }
19
+ },
20
+ '300': {
21
+ attributes: {
22
+ group: 'lineHeight',
23
+ state: 'active',
24
+ introduced: '0.10.33',
25
+ description: 'Helpful guidance goes here'
26
+ }
27
+ },
28
+ '400': {
29
+ attributes: {
30
+ group: 'lineHeight',
31
+ state: 'active',
32
+ introduced: '0.10.33',
33
+ description: 'Helpful guidance goes here'
34
+ }
35
+ },
36
+ '500': {
37
+ attributes: {
38
+ group: 'lineHeight',
39
+ state: 'active',
40
+ introduced: '0.10.33',
41
+ description: 'Helpful guidance goes here'
42
+ }
43
+ },
44
+ '600': {
45
+ attributes: {
46
+ group: 'lineHeight',
47
+ state: 'active',
48
+ introduced: '0.10.33',
49
+ description: 'Helpful guidance goes here'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ };
55
+ export default font;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "0.10.34",
3
+ "version": "0.11.0",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ]
@@ -0,0 +1,127 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::8fb1da69b30c7b1fcf40b479e7db7093>>
4
+ * @codegenCommand yarn build tokens
5
+ */
6
+ var tokens = [{
7
+ "value": "11px",
8
+ "attributes": {
9
+ "group": "scale"
10
+ },
11
+ "filePath": "src/palettes/font-size-scale.tsx",
12
+ "isSource": true,
13
+ "original": {
14
+ "value": "11px",
15
+ "attributes": {
16
+ "group": "scale"
17
+ }
18
+ },
19
+ "name": "fontSize.FontSize050",
20
+ "path": ["fontSize", "FontSize050"]
21
+ }, {
22
+ "value": "12px",
23
+ "attributes": {
24
+ "group": "scale"
25
+ },
26
+ "filePath": "src/palettes/font-size-scale.tsx",
27
+ "isSource": true,
28
+ "original": {
29
+ "value": "12px",
30
+ "attributes": {
31
+ "group": "scale"
32
+ }
33
+ },
34
+ "name": "fontSize.FontSize075",
35
+ "path": ["fontSize", "FontSize075"]
36
+ }, {
37
+ "value": "14px",
38
+ "attributes": {
39
+ "group": "scale"
40
+ },
41
+ "filePath": "src/palettes/font-size-scale.tsx",
42
+ "isSource": true,
43
+ "original": {
44
+ "value": "14px",
45
+ "attributes": {
46
+ "group": "scale"
47
+ }
48
+ },
49
+ "name": "fontSize.FontSize100",
50
+ "path": ["fontSize", "FontSize100"]
51
+ }, {
52
+ "value": "16px",
53
+ "attributes": {
54
+ "group": "scale"
55
+ },
56
+ "filePath": "src/palettes/font-size-scale.tsx",
57
+ "isSource": true,
58
+ "original": {
59
+ "value": "16px",
60
+ "attributes": {
61
+ "group": "scale"
62
+ }
63
+ },
64
+ "name": "fontSize.FontSize200",
65
+ "path": ["fontSize", "FontSize200"]
66
+ }, {
67
+ "value": "20px",
68
+ "attributes": {
69
+ "group": "scale"
70
+ },
71
+ "filePath": "src/palettes/font-size-scale.tsx",
72
+ "isSource": true,
73
+ "original": {
74
+ "value": "20px",
75
+ "attributes": {
76
+ "group": "scale"
77
+ }
78
+ },
79
+ "name": "fontSize.FontSize300",
80
+ "path": ["fontSize", "FontSize300"]
81
+ }, {
82
+ "value": "24px",
83
+ "attributes": {
84
+ "group": "scale"
85
+ },
86
+ "filePath": "src/palettes/font-size-scale.tsx",
87
+ "isSource": true,
88
+ "original": {
89
+ "value": "24px",
90
+ "attributes": {
91
+ "group": "scale"
92
+ }
93
+ },
94
+ "name": "fontSize.FontSize400",
95
+ "path": ["fontSize", "FontSize400"]
96
+ }, {
97
+ "value": "29px",
98
+ "attributes": {
99
+ "group": "scale"
100
+ },
101
+ "filePath": "src/palettes/font-size-scale.tsx",
102
+ "isSource": true,
103
+ "original": {
104
+ "value": "29px",
105
+ "attributes": {
106
+ "group": "scale"
107
+ }
108
+ },
109
+ "name": "fontSize.FontSize500",
110
+ "path": ["fontSize", "FontSize500"]
111
+ }, {
112
+ "value": "35px",
113
+ "attributes": {
114
+ "group": "scale"
115
+ },
116
+ "filePath": "src/palettes/font-size-scale.tsx",
117
+ "isSource": true,
118
+ "original": {
119
+ "value": "35px",
120
+ "attributes": {
121
+ "group": "scale"
122
+ }
123
+ },
124
+ "name": "fontSize.FontSize600",
125
+ "path": ["fontSize", "FontSize600"]
126
+ }];
127
+ export default tokens;