@vellira-ui/tokens 2.25.1 → 2.26.1

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 (250) hide show
  1. package/dist/css/tokens.css +1222 -872
  2. package/dist/dark/components/button.d.ts +54 -54
  3. package/dist/dark/components/button.d.ts.map +1 -1
  4. package/dist/dark/components/button.js +58 -60
  5. package/dist/dark/components/checkbox.d.ts +18 -13
  6. package/dist/dark/components/checkbox.d.ts.map +1 -1
  7. package/dist/dark/components/checkbox.js +19 -9
  8. package/dist/dark/components/contextMenu.d.ts +89 -0
  9. package/dist/dark/components/contextMenu.d.ts.map +1 -0
  10. package/dist/dark/components/contextMenu.js +52 -0
  11. package/dist/dark/components/dropdown.d.ts +33 -13
  12. package/dist/dark/components/dropdown.d.ts.map +1 -1
  13. package/dist/dark/components/dropdown.js +30 -27
  14. package/dist/dark/components/formField.d.ts +2 -2
  15. package/dist/dark/components/formField.js +1 -1
  16. package/dist/dark/components/index.d.ts +1 -1
  17. package/dist/dark/components/index.d.ts.map +1 -1
  18. package/dist/dark/components/index.js +1 -1
  19. package/dist/dark/components/input.d.ts +26 -26
  20. package/dist/dark/components/input.js +11 -11
  21. package/dist/dark/components/modal.d.ts +21 -4
  22. package/dist/dark/components/modal.d.ts.map +1 -1
  23. package/dist/dark/components/modal.js +18 -4
  24. package/dist/dark/components/radio.d.ts +24 -19
  25. package/dist/dark/components/radio.d.ts.map +1 -1
  26. package/dist/dark/components/radio.js +19 -19
  27. package/dist/dark/components/select.d.ts +24 -14
  28. package/dist/dark/components/select.d.ts.map +1 -1
  29. package/dist/dark/components/select.js +31 -24
  30. package/dist/dark/components/tabs.d.ts +17 -12
  31. package/dist/dark/components/tabs.d.ts.map +1 -1
  32. package/dist/dark/components/tabs.js +9 -8
  33. package/dist/dark/components/tooltip.d.ts +2 -1
  34. package/dist/dark/components/tooltip.d.ts.map +1 -1
  35. package/dist/dark/components/tooltip.js +7 -7
  36. package/dist/dark/semantic/action.d.ts +32 -32
  37. package/dist/dark/semantic/action.d.ts.map +1 -1
  38. package/dist/dark/semantic/action.js +44 -44
  39. package/dist/dark/semantic/border.d.ts +5 -5
  40. package/dist/dark/semantic/border.d.ts.map +1 -1
  41. package/dist/dark/semantic/border.js +5 -5
  42. package/dist/dark/semantic/control.d.ts +21 -16
  43. package/dist/dark/semantic/control.d.ts.map +1 -1
  44. package/dist/dark/semantic/control.js +24 -19
  45. package/dist/dark/semantic/divider.d.ts +3 -3
  46. package/dist/dark/semantic/divider.js +3 -3
  47. package/dist/dark/semantic/focus.d.ts +6 -2
  48. package/dist/dark/semantic/focus.d.ts.map +1 -1
  49. package/dist/dark/semantic/focus.js +6 -2
  50. package/dist/dark/semantic/icons.d.ts +10 -11
  51. package/dist/dark/semantic/icons.d.ts.map +1 -1
  52. package/dist/dark/semantic/icons.js +10 -11
  53. package/dist/dark/semantic/index.d.ts +3 -0
  54. package/dist/dark/semantic/index.d.ts.map +1 -1
  55. package/dist/dark/semantic/index.js +3 -0
  56. package/dist/dark/{components → semantic}/menu.d.ts +14 -19
  57. package/dist/dark/semantic/menu.d.ts.map +1 -0
  58. package/dist/dark/semantic/menu.js +47 -0
  59. package/dist/dark/semantic/navigation.d.ts +8 -8
  60. package/dist/dark/semantic/navigation.d.ts.map +1 -1
  61. package/dist/dark/semantic/navigation.js +5 -4
  62. package/dist/dark/semantic/overlay.d.ts +17 -0
  63. package/dist/dark/semantic/overlay.d.ts.map +1 -0
  64. package/dist/dark/semantic/overlay.js +19 -0
  65. package/dist/dark/semantic/shadow.d.ts +8 -0
  66. package/dist/dark/semantic/shadow.d.ts.map +1 -0
  67. package/dist/dark/semantic/shadow.js +7 -0
  68. package/dist/dark/semantic/skeleton.d.ts +2 -2
  69. package/dist/dark/semantic/skeleton.js +2 -2
  70. package/dist/dark/semantic/status.d.ts +12 -8
  71. package/dist/dark/semantic/status.d.ts.map +1 -1
  72. package/dist/dark/semantic/status.js +12 -8
  73. package/dist/dark/semantic/surface.d.ts +4 -4
  74. package/dist/dark/semantic/surface.d.ts.map +1 -1
  75. package/dist/dark/semantic/surface.js +4 -4
  76. package/dist/dark/semantic/text.d.ts +6 -5
  77. package/dist/dark/semantic/text.d.ts.map +1 -1
  78. package/dist/dark/semantic/text.js +6 -5
  79. package/dist/dark/theme.d.ts +1 -1
  80. package/dist/generated/token-types.d.ts +5 -5
  81. package/dist/generated/token-types.d.ts.map +1 -1
  82. package/dist/generated/token-types.js +569 -132
  83. package/dist/highContrast/components/button.d.ts +68 -68
  84. package/dist/highContrast/components/button.d.ts.map +1 -1
  85. package/dist/highContrast/components/button.js +68 -69
  86. package/dist/highContrast/components/checkbox.d.ts +20 -15
  87. package/dist/highContrast/components/checkbox.d.ts.map +1 -1
  88. package/dist/highContrast/components/checkbox.js +26 -13
  89. package/dist/highContrast/components/contextMenu.d.ts +89 -0
  90. package/dist/highContrast/components/contextMenu.d.ts.map +1 -0
  91. package/dist/highContrast/components/contextMenu.js +52 -0
  92. package/dist/highContrast/components/dropdown.d.ts +45 -25
  93. package/dist/highContrast/components/dropdown.d.ts.map +1 -1
  94. package/dist/highContrast/components/dropdown.js +28 -37
  95. package/dist/highContrast/components/formField.d.ts +5 -5
  96. package/dist/highContrast/components/formField.js +2 -2
  97. package/dist/highContrast/components/index.d.ts +1 -1
  98. package/dist/highContrast/components/index.d.ts.map +1 -1
  99. package/dist/highContrast/components/index.js +1 -1
  100. package/dist/highContrast/components/input.d.ts +29 -29
  101. package/dist/highContrast/components/input.d.ts.map +1 -1
  102. package/dist/highContrast/components/input.js +16 -17
  103. package/dist/highContrast/components/modal.d.ts +22 -5
  104. package/dist/highContrast/components/modal.d.ts.map +1 -1
  105. package/dist/highContrast/components/modal.js +19 -6
  106. package/dist/highContrast/components/radio.d.ts +27 -22
  107. package/dist/highContrast/components/radio.d.ts.map +1 -1
  108. package/dist/highContrast/components/radio.js +20 -20
  109. package/dist/highContrast/components/select.d.ts +27 -17
  110. package/dist/highContrast/components/select.d.ts.map +1 -1
  111. package/dist/highContrast/components/select.js +31 -30
  112. package/dist/highContrast/components/tabs.d.ts +21 -16
  113. package/dist/highContrast/components/tabs.d.ts.map +1 -1
  114. package/dist/highContrast/components/tabs.js +18 -15
  115. package/dist/highContrast/components/tooltip.d.ts +3 -2
  116. package/dist/highContrast/components/tooltip.d.ts.map +1 -1
  117. package/dist/highContrast/components/tooltip.js +7 -7
  118. package/dist/highContrast/semantic/action.d.ts +46 -36
  119. package/dist/highContrast/semantic/action.d.ts.map +1 -1
  120. package/dist/highContrast/semantic/action.js +56 -47
  121. package/dist/highContrast/semantic/border.d.ts +4 -4
  122. package/dist/highContrast/semantic/border.d.ts.map +1 -1
  123. package/dist/highContrast/semantic/border.js +4 -4
  124. package/dist/highContrast/semantic/control.d.ts +23 -28
  125. package/dist/highContrast/semantic/control.d.ts.map +1 -1
  126. package/dist/highContrast/semantic/control.js +24 -29
  127. package/dist/highContrast/semantic/divider.d.ts +2 -2
  128. package/dist/highContrast/semantic/divider.js +2 -2
  129. package/dist/highContrast/semantic/focus.d.ts +6 -2
  130. package/dist/highContrast/semantic/focus.d.ts.map +1 -1
  131. package/dist/highContrast/semantic/focus.js +6 -2
  132. package/dist/highContrast/semantic/icons.d.ts +10 -11
  133. package/dist/highContrast/semantic/icons.d.ts.map +1 -1
  134. package/dist/highContrast/semantic/icons.js +11 -12
  135. package/dist/highContrast/semantic/index.d.ts +4 -0
  136. package/dist/highContrast/semantic/index.d.ts.map +1 -1
  137. package/dist/highContrast/semantic/index.js +4 -0
  138. package/dist/highContrast/{components → semantic}/menu.d.ts +20 -25
  139. package/dist/highContrast/semantic/menu.d.ts.map +1 -0
  140. package/dist/highContrast/semantic/menu.js +47 -0
  141. package/dist/highContrast/semantic/navigation.d.ts +14 -25
  142. package/dist/highContrast/semantic/navigation.d.ts.map +1 -1
  143. package/dist/highContrast/semantic/navigation.js +12 -23
  144. package/dist/highContrast/semantic/overlay.d.ts +17 -0
  145. package/dist/highContrast/semantic/overlay.d.ts.map +1 -0
  146. package/dist/highContrast/semantic/overlay.js +19 -0
  147. package/dist/highContrast/semantic/shadow.d.ts +8 -0
  148. package/dist/highContrast/semantic/shadow.d.ts.map +1 -0
  149. package/dist/highContrast/semantic/shadow.js +7 -0
  150. package/dist/highContrast/semantic/skeleton.d.ts +1 -1
  151. package/dist/highContrast/semantic/skeleton.js +1 -1
  152. package/dist/highContrast/semantic/status.d.ts +17 -13
  153. package/dist/highContrast/semantic/status.d.ts.map +1 -1
  154. package/dist/highContrast/semantic/status.js +17 -13
  155. package/dist/highContrast/semantic/surface.d.ts +6 -6
  156. package/dist/highContrast/semantic/surface.d.ts.map +1 -1
  157. package/dist/highContrast/semantic/surface.js +7 -7
  158. package/dist/highContrast/semantic/text.d.ts +7 -6
  159. package/dist/highContrast/semantic/text.d.ts.map +1 -1
  160. package/dist/highContrast/semantic/text.js +7 -6
  161. package/dist/highContrast/theme.d.ts +1 -1
  162. package/dist/light/components/button.d.ts +49 -49
  163. package/dist/light/components/button.d.ts.map +1 -1
  164. package/dist/light/components/button.js +62 -64
  165. package/dist/light/components/checkbox.d.ts +19 -14
  166. package/dist/light/components/checkbox.d.ts.map +1 -1
  167. package/dist/light/components/checkbox.js +20 -13
  168. package/dist/light/components/contextMenu.d.ts +89 -0
  169. package/dist/light/components/contextMenu.d.ts.map +1 -0
  170. package/dist/light/components/contextMenu.js +52 -0
  171. package/dist/light/components/dropdown.d.ts +38 -18
  172. package/dist/light/components/dropdown.d.ts.map +1 -1
  173. package/dist/light/components/dropdown.js +21 -31
  174. package/dist/light/components/formField.d.ts +7 -7
  175. package/dist/light/components/formField.js +1 -1
  176. package/dist/light/components/index.d.ts +1 -1
  177. package/dist/light/components/index.d.ts.map +1 -1
  178. package/dist/light/components/index.js +1 -1
  179. package/dist/light/components/input.d.ts +31 -31
  180. package/dist/light/components/input.d.ts.map +1 -1
  181. package/dist/light/components/input.js +14 -15
  182. package/dist/light/components/modal.d.ts +25 -8
  183. package/dist/light/components/modal.d.ts.map +1 -1
  184. package/dist/light/components/modal.js +19 -6
  185. package/dist/light/components/radio.d.ts +23 -18
  186. package/dist/light/components/radio.d.ts.map +1 -1
  187. package/dist/light/components/radio.js +21 -21
  188. package/dist/light/components/select.d.ts +28 -18
  189. package/dist/light/components/select.d.ts.map +1 -1
  190. package/dist/light/components/select.js +31 -26
  191. package/dist/light/components/tabs.d.ts +20 -15
  192. package/dist/light/components/tabs.d.ts.map +1 -1
  193. package/dist/light/components/tabs.js +14 -13
  194. package/dist/light/components/tooltip.d.ts +3 -2
  195. package/dist/light/components/tooltip.d.ts.map +1 -1
  196. package/dist/light/components/tooltip.js +7 -7
  197. package/dist/light/semantic/action.d.ts +30 -28
  198. package/dist/light/semantic/action.d.ts.map +1 -1
  199. package/dist/light/semantic/action.js +38 -36
  200. package/dist/light/semantic/border.d.ts +4 -4
  201. package/dist/light/semantic/border.d.ts.map +1 -1
  202. package/dist/light/semantic/border.js +4 -4
  203. package/dist/light/semantic/control.d.ts +18 -13
  204. package/dist/light/semantic/control.d.ts.map +1 -1
  205. package/dist/light/semantic/control.js +18 -13
  206. package/dist/light/semantic/divider.d.ts +3 -3
  207. package/dist/light/semantic/divider.js +3 -3
  208. package/dist/light/semantic/focus.d.ts +6 -2
  209. package/dist/light/semantic/focus.d.ts.map +1 -1
  210. package/dist/light/semantic/focus.js +6 -2
  211. package/dist/light/semantic/icons.d.ts +10 -11
  212. package/dist/light/semantic/icons.d.ts.map +1 -1
  213. package/dist/light/semantic/icons.js +10 -11
  214. package/dist/light/semantic/index.d.ts +3 -0
  215. package/dist/light/semantic/index.d.ts.map +1 -1
  216. package/dist/light/semantic/index.js +3 -0
  217. package/dist/light/{components → semantic}/menu.d.ts +17 -22
  218. package/dist/light/semantic/menu.d.ts.map +1 -0
  219. package/dist/light/semantic/menu.js +47 -0
  220. package/dist/light/semantic/navigation.d.ts +13 -9
  221. package/dist/light/semantic/navigation.d.ts.map +1 -1
  222. package/dist/light/semantic/navigation.js +15 -9
  223. package/dist/light/semantic/overlay.d.ts +17 -0
  224. package/dist/light/semantic/overlay.d.ts.map +1 -0
  225. package/dist/light/semantic/overlay.js +19 -0
  226. package/dist/light/semantic/shadow.d.ts +8 -0
  227. package/dist/light/semantic/shadow.d.ts.map +1 -0
  228. package/dist/light/semantic/shadow.js +7 -0
  229. package/dist/light/semantic/skeleton.d.ts +2 -2
  230. package/dist/light/semantic/skeleton.js +2 -2
  231. package/dist/light/semantic/status.d.ts +14 -10
  232. package/dist/light/semantic/status.d.ts.map +1 -1
  233. package/dist/light/semantic/status.js +14 -10
  234. package/dist/light/semantic/surface.d.ts +6 -6
  235. package/dist/light/semantic/surface.d.ts.map +1 -1
  236. package/dist/light/semantic/surface.js +7 -7
  237. package/dist/light/semantic/text.d.ts +7 -5
  238. package/dist/light/semantic/text.d.ts.map +1 -1
  239. package/dist/light/semantic/text.js +7 -5
  240. package/dist/light/theme.d.ts +1 -1
  241. package/dist/primitives/colors.d.ts +4 -6
  242. package/dist/primitives/colors.d.ts.map +1 -1
  243. package/dist/primitives/colors.js +4 -6
  244. package/package.json +1 -1
  245. package/dist/dark/components/menu.d.ts.map +0 -1
  246. package/dist/dark/components/menu.js +0 -47
  247. package/dist/highContrast/components/menu.d.ts.map +0 -1
  248. package/dist/highContrast/components/menu.js +0 -48
  249. package/dist/light/components/menu.d.ts.map +0 -1
  250. package/dist/light/components/menu.js +0 -48
