@aziontech/theme 2.6.0 → 4.1.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 (251) hide show
  1. package/README.md +73 -66
  2. package/dist/v4/globals.css +827 -79
  3. package/dist/v4/globals.scss +827 -79
  4. package/package.json +6 -23
  5. package/src/scripts/build-tokens.mjs +197 -230
  6. package/src/scripts/compile-primitives.js +79 -79
  7. package/src/scripts/compile-theme.js +70 -63
  8. package/src/scripts/css-vars.d.ts.map +1 -1
  9. package/src/scripts/css-vars.js +20 -16
  10. package/src/scripts/refs.js +2 -2
  11. package/src/scripts/resolve.d.ts.map +1 -1
  12. package/src/scripts/resolve.js +50 -47
  13. package/src/tokens/README.md +53 -74
  14. package/src/tokens/index.js +5 -5
  15. package/src/tokens/primitives/animations/animate.d.ts +35 -0
  16. package/src/tokens/primitives/animations/animate.d.ts.map +1 -1
  17. package/src/tokens/primitives/animations/animate.js +43 -5
  18. package/src/tokens/primitives/animations/ease.d.ts.map +1 -1
  19. package/src/tokens/primitives/animations/ease.js +3 -3
  20. package/src/tokens/primitives/animations/keyframes.d.ts +79 -0
  21. package/src/tokens/primitives/animations/keyframes.d.ts.map +1 -0
  22. package/src/tokens/primitives/animations/keyframes.js +85 -0
  23. package/src/tokens/primitives/border-widths.d.ts.map +1 -1
  24. package/src/tokens/primitives/border-widths.js +3 -3
  25. package/src/tokens/primitives/breakpoints.d.ts.map +1 -1
  26. package/src/tokens/primitives/breakpoints.js +3 -3
  27. package/src/tokens/primitives/colors/alpha.d.ts +80 -80
  28. package/src/tokens/primitives/colors/alpha.js +84 -84
  29. package/src/tokens/primitives/colors/brand.d.ts +22 -22
  30. package/src/tokens/primitives/colors/brand.js +28 -28
  31. package/src/tokens/primitives/colors/colors.d.ts +88 -88
  32. package/src/tokens/primitives/colors/colors.js +107 -107
  33. package/src/tokens/primitives/effects/blur.d.ts.map +1 -1
  34. package/src/tokens/primitives/effects/blur.js +3 -3
  35. package/src/tokens/primitives/effects/drop-shadow.d.ts.map +1 -1
  36. package/src/tokens/primitives/effects/drop-shadow.js +3 -3
  37. package/src/tokens/primitives/effects/inset-shadow.d.ts.map +1 -1
  38. package/src/tokens/primitives/effects/inset-shadow.js +3 -3
  39. package/src/tokens/primitives/effects/opacity.d.ts.map +1 -1
  40. package/src/tokens/primitives/effects/opacity.js +3 -3
  41. package/src/tokens/primitives/effects/perspective.js +3 -3
  42. package/src/tokens/primitives/effects/shadow.d.ts.map +1 -1
  43. package/src/tokens/primitives/effects/shadow.js +3 -3
  44. package/src/{azion/_fonts.scss → tokens/primitives/fonts.css} +19 -4
  45. package/src/tokens/primitives/ring-offset.d.ts.map +1 -1
  46. package/src/tokens/primitives/ring-offset.js +3 -3
  47. package/src/tokens/primitives/shape/aspect-video.d.ts.map +1 -1
  48. package/src/tokens/primitives/shape/aspect-video.js +2 -2
  49. package/src/tokens/primitives/shape/container.d.ts.map +1 -1
  50. package/src/tokens/primitives/shape/container.js +3 -3
  51. package/src/tokens/primitives/shape/height.d.ts.map +1 -1
  52. package/src/tokens/primitives/shape/height.js +3 -3
  53. package/src/tokens/primitives/shape/radius.d.ts.map +1 -1
  54. package/src/tokens/primitives/shape/radius.js +3 -3
  55. package/src/tokens/primitives/shape/size.d.ts.map +1 -1
  56. package/src/tokens/primitives/shape/size.js +3 -3
  57. package/src/tokens/primitives/shape/spacing.d.ts.map +1 -1
  58. package/src/tokens/primitives/shape/spacing.js +3 -3
  59. package/src/tokens/primitives/shape/width.d.ts.map +1 -1
  60. package/src/tokens/primitives/shape/width.js +4 -4
  61. package/src/tokens/primitives/typography/font-size.d.ts.map +1 -1
  62. package/src/tokens/primitives/typography/font-size.js +4 -4
  63. package/src/tokens/primitives/typography/font-weight.js +3 -3
  64. package/src/tokens/primitives/typography/leading.js +3 -3
  65. package/src/tokens/primitives/typography/line-height.d.ts.map +1 -1
  66. package/src/tokens/primitives/typography/line-height.js +3 -3
  67. package/src/tokens/primitives/typography/tracking.js +3 -3
  68. package/src/tokens/semantic/colors.js +17 -17
  69. package/src/tokens/semantic/containers.data.d.ts.map +1 -1
  70. package/src/tokens/semantic/containers.data.js +3 -3
  71. package/src/tokens/semantic/containers.js +25 -25
  72. package/src/tokens/semantic/spacings.data.d.ts.map +1 -1
  73. package/src/tokens/semantic/spacings.data.js +3 -3
  74. package/src/tokens/semantic/texts.data.d.ts +59 -28
  75. package/src/tokens/semantic/texts.data.d.ts.map +1 -1
  76. package/src/tokens/semantic/texts.data.js +90 -56
  77. package/src/tokens/theme/accent.js +6 -6
  78. package/src/tokens/theme/border.js +6 -6
  79. package/src/tokens/theme/code-sintax.d.ts +53 -0
  80. package/src/tokens/theme/code-sintax.d.ts.map +1 -0
  81. package/src/tokens/theme/code-sintax.js +28 -0
  82. package/src/tokens/theme/feedback/danger.js +6 -6
  83. package/src/tokens/theme/feedback/info.js +6 -6
  84. package/src/tokens/theme/feedback/success.js +6 -6
  85. package/src/tokens/theme/feedback/warning.js +6 -6
  86. package/src/tokens/theme/primary.js +6 -6
  87. package/src/tokens/theme/ring.js +6 -6
  88. package/src/tokens/theme/secondary.js +6 -6
  89. package/src/tokens/theme/surfaces.d.ts.map +1 -1
  90. package/src/tokens/theme/surfaces.js +6 -6
  91. package/src/tokens/theme/text.d.ts +6 -0
  92. package/src/tokens/theme/text.js +2 -0
  93. package/src/tokens/theme.d.ts +110 -110
  94. package/src/tokens/theme.js +9 -9
  95. package/default.js +0 -1
  96. package/dist/v3/globals.css +0 -855
  97. package/dist/v3/globals.scss +0 -855
  98. package/dist/v3/tailwind-preset.js +0 -510
  99. package/dist/v3/tailwind.config.js +0 -518
  100. package/src/azion/_custom.scss +0 -3
  101. package/src/azion/_extensions.scss +0 -37
  102. package/src/azion/_variables-widget.scss +0 -400
  103. package/src/azion/_variables.scss +0 -407
  104. package/src/azion/custom/_code.scss +0 -11
  105. package/src/azion/custom/_focus.scss +0 -5
  106. package/src/azion/custom/_scrollbehavior.scss +0 -6
  107. package/src/azion/custom/_selection.scss +0 -4
  108. package/src/azion/custom/_special-button.scss +0 -57
  109. package/src/azion/extended-components/_autocomplete.scss +0 -13
  110. package/src/azion/extended-components/_badge.scss +0 -53
  111. package/src/azion/extended-components/_breadcumb.scss +0 -18
  112. package/src/azion/extended-components/_button.scss +0 -134
  113. package/src/azion/extended-components/_calendar.scss +0 -310
  114. package/src/azion/extended-components/_carousel.scss +0 -9
  115. package/src/azion/extended-components/_checkbox.scss +0 -33
  116. package/src/azion/extended-components/_datatable.scss +0 -130
  117. package/src/azion/extended-components/_dialog.scss +0 -45
  118. package/src/azion/extended-components/_divider.scss +0 -37
  119. package/src/azion/extended-components/_dropdown.scss +0 -10
  120. package/src/azion/extended-components/_dropdownitem.scss +0 -13
  121. package/src/azion/extended-components/_inlinemessage.scss +0 -10
  122. package/src/azion/extended-components/_inputnumber.scss +0 -40
  123. package/src/azion/extended-components/_inputpassword.scss +0 -4
  124. package/src/azion/extended-components/_inputswitch.scss +0 -53
  125. package/src/azion/extended-components/_listbox.scss +0 -35
  126. package/src/azion/extended-components/_markdown.scss +0 -135
  127. package/src/azion/extended-components/_menuitem.scss +0 -22
  128. package/src/azion/extended-components/_multiselect.scss +0 -167
  129. package/src/azion/extended-components/_overlaypanel.scss +0 -18
  130. package/src/azion/extended-components/_picklist.scss +0 -25
  131. package/src/azion/extended-components/_progressbar.scss +0 -6
  132. package/src/azion/extended-components/_radiobutton.scss +0 -63
  133. package/src/azion/extended-components/_selectbutton.scss +0 -36
  134. package/src/azion/extended-components/_sidebar.scss +0 -28
  135. package/src/azion/extended-components/_splitbutton.scss +0 -22
  136. package/src/azion/extended-components/_tabmenu.scss +0 -21
  137. package/src/azion/extended-components/_tabview.scss +0 -41
  138. package/src/azion/extended-components/_tag.scss +0 -47
  139. package/src/azion/extended-components/_toast.scss +0 -9
  140. package/src/azion/extended-components/_tooltip.scss +0 -7
  141. package/src/azion/extended-components/_treeselect.scss +0 -10
  142. package/src/azion/extended-components/jsonform/_inputcheckbox.scss +0 -41
  143. package/src/azion/extended-components/jsonform/_inputtext.scss +0 -26
  144. package/src/azion/extended-components/jsonform/_label.scss +0 -185
  145. package/src/azion/extended-components/jsonform/_select.scss +0 -34
  146. package/src/azion/theme-base/_colors.scss +0 -18
  147. package/src/azion/theme-base/_common.scss +0 -75
  148. package/src/azion/theme-base/_components.scss +0 -103
  149. package/src/azion/theme-base/_mixins.scss +0 -250
  150. package/src/azion/theme-base/components/button/_button.scss +0 -567
  151. package/src/azion/theme-base/components/button/_speeddial.scss +0 -97
  152. package/src/azion/theme-base/components/button/_splitbutton.scss +0 -390
  153. package/src/azion/theme-base/components/data/_carousel.scss +0 -37
  154. package/src/azion/theme-base/components/data/_datatable.scss +0 -347
  155. package/src/azion/theme-base/components/data/_dataview.scss +0 -47
  156. package/src/azion/theme-base/components/data/_filter.scss +0 -138
  157. package/src/azion/theme-base/components/data/_orderlist.scss +0 -70
  158. package/src/azion/theme-base/components/data/_organizationchart.scss +0 -50
  159. package/src/azion/theme-base/components/data/_paginator.scss +0 -92
  160. package/src/azion/theme-base/components/data/_picklist.scss +0 -70
  161. package/src/azion/theme-base/components/data/_timeline.scss +0 -38
  162. package/src/azion/theme-base/components/data/_tree.scss +0 -90
  163. package/src/azion/theme-base/components/data/_treetable.scss +0 -251
  164. package/src/azion/theme-base/components/file/_fileupload.scss +0 -82
  165. package/src/azion/theme-base/components/input/_autocomplete.scss +0 -114
  166. package/src/azion/theme-base/components/input/_calendar.scss +0 -251
  167. package/src/azion/theme-base/components/input/_cascadeselect.scss +0 -106
  168. package/src/azion/theme-base/components/input/_checkbox.scss +0 -86
  169. package/src/azion/theme-base/components/input/_chips.scss +0 -53
  170. package/src/azion/theme-base/components/input/_colorpicker.scss +0 -18
  171. package/src/azion/theme-base/components/input/_dropdown.scss +0 -147
  172. package/src/azion/theme-base/components/input/_editor.scss +0 -122
  173. package/src/azion/theme-base/components/input/_inputgroup.scss +0 -74
  174. package/src/azion/theme-base/components/input/_inputnumber.scss +0 -5
  175. package/src/azion/theme-base/components/input/_inputswitch.scss +0 -62
  176. package/src/azion/theme-base/components/input/_inputtext.scss +0 -100
  177. package/src/azion/theme-base/components/input/_listbox.scss +0 -89
  178. package/src/azion/theme-base/components/input/_multiselect.scss +0 -166
  179. package/src/azion/theme-base/components/input/_password.scss +0 -33
  180. package/src/azion/theme-base/components/input/_radiobutton.scss +0 -78
  181. package/src/azion/theme-base/components/input/_rating.scss +0 -60
  182. package/src/azion/theme-base/components/input/_selectbutton.scss +0 -50
  183. package/src/azion/theme-base/components/input/_slider.scss +0 -49
  184. package/src/azion/theme-base/components/input/_togglebutton.scss +0 -52
  185. package/src/azion/theme-base/components/input/_treeselect.scss +0 -91
  186. package/src/azion/theme-base/components/menu/_breadcrumb.scss +0 -42
  187. package/src/azion/theme-base/components/menu/_contextmenu.scss +0 -39
  188. package/src/azion/theme-base/components/menu/_dock.scss +0 -95
  189. package/src/azion/theme-base/components/menu/_megamenu.scss +0 -55
  190. package/src/azion/theme-base/components/menu/_menu.scss +0 -33
  191. package/src/azion/theme-base/components/menu/_menubar.scss +0 -141
  192. package/src/azion/theme-base/components/menu/_panelmenu.scss +0 -153
  193. package/src/azion/theme-base/components/menu/_steps.scss +0 -56
  194. package/src/azion/theme-base/components/menu/_tabmenu.scss +0 -49
  195. package/src/azion/theme-base/components/menu/_tieredmenu.scss +0 -43
  196. package/src/azion/theme-base/components/messages/_inlinemessage.scss +0 -64
  197. package/src/azion/theme-base/components/messages/_message.scss +0 -100
  198. package/src/azion/theme-base/components/messages/_toast.scss +0 -100
  199. package/src/azion/theme-base/components/misc/_avatar.scss +0 -30
  200. package/src/azion/theme-base/components/misc/_badge.scss +0 -48
  201. package/src/azion/theme-base/components/misc/_blockui.scss +0 -0
  202. package/src/azion/theme-base/components/misc/_chip.scss +0 -39
  203. package/src/azion/theme-base/components/misc/_inplace.scss +0 -17
  204. package/src/azion/theme-base/components/misc/_progressbar.scss +0 -17
  205. package/src/azion/theme-base/components/misc/_progressspinner.scss +0 -49
  206. package/src/azion/theme-base/components/misc/_scrolltop.scss +0 -25
  207. package/src/azion/theme-base/components/misc/_skeleton.scss +0 -8
  208. package/src/azion/theme-base/components/misc/_tag.scss +0 -40
  209. package/src/azion/theme-base/components/misc/_terminal.scss +0 -12
  210. package/src/azion/theme-base/components/multimedia/_galleria.scss +0 -151
  211. package/src/azion/theme-base/components/multimedia/_image.scss +0 -54
  212. package/src/azion/theme-base/components/overlay/_confirmpopup.scss +0 -72
  213. package/src/azion/theme-base/components/overlay/_dialog.scss +0 -64
  214. package/src/azion/theme-base/components/overlay/_overlaypanel.scss +0 -38
  215. package/src/azion/theme-base/components/overlay/_sidebar.scss +0 -23
  216. package/src/azion/theme-base/components/overlay/_tooltip.scss +0 -33
  217. package/src/azion/theme-base/components/panel/_accordion.scss +0 -118
  218. package/src/azion/theme-base/components/panel/_card.scss +0 -30
  219. package/src/azion/theme-base/components/panel/_divider.scss +0 -40
  220. package/src/azion/theme-base/components/panel/_fieldset.scss +0 -51
  221. package/src/azion/theme-base/components/panel/_panel.scss +0 -47
  222. package/src/azion/theme-base/components/panel/_scrollpanel.scss +0 -11
  223. package/src/azion/theme-base/components/panel/_splitter.scss +0 -24
  224. package/src/azion/theme-base/components/panel/_tabview.scss +0 -66
  225. package/src/azion/theme-base/components/panel/_toolbar.scss +0 -11
  226. package/src/azion/theme-widget.scss +0 -9
  227. package/src/azion/theme.scss +0 -9
  228. package/src/azion/variables/_button.scss +0 -438
  229. package/src/azion/variables/_data.scss +0 -346
  230. package/src/azion/variables/_form.scss +0 -570
  231. package/src/azion/variables/_general.scss +0 -149
  232. package/src/azion/variables/_media.scss +0 -231
  233. package/src/azion/variables/_menu.scss +0 -287
  234. package/src/azion/variables/_message.scss +0 -145
  235. package/src/azion/variables/_misc.scss +0 -143
  236. package/src/azion/variables/_overlay.scss +0 -67
  237. package/src/azion/variables/_panel.scss +0 -327
  238. package/src/tests/primitives.html +0 -293
  239. package/src/tests/theme.html +0 -310
  240. package/src/tests/tokens.html +0 -87
  241. package/src/tokens/semantic/animations.d.ts +0 -3
  242. package/src/tokens/semantic/animations.d.ts.map +0 -1
  243. package/src/tokens/semantic/animations.js +0 -80
  244. package/src/tokens/semantic/spacings.d.ts +0 -3
  245. package/src/tokens/semantic/spacings.d.ts.map +0 -1
  246. package/src/tokens/semantic/spacings.js +0 -163
  247. package/src/tokens/semantic/texts.d.ts +0 -3
  248. package/src/tokens/semantic/texts.d.ts.map +0 -1
  249. package/src/tokens/semantic/texts.js +0 -299
  250. package/tokens.js +0 -7
  251. package/widget.js +0 -1
