@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
@@ -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
+ var defaultTokenValues = {
11
+ 'font.family.sans': '-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',
12
+ 'font.family.monospace': '"SFMono-Medium", "SF Mono", "Segoe UI Mono", "Roboto Mono", "Ubuntu Mono", Menlo, Consolas, Courier, monospace',
13
+ 'font.size.100': '14px',
14
+ 'font.size.200': '16px',
15
+ 'font.size.300': '20px',
16
+ 'font.size.400': '24px',
17
+ 'font.size.500': '29px',
18
+ 'font.size.600': '35px',
19
+ 'font.size.050': '11px',
20
+ 'font.size.075': '12px',
21
+ 'font.weight.regular': '400',
22
+ 'font.weight.medium': '500',
23
+ 'font.weight.semibold': '600',
24
+ 'font.weight.bold': '700',
25
+ 'font.lineHeight.100': '16px',
26
+ 'font.lineHeight.200': '20px',
27
+ 'font.lineHeight.300': '24px',
28
+ 'font.lineHeight.400': '28px',
29
+ 'font.lineHeight.500': '32px',
30
+ 'font.lineHeight.600': '40px'
31
+ };
32
+ export default defaultTokenValues;
@@ -0,0 +1,28 @@
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
+ var tokens = {
7
+ 'font.family.sans': '--ds-font-family-sans',
8
+ 'font.family.monospace': '--ds-font-family-monospace',
9
+ 'font.size.100': '--ds-font-size-100',
10
+ 'font.size.200': '--ds-font-size-200',
11
+ 'font.size.300': '--ds-font-size-300',
12
+ 'font.size.400': '--ds-font-size-400',
13
+ 'font.size.500': '--ds-font-size-500',
14
+ 'font.size.600': '--ds-font-size-600',
15
+ 'font.size.050': '--ds-font-size-050',
16
+ 'font.size.075': '--ds-font-size-075',
17
+ 'font.weight.regular': '--ds-font-weight-regular',
18
+ 'font.weight.medium': '--ds-font-weight-medium',
19
+ 'font.weight.semibold': '--ds-font-weight-semibold',
20
+ 'font.weight.bold': '--ds-font-weight-bold',
21
+ 'font.lineHeight.100': '--ds-font-lineHeight-100',
22
+ 'font.lineHeight.200': '--ds-font-lineHeight-200',
23
+ 'font.lineHeight.300': '--ds-font-lineHeight-300',
24
+ 'font.lineHeight.400': '--ds-font-lineHeight-400',
25
+ 'font.lineHeight.500': '--ds-font-lineHeight-500',
26
+ 'font.lineHeight.600': '--ds-font-lineHeight-600'
27
+ };
28
+ export default tokens;
@@ -1,6 +1,6 @@
1
1
  export var THEME_DATA_ATTRIBUTE = 'data-theme';
2
2
  export var COLOR_MODE_ATTRIBUTE = 'data-color-mode';
3
- export var DEFAULT_THEME = 'light spacing';
3
+ export var DEFAULT_THEME = 'light';
4
4
  export var CSS_PREFIX = 'ds';
5
- export var CSS_VAR_FULL = ['opacity'];
5
+ export var CSS_VAR_FULL = ['opacity', 'font'];
6
6
  export var TOKEN_NOT_FOUND_CSS_VAR = "--".concat(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
  var name = "@atlaskit/tokens";
5
- var version = "0.10.34";
5
+ var 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
+ var 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
+ var 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
+ var 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,14 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+
3
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
+
5
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
+
7
+ import fontFamilyPalette from './font-family';
8
+ import fontSizeScale from './font-size-scale';
9
+ import fontWeightScale from './font-weight-scale';
10
+ import lineHeightScale from './line-height-scale';
11
+ var typographyPalette = {
12
+ typography: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, fontSizeScale), fontWeightScale), lineHeightScale), fontFamilyPalette)
13
+ };
14
+ export default typographyPalette;
@@ -0,0 +1,41 @@
1
+ var 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 @@ var 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
+ var 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
+ var 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
+ var 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
+ var 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
- var shadow = {
1
+ var surface = {
2
2
  elevation: {
3
3
  surface: {
4
4
  '[default]': {
@@ -90,4 +90,4 @@ var shadow = {
90
90
  }
91
91
  }
92
92
  };
93
- export default shadow;
93
+ export default surface;
@@ -0,0 +1,23 @@
1
+ var 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
+ var 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
+ var 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
+ var 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
  ]
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::e1fc16f85d9f95330fadb08536a38997>>
3
+ * @codegen <<SignedSource::8fb1da69b30c7b1fcf40b479e7db7093>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  declare const tokens: {
@@ -0,0 +1,22 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::f17d943d430728df0f70ad5321ac80d4>>
4
+ * @codegenCommand yarn build tokens
5
+ */
6
+ declare const tokens: {
7
+ value: string;
8
+ attributes: {
9
+ group: string;
10
+ };
11
+ filePath: string;
12
+ isSource: boolean;
13
+ original: {
14
+ value: string;
15
+ attributes: {
16
+ group: string;
17
+ };
18
+ };
19
+ name: string;
20
+ path: string[];
21
+ }[];
22
+ export default tokens;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::918426e4e1a8d46689a9af31434ac590>>
4
+ * @codegenCommand yarn build tokens
5
+ */
6
+ declare const tokens: {
7
+ value: string;
8
+ attributes: {
9
+ group: string;
10
+ };
11
+ filePath: string;
12
+ isSource: boolean;
13
+ original: {
14
+ value: string;
15
+ attributes: {
16
+ group: string;
17
+ };
18
+ };
19
+ name: string;
20
+ path: string[];
21
+ }[];
22
+ export default tokens;
@@ -12,7 +12,7 @@
12
12
  * These changes will then be picked up by our tooling which will attempt to
13
13
  * migrate as many of these renames as possible.
14
14
  *
15
- * @codegen <<SignedSource::aed72cfe800fa74c79b858837a73edbf>>
15
+ * @codegen <<SignedSource::83ffd10a8ba807f2e4f905994e628e9c>>
16
16
  * @codegenCommand yarn build tokens
17
17
  */
18
18
  import tokens from '../token-names';
@@ -1,4 +1,24 @@
1
1
  declare const defaultTokens: {
2
+ 'font.family.sans': "-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif";
3
+ 'font.family.monospace': "\"SFMono-Medium\", \"SF Mono\", \"Segoe UI Mono\", \"Roboto Mono\", \"Ubuntu Mono\", Menlo, Consolas, Courier, monospace";
4
+ 'font.size.100': "14px";
5
+ 'font.size.200': "16px";
6
+ 'font.size.300': "20px";
7
+ 'font.size.400': "24px";
8
+ 'font.size.500': "29px";
9
+ 'font.size.600': "35px";
10
+ 'font.size.050': "11px";
11
+ 'font.size.075': "12px";
12
+ 'font.weight.regular': "400";
13
+ 'font.weight.medium': "500";
14
+ 'font.weight.semibold': "600";
15
+ 'font.weight.bold': "700";
16
+ 'font.lineHeight.100': "16px";
17
+ 'font.lineHeight.200': "20px";
18
+ 'font.lineHeight.300': "24px";
19
+ 'font.lineHeight.400': "28px";
20
+ 'font.lineHeight.500': "32px";
21
+ 'font.lineHeight.600': "40px";
2
22
  'spacing.scale.0': "0";
3
23
  'spacing.scale.100': "0.5rem";
4
24
  'spacing.scale.150': "0.75rem";