@@ -1,31 +1,37 @@
1
1
  import { colors } from '../../primitives/colors.js';
2
+ import { border } from './border.js';
3
+ import { surface } from './surface.js';
2
4
  import { text } from './text.js';
3
5
  export const navigation = {
4
6
  hover: {
5
- bg: colors.vellira[100],
7
+ bg: surface.hover,
6
8
  fg: text.primary,
7
9
  },
8
10
  active: {
9
- bg: colors.vellira[150],
11
+ bg: surface.active,
10
12
  fg: text.primary,
11
13
  },
12
14
  brandHover: {
13
- bg: colors.vellira[100],
14
- fg: colors.primary[900],
15
+ bg: surface.hover,
16
+ fg: text.interactiveHover,
15
17
  },
16
18
  tabHover: {
17
- fg: colors.primary[500],
19
+ fg: text.interactiveHover,
18
20
  },
19
21
  tabFocus: {
20
- ring: colors.warning[500],
22
+ ring: colors.primary[700],
21
23
  },
22
24
  optionHover: {
23
- bg: colors.gray[300],
25
+ bg: surface.hover,
24
26
  fg: text.primary,
25
27
  },
26
28
  optionActive: {
27
- bg: colors.gray[200],
29
+ bg: surface.active,
28
30
  fg: text.primary,
29
31
  },
30
- border: colors.vellira[200],
32
+ triggerHover: {
33
+ bg: surface.hover,
34
+ fg: text.interactiveHover,
35
+ },
36
+ border: border.muted,
31
37
  };