@@ -16,129 +16,163 @@
16
16
  */
17
17
 
18
18
  import { fontFamily } from '../primitives/typography/font-family.js'
19
+ import { fontSize } from '../primitives/typography/font-size.js'
20
+ import { fontWeight } from '../primitives/typography/font-weight.js'
21
+ import { leading } from '../primitives/typography/leading.js'
19
22
 
20
23
  export const textsData = {
21
24
  'text-big-number-md': {
22
- fontSize: { _: '1.25rem', sm: '1.5rem', md: '2.25rem' },
23
- lineHeight: '1.20',
25
+ fontSize: { _: fontSize.xl, sm: fontSize['2xl'], md: fontSize['4xl'] },
26
+ lineHeight: leading.tight,
27
+ fontWeight: fontWeight.normal,
24
28
  fontFamily: fontFamily.display
25
29
  },
26
30
  'text-big-number-sm': {
27
- fontSize: { _: '1rem', sm: '1.25rem' },
28
- lineHeight: '1.20',
31
+ fontSize: { _: fontSize.base, sm: fontSize.xl },
32
+ lineHeight: leading.tight,
33
+ fontWeight: fontWeight.normal,
29
34
  fontFamily: fontFamily.display
30
35
  },
31
36
  'text-big-number-lg': {
32
- fontSize: { _: '1.5rem', sm: '2.25rem', md: '3.75rem' },
33
- lineHeight: '1.20',
37
+ fontSize: { _: fontSize['2xl'], sm: fontSize['4xl'], md: fontSize['6xl'] },
38
+ lineHeight: leading.tight,
39
+ fontWeight: fontWeight.normal,
34
40
  fontFamily: fontFamily.display
35
41
  },
36
42
  'text-heading-2xl': {
37
- fontSize: { _: '1.875rem', sm: '3rem', md: '3.75rem' },
38
- lineHeight: '1.1'
43
+ fontSize: { _: fontSize['3xl'], sm: fontSize['5xl'], md: fontSize['6xl'] },
44
+ lineHeight: leading.tight,
45
+ fontWeight: fontWeight.normal
39
46
  },
40
47
  'text-heading-xl': {
41
- fontSize: { _: '1.25rem', sm: '1.875rem', md: '2.25rem' },
42
- lineHeight: '1.1'
48
+ fontSize: { _: fontSize.xl, sm: fontSize['3xl'], md: fontSize['4xl'] },
49
+ lineHeight: leading.tight,
50
+ fontWeight: fontWeight.normal
43
51
  },
44
52
  'text-heading-lg': {
45
- fontSize: { _: '1.125rem', md: '1.875rem' },
46
- lineHeight: '1.2'
53
+ fontSize: { _: fontSize.lg, md: fontSize['3xl'] },
54
+ lineHeight: leading.tight,
55
+ fontWeight: fontWeight.normal
47
56
  },
48
57
  'text-heading-md': {
49
- fontSize: { _: '1rem', sm: '1.25rem', md: '1.5rem' },
50
- lineHeight: '1.3'
58
+ fontSize: { _: fontSize.base, sm: fontSize.xl, md: fontSize['2xl'] },
59
+ lineHeight: leading.tight,
60
+ fontWeight: fontWeight.normal
51
61
  },
52
62
  'text-heading-sm': {
53
- fontSize: { _: '0.875rem', sm: '1rem', md: '1.125rem' },
54
- lineHeight: '1.4'
63
+ fontSize: { _: fontSize.sm, sm: fontSize.base, md: fontSize.lg },
64
+ lineHeight: leading.snug,
65
+ fontWeight: fontWeight.normal
55
66
  },
56
67
  'text-heading-xs': {
57
- fontSize: '1rem',
58
- lineHeight: '1.4'
68
+ fontSize: fontSize.base,
69
+ lineHeight: leading.snug,
70
+ fontWeight: fontWeight.normal
59
71
  },
60
72
  'text-heading-xxs': {
61
- fontSize: '0.875rem',
62
- lineHeight: '1.4'
73
+ fontSize: fontSize.sm,
74
+ lineHeight: leading.snug,
75
+ fontWeight: fontWeight.normal
63
76
  },
64
77
  'text-label-lg': {
65
- fontSize: '1rem',
66
- lineHeight: '1.5',
67
- fontWeight: '500'
78
+ fontSize: fontSize.base,
79
+ lineHeight: leading.normal,
80
+ fontWeight: fontWeight.medium
68
81
  },
69
82
  'text-label-md': {
70
- fontSize: '0.875rem',
71
- lineHeight: '1.5',
72
- fontWeight: '500'
83
+ fontSize: fontSize.sm,
84
+ lineHeight: leading.normal,
85
+ fontWeight: fontWeight.medium
73
86
  },
74
87
  'text-label-sm': {
88
+ fontSize: fontSize.xs,
89
+ lineHeight: leading.normal,
90
+ fontWeight: fontWeight.medium
91
+ },
92
+ 'text-label-code-sm': {
93
+ fontFamily: fontFamily.code,
75
94
  fontSize: '0.75rem',
76
- lineHeight: '1.5',
77
- fontWeight: '500'
95
+ lineHeight: '1',
96
+ fontWeight: '400',
97
+ letterSpacing: '0'
98
+ },
99
+ 'text-label-code-md': {
100
+ fontFamily: fontFamily.code,
101
+ fontSize: '0.875rem',
102
+ lineHeight: '1',
103
+ fontWeight: '400',
104
+ letterSpacing: '0'
105
+ },
106
+ 'text-label-code-lg': {
107
+ fontFamily: fontFamily.code,
108
+ fontSize: '1rem',
109
+ lineHeight: '1',
110
+ fontWeight: '400',
111
+ letterSpacing: '0'
78
112
  },
79
113
  'text-body-lg': {
80
- fontSize: { _: '1rem', md: '1.125rem' },
81
- lineHeight: '1.5'
114
+ fontSize: { _: fontSize.base, md: fontSize.lg },
115
+ lineHeight: leading.normal
82
116
  },
83
117
  'text-body-md': {
84
- fontSize: '1rem',
85
- lineHeight: '1.5'
118
+ fontSize: fontSize.base,
119
+ lineHeight: leading.normal
86
120
  },
87
121
  'text-body-sm': {
88
- fontSize: '0.875rem',
89
- lineHeight: '1.5'
122
+ fontSize: fontSize.sm,
123
+ lineHeight: leading.normal
90
124
  },
91
125
  'text-body-xs': {
92
- fontSize: '0.75rem',
93
- lineHeight: '1.5'
126
+ fontSize: fontSize.xs,
127
+ lineHeight: leading.normal
94
128
  },
95
129
  'text-tag-sm': {
96
- fontSize: '0.6875rem',
97
- lineHeight: '1',
98
- fontWeight: '600'
130
+ fontSize: fontSize.xs,
131
+ lineHeight: leading.tight,
132
+ fontWeight: fontWeight.semibold
99
133
  },
100
134
  'text-tag-md': {
101
- fontSize: '0.75rem',
102
- lineHeight: '1',
103
- fontWeight: '600'
135
+ fontSize: fontSize.xs,
136
+ lineHeight: leading.tight,
137
+ fontWeight: fontWeight.semibold
104
138
  },
105
139
  'text-body-xxs': {
106
- fontSize: '0.625rem',
107
- lineHeight: '1.5'
140
+ fontSize: fontSize.xs,
141
+ lineHeight: leading.normal
108
142
  },
109
143
  'text-overline-md': {
110
144
  fontFamily: fontFamily.display,
111
- fontSize: { _: '0.75rem', sm: '0.875rem' },
112
- lineHeight: '1.4',
145
+ fontSize: { _: fontSize.xs, sm: fontSize.sm },
146
+ lineHeight: leading.snug,
113
147
  letterSpacing: '0.08em',
114
148
  textTransform: 'uppercase'
115
149
  },
116
150
  'text-overline-sm': {
117
151
  fontFamily: fontFamily.display,
118
- fontSize: '0.75rem',
119
- lineHeight: '1.4',
152
+ fontSize: fontSize.xs,
153
+ lineHeight: leading.snug,
120
154
  letterSpacing: '0.08em',
121
155
  textTransform: 'uppercase'
122
156
  },
123
157
  'text-overline-xs': {
124
158
  fontFamily: fontFamily.display,
125
- fontSize: '0.625rem',
126
- lineHeight: '1.4',
159
+ fontSize: fontSize.xs,
160
+ lineHeight: leading.snug,
127
161
  letterSpacing: '0.08em',
128
162
  textTransform: 'uppercase'
129
163
  },
130
164
  'text-button-lg': {
131
165
  fontFamily: fontFamily.sans,
132
- fontSize: '0.875rem',
133
- fontWeight: '600',
134
- lineHeight: '1',
166
+ fontSize: fontSize.sm,
167
+ fontWeight: fontWeight.normal,
168
+ lineHeight: leading.tight,
135
169
  letterSpacing: '0'
136
170
  },
137
171
  'text-button-md': {
138
172
  fontFamily: fontFamily.sans,
139
- fontSize: '0.75rem',
140
- fontWeight: '600',
141
- lineHeight: '1',
173
+ fontSize: fontSize.xs,
174
+ fontWeight: fontWeight.normal,
175
+ lineHeight: leading.tight,
142
176
  letterSpacing: '0'
143
177
  },
144
178
  /** Inline `<a>` in body/heading — inherits parent size; not the navigation Link component. */
@@ -1,18 +1,18 @@
1
- import { tokenRef } from '../../scripts/refs.js';
1
+ import { tokenRef } from '../../scripts/refs.js'
2
2
 
3
3
  export const accent = {
4
4
  light: {
5
5
  accent: tokenRef('brand.accent.accent-600'),
6
6
  'accent-mask': tokenRef('primitives.alpha.violet.50'),
7
7
  'accent-selected': tokenRef('brand.accent.accent-500'),
8
- 'accent-contrast': tokenRef('primitives.base.black'),
8
+ 'accent-contrast': tokenRef('primitives.base.black')
9
9
  },
10
10
  dark: {
11
11
  accent: tokenRef('brand.accent.accent-500'),
12
12
  'accent-mask': tokenRef('primitives.alpha.violet.100'),
13
13
  'accent-selected': tokenRef('brand.accent.accent-500'),
14
- 'accent-contrast': tokenRef('primitives.base.black'),
15
- },
16
- };
14
+ 'accent-contrast': tokenRef('primitives.base.black')
15
+ }
16
+ }
17
17
 
