@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,38 +0,0 @@
1
- import { ShadowToken } from '../types';
2
- export declare const hexToRGBAValues: (hex: string) => {
3
- r: number;
4
- g: number;
5
- b: number;
6
- a: number;
7
- };
8
- export declare const hexToRGBA: (hex: string) => string;
9
- export declare const getLuminance: ({ r, g, b, }: {
10
- r: number;
11
- b: number;
12
- g: number;
13
- }) => number;
14
- /**
15
- * Returns an accessible hard-coded text color based on the color contrast with
16
- * the background.
17
- *
18
- * @param hex - The Hex color code of the background
19
- * @param [opts.hardcodedSurface] - If set, a design token will be returned instead
20
- * of a hard-coded color. This is to support more transparent backgrounds
21
- * to allow the text to invert colors depending on the current theme's surface color.
22
- */
23
- export declare const getTextColorForBackground: (hex: string, opts?: {
24
- hardcodedSurface?: "light" | "dark" | undefined;
25
- } | undefined) => string;
26
- /**
27
- * Returns a border if determined to be required based on the color contrast with
28
- * the background.
29
- *
30
- * @param hex - The Hex color code of the background
31
- */
32
- export declare const getBorderForBackground: (hex: string) => string | undefined;
33
- /**
34
- * Returns a box shadow formatted for CSS from a ShadowToken raw value.
35
- *
36
- * @param rawShadow - ShadowToken raw value
37
- */
38
- export declare const getBoxShadow: (rawShadow: ShadowToken<string>['value']) => string;
@@ -1,41 +0,0 @@
1
- /**
2
- * Transforms a style dictionary token path to a CSS custom property.
3
- *
4
- * A css prefix will be prepended and all [default] key words will be omitted
5
- * from the path
6
- *
7
- * @example <caption>Passing a path as an array</caption>
8
- * // Returns ds-background-bold
9
- * getCSSCustomProperty(['color', 'background', 'bold', '[default]'])
10
- *
11
- * @example <caption>Passing a path as a string</caption>
12
- * // Returns ds-background-bold
13
- * getCSSCustomProperty('color.background.bold.[default]')
14
- */
15
- export declare const getCSSCustomProperty: (path: string | string[]) => string;
16
- /**
17
- * Transforms a style dictionary token path to a shorthand token id
18
- * These ids will be typically be how tokens are interacted with via typescript and css
19
- *
20
- * All [default] key words will be omitted from the path
21
- *
22
- * @example <caption>Passing a path as an array</caption>
23
- * // Returns color.background.bold
24
- * getTokenId(['color', 'background', 'bold', '[default]'])
25
- *
26
- * @example <caption>Passing a path as a string</caption>
27
- * // Returns color.background.bold
28
- * getTokenId('color.background.bold.[default]')
29
- */
30
- export declare const getTokenId: (path: string | string[]) => string;
31
- /**
32
- * Transforms a style dictionary token path to a fully qualified token id
33
- * These Ids are intended to be used internal to this package by style-dictionary
34
- *
35
- * [default] key words will NOT be omitted from the path
36
- *
37
- * @example <caption>Passing a path as a string</caption>
38
- * // Returns color.background.bold.[default]
39
- * getFullyQualifiedTokenId(['color', 'background', 'bold', '[default]'])
40
- */
41
- export declare const getFullyQualifiedTokenId: (path: string[]) => string;