@@ -0,0 +1,17 @@
1
+ export declare const overlay: {
2
+ readonly backdrop: "rgba(24, 21, 33, 0.52)";
3
+ readonly tooltip: {
4
+ readonly bg: "#181521";
5
+ readonly fg: "#FFFFFF";
6
+ readonly border: "#181521";
7
+ };
8
+ readonly popover: {
9
+ readonly bg: "#FFFFFF";
10
+ readonly border: "#E4DDF4";
11
+ };
12
+ readonly modal: {
13
+ readonly bg: "#FFFFFF";
14
+ readonly border: "#E4DDF4";
15
+ };
16
+ };
17
+ //# sourceMappingURL=overlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../src/light/semantic/overlay.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;CAkBV,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { colors } from '../../primitives/colors.js';
2
+ import { border } from './border.js';
3
+ import { surface } from './surface.js';
4
+ export const overlay = {
5
+ backdrop: 'rgba(24, 21, 33, 0.52)',
6
+ tooltip: {
7
+ bg: surface.inverse,
8
+ fg: colors.mono[50],
9
+ border: surface.inverse,
10
+ },
11
+ popover: {
12
+ bg: surface.elevated,
13
+ border: border.muted,
14
+ },
15
+ modal: {
16
+ bg: surface.elevated,
17
+ border: border.muted,
18
+ },
19
+ };
@@ -0,0 +1,8 @@
1
+ export declare const shadow: {
2
+ readonly sm: "0 1px 2px rgba(24, 21, 33, 0.08)";
3
+ readonly md: "0 4px 12px rgba(24, 21, 33, 0.12)";
4
+ readonly lg: "0 12px 40px rgba(24, 21, 33, 0.16), 0 2px 8px rgba(24, 21, 33, 0.1)";
5
+ readonly xl: "0 20px 60px rgba(24, 21, 33, 0.2), 0 4px 16px rgba(24, 21, 33, 0.14)";
6
+ readonly inset: "inset 0 1px 0 rgba(255, 255, 255, 0.55)";
7
+ };
8
+ //# sourceMappingURL=shadow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shadow.d.ts","sourceRoot":"","sources":["../../../src/light/semantic/shadow.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;CAMT,CAAC"}
@@ -0,0 +1,7 @@
1
+ export const shadow = {
2
+ sm: '0 1px 2px rgba(24, 21, 33, 0.08)',
3
+ md: '0 4px 12px rgba(24, 21, 33, 0.12)',
4
+ lg: '0 12px 40px rgba(24, 21, 33, 0.16), 0 2px 8px rgba(24, 21, 33, 0.1)',
5
+ xl: '0 20px 60px rgba(24, 21, 33, 0.2), 0 4px 16px rgba(24, 21, 33, 0.14)',
6
+ inset: 'inset 0 1px 0 rgba(255, 255, 255, 0.55)',
7
+ };
@@ -1,5 +1,5 @@
1
1
  export declare const skeleton: {
2
- readonly base: "#F3F4F6";
3
- readonly highlight: "#E5E7EB";
2
+ readonly base: "#F4F1FB";
3
+ readonly highlight: "#FAF8FF";
4
4
  };