18
- export default { accent };
18
+ export default { accent }
@@ -1,18 +1,18 @@
1
- import { tokenRef } from '../../scripts/refs.js';
1
+ import { tokenRef } from '../../scripts/refs.js'
2
2
 
3
3
  export const border = {
4
4
  light: {
5
5
  'border-default': tokenRef('primitives.alpha.black.100'),
6
6
  'border-muted': tokenRef('primitives.alpha.black.100'),
7
7
  'border-strong': tokenRef('primitives.base.black'),
8
- 'border-selected': tokenRef('brand.primary.primary-500'),
8
+ 'border-selected': tokenRef('brand.primary.primary-500')
9
9
  },
10
10
  dark: {
11
11
  'border-default': tokenRef('primitives.alpha.white.100'),
12
12
  'border-muted': tokenRef('primitives.alpha.white.50'),
13
13
  'border-strong': tokenRef('primitives.base.white'),
14
- 'border-selected': tokenRef('brand.primary.primary-500'),
15
- },
16
- };
14
+ 'border-selected': tokenRef('brand.primary.primary-500')
15
+ }
16
+ }
17
17
 
18
- export default { border };
18
+ export default { border }
@@ -0,0 +1,53 @@
1
+ export namespace codeSintax {
2
+ let light: {
3
+ 'code-sintax-identifier': {
4
+ __ref: any;
5
+ };
6
+ 'code-sintax-line-number': {
7
+ __ref: any;
8
+ };
9
+ 'code-sintax-keyword': {
10
+ __ref: any;
11
+ };
12
+ 'code-sintax-punctuation': {
13
+ __ref: any;
14
+ };
15
+ 'code-sintax-function': {
16
+ __ref: any;
17
+ };
18
+ 'code-sintax-type': {
19
+ __ref: any;
20
+ };
21
+ 'code-sintax-string': {
22
+ __ref: any;
23
+ };
24
+ };
25
+ let dark: {
26
+ 'code-sintax-identifier': {
27
+ __ref: any;
28
+ };
29
+ 'code-sintax-line-number': {
30
+ __ref: any;
31
+ };
32
+ 'code-sintax-keyword': {
33
+ __ref: any;
34
+ };
35
+ 'code-sintax-punctuation': {
36
+ __ref: any;
37
+ };
38
+ 'code-sintax-function': {
39
+ __ref: any;
40
+ };
41
+ 'code-sintax-type': {
42
+ __ref: any;
43
+ };
44
+ 'code-sintax-string': {
45
+ __ref: any;
46
+ };
47
+ };
48
+ }
49
+ declare namespace _default {
50
+ export { codeSintax };
51
+ }
52
+ export default _default;
53
+ //# sourceMappingURL=code-sintax.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-sintax.d.ts","sourceRoot":"","sources":["code-sintax.js"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ import { tokenRef } from '../../scripts/refs.js'
2
+
3
+ /**
4
+ * Syntax-highlighting colors for code editors (Figma: code-sintax).
5
+ * Dark values match variable set 77:502 in Webkit Figma.
6
+ */
7
+ export const codeSintax = {
8
+ light: {
9
+ 'code-sintax-identifier': tokenRef('primitives.gray.900'),
10
+ 'code-sintax-line-number': tokenRef('primitives.gray.500'),
11
+ 'code-sintax-keyword': tokenRef('primitives.blue.600'),
12
+ 'code-sintax-punctuation': tokenRef('primitives.gray.500'),
13
+ 'code-sintax-function': tokenRef('brand.primary.primary-500'),
14
+ 'code-sintax-type': tokenRef('primitives.yellow.700'),
15
+ 'code-sintax-string': tokenRef('primitives.blue.600')
16
+ },
17
+ dark: {
18
+ 'code-sintax-identifier': tokenRef('primitives.gray.50'),
19
+ 'code-sintax-line-number': tokenRef('primitives.gray.400'),
20
+ 'code-sintax-keyword': tokenRef('primitives.blue.400'),
21
+ 'code-sintax-punctuation': tokenRef('primitives.gray.400'),
22
+ 'code-sintax-function': tokenRef('brand.primary.primary-500'),
23
+ 'code-sintax-type': tokenRef('primitives.yellow.300'),
24
+ 'code-sintax-string': tokenRef('primitives.blue.400')
25
+ }
26
+ }
27
+
28
+ export default { codeSintax }
@@ -1,16 +1,16 @@
1
- import { tokenRef } from '../../../scripts/refs.js';
1
+ import { tokenRef } from '../../../scripts/refs.js'
2
2
 
3
3
  export const danger = {
4
4
  light: {
5
5
  danger: tokenRef('primitives.red.100'),
6
6
  'danger-border': tokenRef('primitives.alpha.red.400'),
7
- 'danger-contrast': tokenRef('primitives.red.700'),
7
+ 'danger-contrast': tokenRef('primitives.red.700')
8
8
  },
9
9
  dark: {
10
10
  danger: tokenRef('primitives.red.800'),
11
11
  'danger-border': tokenRef('primitives.alpha.red.400'),
12
- 'danger-contrast': tokenRef('primitives.red.300'),
13
- },
14
- };
12
+ 'danger-contrast': tokenRef('primitives.red.300')
13
+ }
14
+ }
15
15
 
16
- export default { danger };
16
+ export default { danger }
@@ -1,16 +1,16 @@
1
- import { tokenRef } from '../../../scripts/refs.js';
1
+ import { tokenRef } from '../../../scripts/refs.js'
2
2
 
3
3
  export const info = {
4
4
  light: {
5
5
  info: tokenRef('primitives.blue.100'),
6
6
  'info-border': tokenRef('primitives.alpha.violet.400'),
7
- 'info-contrast': tokenRef('primitives.blue.700'),
7
+ 'info-contrast': tokenRef('primitives.blue.700')
8
8
  },
9
9
  dark: {
10
10
  info: tokenRef('primitives.blue.900'),
11
11
  'info-border': tokenRef('primitives.alpha.blue.500'),
12
- 'info-contrast': tokenRef('primitives.blue.300'),
13
- },
14
- };
12
+ 'info-contrast': tokenRef('primitives.blue.300')
13
+ }
14
+ }
15
15
 