5
5
  //# sourceMappingURL=skeleton.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { colors } from '../../primitives/colors.js';
2
2
  export const skeleton = {
3
- base: colors.gray[100],
4
- highlight: colors.gray[200],
3
+ base: colors.vellira[100],
4
+ highlight: colors.vellira[50],
5
5
  };
@@ -2,26 +2,30 @@ export declare const status: {
2
2
  readonly success: {
3
3
  readonly fg: "#047857";
4
4
  readonly bg: "#ECFDF5";
5
- readonly border: "#6EE7B7";
6
- readonly strong: "#047857";
5
+ readonly border: "#10B981";
6
+ readonly ring: "#10B981";
7
+ readonly strong: "#065F46";
7
8
  };
8
9
  readonly error: {
9
- readonly fg: "#E11D48";
10
- readonly bg: "#FFE4E6";
10
+ readonly fg: "#BE123C";
11
+ readonly bg: "#FFF1F2";
11
12
  readonly border: "#E11D48";
12
- readonly strong: "#BE123C";
13
+ readonly ring: "#F43F5E";
14
+ readonly strong: "#9F1239";
13
15
  };
14
16
  readonly warning: {
15
- readonly fg: "#B45309";
17
+ readonly fg: "#92400E";
16
18
  readonly bg: "#FFFBEB";
17
- readonly border: "#FCD34D";
18
- readonly strong: "#B45309";
19
+ readonly border: "#F59E0B";
20
+ readonly ring: "#F59E0B";
21
+ readonly strong: "#92400E";
19
22
  };
20
23
  readonly info: {
21
24
  readonly fg: "#0C4A6E";
22
25
  readonly bg: "#F0F9FF";
23
- readonly border: "#0EA5E9";
24
- readonly strong: "#0C4A6E";
26
+ readonly border: "#0369A1";
27
+ readonly ring: "#0369A1";
28
+ readonly strong: "#082F49";
25
29
  };
26
30
  };