16
- export default { info };
16
+ export default { info }
@@ -1,16 +1,16 @@
1
- import { tokenRef } from '../../../scripts/refs.js';
1
+ import { tokenRef } from '../../../scripts/refs.js'
2
2
 
3
3
  export const success = {
4
4
  light: {
5
5
  success: tokenRef('primitives.green.200'),
6
6
  'success-border': tokenRef('primitives.alpha.green.400'),
7
- 'success-contrast': tokenRef('primitives.green.800'),
7
+ 'success-contrast': tokenRef('primitives.green.800')
8
8
  },
9
9
  dark: {
10
10
  success: tokenRef('primitives.green.900'),
11
11
  'success-border': tokenRef('primitives.alpha.green.400'),
12
- 'success-contrast': tokenRef('primitives.green.400'),
13
- },
14
- };
12
+ 'success-contrast': tokenRef('primitives.green.400')
13
+ }
14
+ }
15
15
 
16
- export default { success };
16
+ export default { success }
@@ -1,16 +1,16 @@
1
- import { tokenRef } from '../../../scripts/refs.js';
1
+ import { tokenRef } from '../../../scripts/refs.js'
2
2
 
3
3
  export const warning = {
4
4
  light: {
5
5
  warning: tokenRef('primitives.yellow.200'),
6
6
  'warning-border': tokenRef('primitives.alpha.yellow.500'),
7
- 'warning-contrast': tokenRef('primitives.yellow.800'),
7
+ 'warning-contrast': tokenRef('primitives.yellow.800')
8
8
  },
9
9
  dark: {
10
10
  warning: tokenRef('primitives.yellow.900'),
11
11
  'warning-border': tokenRef('primitives.alpha.yellow.500'),
12
- 'warning-contrast': tokenRef('primitives.yellow.500'),
13
- },
14
- };
12
+ 'warning-contrast': tokenRef('primitives.yellow.500')
13
+ }
14
+ }
15
15
 
16
- export default { warning };
16
+ export default { warning }
@@ -1,18 +1,18 @@
1
- import { tokenRef } from '../../scripts/refs.js';
1
+ import { tokenRef } from '../../scripts/refs.js'
2
2
 
3
3
  export const primary = {
4
4
  light: {
5
5
  primary: tokenRef('brand.primary.primary-500'),
6
6
  'primary-mask': tokenRef('primitives.alpha.orange.200'),
7
7
  'primary-selected': tokenRef('primitives.alpha.orange.200'),
8
- 'primary-contrast': tokenRef('primitives.base.black'),
8
+ 'primary-contrast': tokenRef('primitives.base.black')
9
9
  },
10
10
  dark: {
11
11
  primary: tokenRef('brand.primary.primary-500'),
12
12
  'primary-mask': tokenRef('primitives.alpha.orange.200'),
13
13
  'primary-selected': tokenRef('primitives.alpha.orange.200'),
14
- 'primary-contrast': tokenRef('primitives.base.white'),
15
- },
16
- };
14
+ 'primary-contrast': tokenRef('primitives.base.white')
15
+ }
16
+ }
17
17
 
18
- export default { primary };
18
+ export default { primary }
@@ -1,12 +1,12 @@
1
- import { tokenRef } from '../../scripts/refs.js';
1
+ import { tokenRef } from '../../scripts/refs.js'
2
2
 