27
31
  //# sourceMappingURL=status.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/light/semantic/status.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;CA4BT,CAAC"}
1
+ {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/light/semantic/status.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCT,CAAC"}
@@ -3,25 +3,29 @@ export const status = {
3
3
  success: {
4
4
  fg: colors.success[700],
5
5
  bg: colors.success[50],
6
- border: colors.success[300],
7
- strong: colors.success[700],
6
+ border: colors.success[500],
7
+ ring: colors.success[500],
8
+ strong: colors.success[800],
8
9
  },
9
10
  error: {
10
- fg: colors.error[600],
11
- bg: colors.error[100],
11
+ fg: colors.error[700],
12
+ bg: colors.error[50],
12
13
  border: colors.error[600],
13
- strong: colors.error[700],
14
+ ring: colors.error[500],
15
+ strong: colors.error[800],
14
16
  },
15
17
  warning: {
16
- fg: colors.warning[700],
18
+ fg: colors.warning[800],
17
19
  bg: colors.warning[50],
18
- border: colors.warning[300],
19
- strong: colors.warning[700],
20
+ border: colors.warning[500],
21
+ ring: colors.warning[500],
22
+ strong: colors.warning[800],
20
23
  },
21
24
  info: {
22
25
  fg: colors.info[700],
23
26
  bg: colors.info[50],
24
- border: colors.info[300],
25
- strong: colors.info[700],
27
+ border: colors.info[500],
28
+ ring: colors.info[500],
29
+ strong: colors.info[800],
26
30
  },
27
31
  };
@@ -1,13 +1,13 @@
1
1
  export declare const surface: {
2
- readonly default: "#F4F1FB";
3
- readonly muted: "#FAF8FF";
4
- readonly subtle: "#FFFFFF";
5
- readonly elevated: "#D9FBFF";
2
+ readonly default: "#FAF8FF";
3
+ readonly muted: "#F4F1FB";
4
+ readonly subtle: "#FDFCFF";
5
+ readonly elevated: "#FFFFFF";
6
+ readonly hover: "#F4F1FB";
7
+ readonly active: "#EEE8FA";
6
8
  readonly pressed: "#E4DDF4";
7
9
  readonly disabled: "#F4F1FB";
8
10
  readonly danger: string;
9
- readonly hover: "#EEE8FA";
10
- readonly active: "#BBB2D2";
11
11
  readonly inverse: "#181521";
12
12
  };
13
13
  //# sourceMappingURL=surface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../../../src/light/semantic/surface.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO;;;;;;;;;;;CAaV,CAAC"}
1
+ {"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../../../src/light/semantic/surface.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO;;;;;;;;;;;CAcV,CAAC"}
@@ -1,14 +1,14 @@
1
1
  import { colors } from '../../primitives/colors.js';
2
2
  import { withAlpha } from '../../utils/color.js';
3
3
  export const surface = {
4
- default: colors.vellira[100],
5
- muted: colors.vellira[50],
6
- subtle: colors.mono[50],
7
- elevated: colors.secondary[100],
4
+ default: colors.vellira[50],
5
+ muted: colors.vellira[100],
6
+ subtle: colors.vellira[25],
7
+ elevated: colors.mono[50],
8
+ hover: colors.vellira[100],
9
+ active: colors.vellira[150],
8
10
  pressed: colors.vellira[200],
9
11
  disabled: colors.vellira[100],
10
- danger: withAlpha(colors.error[100], 0.5),
11
- hover: colors.vellira[150],
12
- active: colors.vellira[300],
12
+ danger: withAlpha(colors.error[100], 0.7),
13
13
  inverse: colors.vellira[950],
14
14
  };
@@ -1,11 +1,13 @@
1
1
  export declare const text: {
2
- readonly primary: "#4F4867";
2
+ readonly primary: "#3D3754";
3
3
  readonly secondary: "#6B6386";
4
4
  readonly muted: "#958CB0";
5
- readonly disabled: "#9CA3AF";
6
- readonly subtle: "#1A1A1A";
7
- readonly inverse: "#0F0F0F";
8
- readonly onInverse: "#FFFFFF";
5
+ readonly subtle: "#958CB0";
6
+ readonly disabled: "#958CB0";
9
7
  readonly brand: "#5037C8";
8
+ readonly interactive: "#5037C8";
9
+ readonly interactiveHover: "#402C9F";
10
+ readonly interactiveActive: "#342580";
11
+ readonly inverse: "#FFFFFF";
10
12
  };
11
13
  //# sourceMappingURL=text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/light/semantic/text.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;;;;;;;;CAWP,CAAC"}
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/light/semantic/text.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;;;;;;;;;;CAcP,CAAC"}
@@ -1,11 +1,13 @@
1
1
  import { colors } from '../../primitives/colors.js';
2
2
  export const text = {
3
- primary: colors.vellira[600],
3
+ primary: colors.vellira[700],
4
4
  secondary: colors.vellira[500],
5
5
  muted: colors.vellira[400],
6
- disabled: colors.gray[400],
7
- subtle: colors.mono[800],
8
- inverse: colors.mono[900],
9
- onInverse: colors.mono[50],
6
+ subtle: colors.vellira[400],
7
+ disabled: colors.vellira[400],
10
8
  brand: colors.primary[700],
9
+ interactive: colors.primary[700],
10
+ interactiveHover: colors.primary[800],
11
+ interactiveActive: colors.primary[900],
12
+ inverse: colors.mono[50],
11
13
  };
@@ -9,7 +9,7 @@ export declare const lightTheme: {
9
9
  readonly 200: "#D4CCFF";
10
10
  readonly 300: "#B8A8FF";
11
11
  readonly 400: "#9B7CFF";
12
- readonly 500: "#7C5CFF";
12
+ readonly 500: "#7352F8";
13
13
  readonly 600: "#6346E8";
14
14
  readonly 700: "#5037C8";
15
15
  readonly 800: "#402C9F";
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Brand palette used across both Light and Dark themes.
2
+ * Shared color scales used by Light, Dark, and High Contrast themes.
3
3
  *
4
- * 50–200 → light backgrounds / subtle surfaces
5
- * 300–500 → accents / interactive states
6
- * 600–700 → main actions
7
- * 800–950 → dark surfaces / text / pressed states
4
+ * Lower steps are lighter, higher steps are darker.
5
+ * Semantic and component tokens define the actual usage of each step.
8
6
  */
9
7
  export declare const colors: {
10
8
  readonly primary: {
@@ -13,7 +11,7 @@ export declare const colors: {
13
11
  readonly 200: "#D4CCFF";
14
12
  readonly 300: "#B8A8FF";
15
13
  readonly 400: "#9B7CFF";
16
- readonly 500: "#7C5CFF";
14
+ readonly 500: "#7352F8";
17
15
  readonly 600: "#6346E8";
18
16
  readonly 700: "#5037C8";
19
17
  readonly 800: "#402C9F";
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/primitives/colors.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkJT,CAAC"}
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/primitives/colors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkJT,CAAC"}
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Brand palette used across both Light and Dark themes.
2
+ * Shared color scales used by Light, Dark, and High Contrast themes.
3
3
  *
4
- * 50–200 → light backgrounds / subtle surfaces
5
- * 300–500 → accents / interactive states
6
- * 600–700 → main actions
7
- * 800–950 → dark surfaces / text / pressed states
4
+ * Lower steps are lighter, higher steps are darker.
5
+ * Semantic and component tokens define the actual usage of each step.
8
6
  */
9
7
  export const colors = {
10
8
  primary: {
@@ -13,7 +11,7 @@ export const colors = {
13
11
  200: '#D4CCFF',
14
12
  300: '#B8A8FF',
15
13
  400: '#9B7CFF',
16
- 500: '#7C5CFF',
14
+ 500: '#7352F8',
17
15
  600: '#6346E8',
18
16
  700: '#5037C8',
19
17
  800: '#402C9F',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellira-ui/tokens",
3
- "version": "2.25.1",
3
+ "version": "2.26.1",
4
4
  "description": "Design tokens for Vellira Design System",
5
5
  "author": "Roman Bakurov",
6
6
  "license": "MIT",
@@ -1 +0,0 @@
1
- {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/dark/components/menu.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDP,CAAC"}
@@ -1,47 +0,0 @@
1
- import { navigation } from '../semantic/navigation.js';
2
- import { status } from '../semantic/status.js';
3
- import { surface } from '../semantic/surface.js';
4
- import { text } from '../semantic/text.js';
5
- export const menu = {
6
- item: {
7
- default: {
8
- bg: 'transparent',
9
- fg: text.primary,
10
- },
11
- hover: navigation.hover,
12
- active: navigation.active,
13
- focus: {
14
- ring: 'transparent',
15
- },
16
- disabled: {
17
- bg: surface.subtle,
18
- fg: text.disabled,
19
- },
20
- danger: {
21
- default: {
22
- fg: status.error.fg,
23
- },
24
- hover: {
25
- bg: status.error.bg,
26
- fg: status.error.fg,
27
- },
28
- active: {
29
- bg: status.error.border,
30
- fg: status.error.fg,
31
- },
32
- },
33
- },
34
- trigger: {
35
- default: {
36
- fg: text.brand,
37
- },
38
- hover: {
39
- bg: navigation.triggerHover.bg,
40
- fg: navigation.triggerHover.fg,
41
- ring: 'transparent',
42
- },
43
- },
44
- groupLabel: {
45
- fg: text.muted,
46
- },
47
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/highContrast/components/menu.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDP,CAAC"}
@@ -1,48 +0,0 @@
1
- import { action } from '../semantic/action.js';
2
- import { focus } from '../semantic/focus.js';
3
- import { navigation } from '../semantic/navigation.js';
4
- import { surface } from '../semantic/surface.js';
5
- import { text } from '../semantic/text.js';
6
- export const menu = {
7
- item: {
8
- default: {
9
- bg: 'transparent',
10
- fg: text.primary,
11
- },
12
- hover: navigation.itemHover,
13
- active: navigation.itemActive,
14
- focus: {
15
- ring: focus.ring,
16
- },
17
- disabled: {
18
- bg: surface.muted,
19
- fg: text.disabled,
20
- },
21
- danger: {
22
- default: {
23
- fg: action.danger.default.bg,
24
- },
25
- hover: {
26
- bg: action.danger.subtle.bg,
27
- fg: action.danger.subtle.fg,
28
- },
29
- active: {
30
- bg: action.danger.muted.bg,
31
- fg: action.danger.muted.fg,
32
- },
33
- },
34
- },
35
- trigger: {
36
- default: {
37
- fg: text.primary,
38
- },
39
- hover: {
40
- bg: navigation.brandHover.bg,
41
- fg: navigation.brandHover.fg,
42
- ring: 'transparent',
43
- },
44
- },
45
- groupLabel: {
46
- fg: text.muted,
47
- },
48
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/light/components/menu.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDP,CAAC"}
@@ -1,48 +0,0 @@
1
- import { action } from '../semantic/action.js';
2
- import { navigation } from '../semantic/navigation.js';
3
- import { status } from '../semantic/status.js';
4
- import { surface } from '../semantic/surface.js';
5
- import { text } from '../semantic/text.js';
6
- export const menu = {
7
- item: {
8
- default: {
9
- bg: 'transparent',
10
- fg: text.primary,
11
- },
12
- hover: navigation.hover,
13
- active: navigation.active,
14
- focus: {
15
- ring: 'transparent',
16
- },
17
- disabled: {
18
- bg: surface.subtle,
19
- fg: text.disabled,
20
- },
21
- danger: {
22
- default: {
23
- fg: status.error.fg,
24
- },
25
- hover: {
26
- bg: action.danger.subtle.bg,
27
- fg: action.danger.subtle.fg,
28
- },
29
- active: {
30
- bg: action.danger.muted.bg,
31
- fg: action.danger.muted.fg,
32
- },
33
- },
34
- },
35
- trigger: {
36
- default: {
37
- fg: text.brand,
38
- },
39
- hover: {
40
- bg: navigation.brandHover.bg,
41
- fg: navigation.brandHover.fg,
42
- ring: 'transparent',
43
- },
44
- },
45
- groupLabel: {
46
- fg: text.muted,
47
- },
48
- };