3
3
  export const ring = {
4
4
  light: {
5
- 'ring-color': tokenRef('theme.surfaces.surface-600'),
5
+ 'ring-color': tokenRef('theme.surfaces.surface-600')
6
6
  },
7
7
  dark: {
8
- 'ring-color': tokenRef('theme.surfaces.surface-700'),
9
- },
10
- };
8
+ 'ring-color': tokenRef('theme.surfaces.surface-700')
9
+ }
10
+ }
11
11
 
12
- export default { ring };
12
+ export default { ring }
@@ -1,18 +1,18 @@
1
- import { tokenRef } from '../../scripts/refs.js';
1
+ import { tokenRef } from '../../scripts/refs.js'
2
2
 
3
3
  export const secondary = {
4
4
  light: {
5
5
  secondary: tokenRef('theme.surfaces.surface-950'),
6
6
  'secondary-mask': tokenRef('primitives.alpha.black.50'),
7
7
  'secondary-selected': tokenRef('theme.surfaces.surface-950'),
8
- 'secondary-contrast': tokenRef('primitives.base.white'),
8
+ 'secondary-contrast': tokenRef('primitives.base.white')
9
9
  },
10
10
  dark: {
11
11
  secondary: tokenRef('theme.surfaces.surface-0'),
12
12
  'secondary-mask': tokenRef('primitives.alpha.white.100'),
13
13
  'secondary-selected': tokenRef('theme.surfaces.surface-0'),
14
- 'secondary-contrast': tokenRef('primitives.base.black'),
15
- },
16
- };
14
+ 'secondary-contrast': tokenRef('primitives.base.black')
15
+ }
16
+ }
17
17
 
18
- export default { secondary };
18
+ export default { secondary }
@@ -1 +1 @@
1
- {"version":3,"file":"surfaces.d.ts","sourceRoot":"","sources":["surfaces.js"],"names":[],"mappings":";;;;;;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaE"}
1
+ {"version":3,"file":"surfaces.d.ts","sourceRoot":"","sources":["surfaces.js"],"names":[],"mappings":";;;;;;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaC"}
@@ -1,4 +1,4 @@
1
- import { tokenRef } from '../../scripts/refs.js';
1
+ import { tokenRef } from '../../scripts/refs.js'
2
2
 
3
3
  const shared = {
4
4
  'surface-0': tokenRef('primitives.base.white'),
@@ -12,12 +12,12 @@ const shared = {
12
12
  'surface-700': tokenRef('primitives.gray.700'),
13
13
  'surface-800': tokenRef('primitives.gray.800'),
14
14
  'surface-900': tokenRef('primitives.gray.900'),
15
- 'surface-950': tokenRef('primitives.gray.950'),
16
- };
15
+ 'surface-950': tokenRef('primitives.gray.950')
16
+ }
17
17
 
18
18
  export const surfaces = {
19
19
  light: shared,
20
- dark: shared,
21
- };
20
+ dark: shared
21
+ }
22
22
 
23
- export default { surfaces };
23
+ export default { surfaces }
@@ -12,6 +12,9 @@ export namespace text {
12
12
  'text-link': {
13
13
  __ref: any;
14
14
  };
15
+ 'text-link-hover': {
16
+ __ref: any;
17
+ };
15
18
  'text-contrast': {
16
19
  __ref: any;
17
20
  };
@@ -29,6 +32,9 @@ export namespace text {
29
32
  'text-link': {
30
33
  __ref: any;
31
34
  };
35
+ 'text-link-hover': {
36
+ __ref: any;
37
+ };
32
38
  'text-contrast': {
33
39
  __ref: any;
34
40
  };
@@ -6,6 +6,7 @@ export const text = {
6
6
  'text-muted': tokenRef('primitives.gray.600'),
7
7
  'text-disabled': tokenRef('primitives.gray.400'),
8
8
  'text-link': tokenRef('primitives.blue.600'),
9
+ 'text-link-hover': tokenRef('primitives.blue.700'),
9
10
  'text-contrast': tokenRef('primitives.gray.50')
10
11
  },
11
12
  dark: {
@@ -13,6 +14,7 @@ export const text = {
13
14
  'text-muted': tokenRef('primitives.gray.400'),
14
15
  'text-disabled': tokenRef('primitives.gray.700'),
15
16
  'text-link': tokenRef('primitives.blue.400'),
17
+ 'text-link-hover': tokenRef('primitives.blue.300'),
16
18
  'text-contrast': tokenRef('primitives.base.black')
17
19
  }
18
20
  }