@vellira-ui/tokens 2.19.6

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 (262) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +146 -0
  3. package/dist/css/tokens.css +1453 -0
  4. package/dist/dark/components/button.d.ts +59 -0
  5. package/dist/dark/components/button.d.ts.map +1 -0
  6. package/dist/dark/components/button.js +26 -0
  7. package/dist/dark/components/checkbox.d.ts +42 -0
  8. package/dist/dark/components/checkbox.d.ts.map +1 -0
  9. package/dist/dark/components/checkbox.js +34 -0
  10. package/dist/dark/components/dropdown.d.ts +75 -0
  11. package/dist/dark/components/dropdown.d.ts.map +1 -0
  12. package/dist/dark/components/dropdown.js +77 -0
  13. package/dist/dark/components/formField.d.ts +34 -0
  14. package/dist/dark/components/formField.d.ts.map +1 -0
  15. package/dist/dark/components/formField.js +35 -0
  16. package/dist/dark/components/index.d.ts +12 -0
  17. package/dist/dark/components/index.d.ts.map +1 -0
  18. package/dist/dark/components/index.js +11 -0
  19. package/dist/dark/components/input.d.ts +36 -0
  20. package/dist/dark/components/input.d.ts.map +1 -0
  21. package/dist/dark/components/input.js +40 -0
  22. package/dist/dark/components/menu.d.ts +50 -0
  23. package/dist/dark/components/menu.d.ts.map +1 -0
  24. package/dist/dark/components/menu.js +47 -0
  25. package/dist/dark/components/modal.d.ts +31 -0
  26. package/dist/dark/components/modal.d.ts.map +1 -0
  27. package/dist/dark/components/modal.js +34 -0
  28. package/dist/dark/components/radio.d.ts +38 -0
  29. package/dist/dark/components/radio.d.ts.map +1 -0
  30. package/dist/dark/components/radio.js +32 -0
  31. package/dist/dark/components/select.d.ts +63 -0
  32. package/dist/dark/components/select.d.ts.map +1 -0
  33. package/dist/dark/components/select.js +64 -0
  34. package/dist/dark/components/tabs.d.ts +67 -0
  35. package/dist/dark/components/tabs.d.ts.map +1 -0
  36. package/dist/dark/components/tabs.js +72 -0
  37. package/dist/dark/components/tooltip.d.ts +11 -0
  38. package/dist/dark/components/tooltip.d.ts.map +1 -0
  39. package/dist/dark/components/tooltip.js +13 -0
  40. package/dist/dark/semantic/action.d.ts +72 -0
  41. package/dist/dark/semantic/action.d.ts.map +1 -0
  42. package/dist/dark/semantic/action.js +73 -0
  43. package/dist/dark/semantic/border.d.ts +9 -0
  44. package/dist/dark/semantic/border.d.ts.map +1 -0
  45. package/dist/dark/semantic/border.js +9 -0
  46. package/dist/dark/semantic/control.d.ts +30 -0
  47. package/dist/dark/semantic/control.d.ts.map +1 -0
  48. package/dist/dark/semantic/control.js +32 -0
  49. package/dist/dark/semantic/divider.d.ts +6 -0
  50. package/dist/dark/semantic/divider.d.ts.map +1 -0
  51. package/dist/dark/semantic/divider.js +6 -0
  52. package/dist/dark/semantic/focus.d.ts +5 -0
  53. package/dist/dark/semantic/focus.d.ts.map +1 -0
  54. package/dist/dark/semantic/focus.js +5 -0
  55. package/dist/dark/semantic/index.d.ts +11 -0
  56. package/dist/dark/semantic/index.d.ts.map +1 -0
  57. package/dist/dark/semantic/index.js +10 -0
  58. package/dist/dark/semantic/navigation.d.ts +34 -0
  59. package/dist/dark/semantic/navigation.d.ts.map +1 -0
  60. package/dist/dark/semantic/navigation.js +36 -0
  61. package/dist/dark/semantic/skeleton.d.ts +5 -0
  62. package/dist/dark/semantic/skeleton.d.ts.map +1 -0
  63. package/dist/dark/semantic/skeleton.js +5 -0
  64. package/dist/dark/semantic/status.d.ts +27 -0
  65. package/dist/dark/semantic/status.d.ts.map +1 -0
  66. package/dist/dark/semantic/status.js +27 -0
  67. package/dist/dark/semantic/surface.d.ts +10 -0
  68. package/dist/dark/semantic/surface.d.ts.map +1 -0
  69. package/dist/dark/semantic/surface.js +10 -0
  70. package/dist/dark/semantic/text.d.ts +12 -0
  71. package/dist/dark/semantic/text.d.ts.map +1 -0
  72. package/dist/dark/semantic/text.js +12 -0
  73. package/dist/dark/theme.d.ts +228 -0
  74. package/dist/dark/theme.d.ts.map +1 -0
  75. package/dist/dark/theme.js +17 -0
  76. package/dist/generated/color-preview.d.ts +120 -0
  77. package/dist/generated/color-preview.d.ts.map +1 -0
  78. package/dist/generated/color-preview.js +119 -0
  79. package/dist/generated/token-types.d.ts +38 -0
  80. package/dist/generated/token-types.d.ts.map +1 -0
  81. package/dist/generated/token-types.js +2124 -0
  82. package/dist/highContrast/components/button.d.ts +59 -0
  83. package/dist/highContrast/components/button.d.ts.map +1 -0
  84. package/dist/highContrast/components/button.js +26 -0
  85. package/dist/highContrast/components/checkbox.d.ts +42 -0
  86. package/dist/highContrast/components/checkbox.d.ts.map +1 -0
  87. package/dist/highContrast/components/checkbox.js +31 -0
  88. package/dist/highContrast/components/dropdown.d.ts +75 -0
  89. package/dist/highContrast/components/dropdown.d.ts.map +1 -0
  90. package/dist/highContrast/components/dropdown.js +77 -0
  91. package/dist/highContrast/components/formField.d.ts +34 -0
  92. package/dist/highContrast/components/formField.d.ts.map +1 -0
  93. package/dist/highContrast/components/formField.js +35 -0
  94. package/dist/highContrast/components/index.d.ts +12 -0
  95. package/dist/highContrast/components/index.d.ts.map +1 -0
  96. package/dist/highContrast/components/index.js +11 -0
  97. package/dist/highContrast/components/input.d.ts +36 -0
  98. package/dist/highContrast/components/input.d.ts.map +1 -0
  99. package/dist/highContrast/components/input.js +41 -0
  100. package/dist/highContrast/components/menu.d.ts +50 -0
  101. package/dist/highContrast/components/menu.d.ts.map +1 -0
  102. package/dist/highContrast/components/menu.js +48 -0
  103. package/dist/highContrast/components/modal.d.ts +31 -0
  104. package/dist/highContrast/components/modal.d.ts.map +1 -0
  105. package/dist/highContrast/components/modal.js +34 -0
  106. package/dist/highContrast/components/radio.d.ts +38 -0
  107. package/dist/highContrast/components/radio.d.ts.map +1 -0
  108. package/dist/highContrast/components/radio.js +32 -0
  109. package/dist/highContrast/components/select.d.ts +63 -0
  110. package/dist/highContrast/components/select.d.ts.map +1 -0
  111. package/dist/highContrast/components/select.js +65 -0
  112. package/dist/highContrast/components/tabs.d.ts +67 -0
  113. package/dist/highContrast/components/tabs.d.ts.map +1 -0
  114. package/dist/highContrast/components/tabs.js +70 -0
  115. package/dist/highContrast/components/tooltip.d.ts +11 -0
  116. package/dist/highContrast/components/tooltip.d.ts.map +1 -0
  117. package/dist/highContrast/components/tooltip.js +13 -0
  118. package/dist/highContrast/semantic/action.d.ts +72 -0
  119. package/dist/highContrast/semantic/action.d.ts.map +1 -0
  120. package/dist/highContrast/semantic/action.js +73 -0
  121. package/dist/highContrast/semantic/border.d.ts +10 -0
  122. package/dist/highContrast/semantic/border.d.ts.map +1 -0
  123. package/dist/highContrast/semantic/border.js +10 -0
  124. package/dist/highContrast/semantic/control.d.ts +40 -0
  125. package/dist/highContrast/semantic/control.d.ts.map +1 -0
  126. package/dist/highContrast/semantic/control.js +41 -0
  127. package/dist/highContrast/semantic/divider.d.ts +6 -0
  128. package/dist/highContrast/semantic/divider.d.ts.map +1 -0
  129. package/dist/highContrast/semantic/divider.js +6 -0
  130. package/dist/highContrast/semantic/focus.d.ts +5 -0
  131. package/dist/highContrast/semantic/focus.d.ts.map +1 -0
  132. package/dist/highContrast/semantic/focus.js +5 -0
  133. package/dist/highContrast/semantic/index.d.ts +11 -0
  134. package/dist/highContrast/semantic/index.d.ts.map +1 -0
  135. package/dist/highContrast/semantic/index.js +10 -0
  136. package/dist/highContrast/semantic/navigation.d.ts +45 -0
  137. package/dist/highContrast/semantic/navigation.d.ts.map +1 -0
  138. package/dist/highContrast/semantic/navigation.js +47 -0
  139. package/dist/highContrast/semantic/skeleton.d.ts +5 -0
  140. package/dist/highContrast/semantic/skeleton.d.ts.map +1 -0
  141. package/dist/highContrast/semantic/skeleton.js +5 -0
  142. package/dist/highContrast/semantic/status.d.ts +27 -0
  143. package/dist/highContrast/semantic/status.d.ts.map +1 -0
  144. package/dist/highContrast/semantic/status.js +27 -0
  145. package/dist/highContrast/semantic/surface.d.ts +10 -0
  146. package/dist/highContrast/semantic/surface.d.ts.map +1 -0
  147. package/dist/highContrast/semantic/surface.js +10 -0
  148. package/dist/highContrast/semantic/text.d.ts +11 -0
  149. package/dist/highContrast/semantic/text.d.ts.map +1 -0
  150. package/dist/highContrast/semantic/text.js +12 -0
  151. package/dist/highContrast/theme.d.ts +228 -0
  152. package/dist/highContrast/theme.d.ts.map +1 -0
  153. package/dist/highContrast/theme.js +17 -0
  154. package/dist/index.d.ts +97 -0
  155. package/dist/index.d.ts.map +1 -0
  156. package/dist/index.js +11 -0
  157. package/dist/light/components/button.d.ts +59 -0
  158. package/dist/light/components/button.d.ts.map +1 -0
  159. package/dist/light/components/button.js +26 -0
  160. package/dist/light/components/checkbox.d.ts +42 -0
  161. package/dist/light/components/checkbox.d.ts.map +1 -0
  162. package/dist/light/components/checkbox.js +31 -0
  163. package/dist/light/components/dropdown.d.ts +75 -0
  164. package/dist/light/components/dropdown.d.ts.map +1 -0
  165. package/dist/light/components/dropdown.js +77 -0
  166. package/dist/light/components/formField.d.ts +34 -0
  167. package/dist/light/components/formField.d.ts.map +1 -0
  168. package/dist/light/components/formField.js +35 -0
  169. package/dist/light/components/index.d.ts +12 -0
  170. package/dist/light/components/index.d.ts.map +1 -0
  171. package/dist/light/components/index.js +11 -0
  172. package/dist/light/components/input.d.ts +36 -0
  173. package/dist/light/components/input.d.ts.map +1 -0
  174. package/dist/light/components/input.js +41 -0
  175. package/dist/light/components/menu.d.ts +50 -0
  176. package/dist/light/components/menu.d.ts.map +1 -0
  177. package/dist/light/components/menu.js +48 -0
  178. package/dist/light/components/modal.d.ts +31 -0
  179. package/dist/light/components/modal.d.ts.map +1 -0
  180. package/dist/light/components/modal.js +34 -0
  181. package/dist/light/components/radio.d.ts +38 -0
  182. package/dist/light/components/radio.d.ts.map +1 -0
  183. package/dist/light/components/radio.js +32 -0
  184. package/dist/light/components/select.d.ts +63 -0
  185. package/dist/light/components/select.d.ts.map +1 -0
  186. package/dist/light/components/select.js +61 -0
  187. package/dist/light/components/tabs.d.ts +67 -0
  188. package/dist/light/components/tabs.d.ts.map +1 -0
  189. package/dist/light/components/tabs.js +72 -0
  190. package/dist/light/components/tooltip.d.ts +11 -0
  191. package/dist/light/components/tooltip.d.ts.map +1 -0
  192. package/dist/light/components/tooltip.js +13 -0
  193. package/dist/light/semantic/action.d.ts +72 -0
  194. package/dist/light/semantic/action.d.ts.map +1 -0
  195. package/dist/light/semantic/action.js +73 -0
  196. package/dist/light/semantic/border.d.ts +9 -0
  197. package/dist/light/semantic/border.d.ts.map +1 -0
  198. package/dist/light/semantic/border.js +9 -0
  199. package/dist/light/semantic/control.d.ts +30 -0
  200. package/dist/light/semantic/control.d.ts.map +1 -0
  201. package/dist/light/semantic/control.js +31 -0
  202. package/dist/light/semantic/divider.d.ts +6 -0
  203. package/dist/light/semantic/divider.d.ts.map +1 -0
  204. package/dist/light/semantic/divider.js +6 -0
  205. package/dist/light/semantic/focus.d.ts +5 -0
  206. package/dist/light/semantic/focus.d.ts.map +1 -0
  207. package/dist/light/semantic/focus.js +5 -0
  208. package/dist/light/semantic/index.d.ts +11 -0
  209. package/dist/light/semantic/index.d.ts.map +1 -0
  210. package/dist/light/semantic/index.js +10 -0
  211. package/dist/light/semantic/navigation.d.ts +30 -0
  212. package/dist/light/semantic/navigation.d.ts.map +1 -0
  213. package/dist/light/semantic/navigation.js +31 -0
  214. package/dist/light/semantic/skeleton.d.ts +5 -0
  215. package/dist/light/semantic/skeleton.d.ts.map +1 -0
  216. package/dist/light/semantic/skeleton.js +5 -0
  217. package/dist/light/semantic/status.d.ts +27 -0
  218. package/dist/light/semantic/status.d.ts.map +1 -0
  219. package/dist/light/semantic/status.js +27 -0
  220. package/dist/light/semantic/surface.d.ts +10 -0
  221. package/dist/light/semantic/surface.d.ts.map +1 -0
  222. package/dist/light/semantic/surface.js +10 -0
  223. package/dist/light/semantic/text.d.ts +11 -0
  224. package/dist/light/semantic/text.d.ts.map +1 -0
  225. package/dist/light/semantic/text.js +12 -0
  226. package/dist/light/theme.d.ts +228 -0
  227. package/dist/light/theme.d.ts.map +1 -0
  228. package/dist/light/theme.js +17 -0
  229. package/dist/primitives/colors.d.ts +142 -0
  230. package/dist/primitives/colors.d.ts.map +1 -0
  231. package/dist/primitives/colors.js +141 -0
  232. package/dist/primitives/selectionControl.d.ts +1 -0
  233. package/dist/primitives/selectionControl.d.ts.map +1 -0
  234. package/dist/primitives/selectionControl.js +1 -0
  235. package/dist/semantic/index.d.ts +3 -0
  236. package/dist/semantic/index.d.ts.map +1 -0
  237. package/dist/semantic/index.js +2 -0
  238. package/dist/semantic/overlay.d.ts +5 -0
  239. package/dist/semantic/overlay.d.ts.map +1 -0
  240. package/dist/semantic/overlay.js +4 -0
  241. package/dist/semantic/selection.d.ts +5 -0
  242. package/dist/semantic/selection.d.ts.map +1 -0
  243. package/dist/semantic/selection.js +5 -0
  244. package/dist/tokens/index.d.ts +6 -0
  245. package/dist/tokens/index.d.ts.map +1 -0
  246. package/dist/tokens/index.js +5 -0
  247. package/dist/tokens/radius.d.ts +8 -0
  248. package/dist/tokens/radius.d.ts.map +1 -0
  249. package/dist/tokens/radius.js +7 -0
  250. package/dist/tokens/shadows.d.ts +27 -0
  251. package/dist/tokens/shadows.d.ts.map +1 -0
  252. package/dist/tokens/shadows.js +27 -0
  253. package/dist/tokens/spacing.d.ts +14 -0
  254. package/dist/tokens/spacing.d.ts.map +1 -0
  255. package/dist/tokens/spacing.js +13 -0
  256. package/dist/tokens/typography.d.ts +30 -0
  257. package/dist/tokens/typography.d.ts.map +1 -0
  258. package/dist/tokens/typography.js +29 -0
  259. package/dist/tokens/zIndex.d.ts +9 -0
  260. package/dist/tokens/zIndex.d.ts.map +1 -0
  261. package/dist/tokens/zIndex.js +8 -0
  262. package/package.json +46 -0
@@ -0,0 +1,141 @@
1
+ /**
2
+ * Brand palette used across both Light and Dark themes.
3
+ *
4
+ * 25–250 → Light surfaces
5
+ * 300–950 → Dark surfaces & text
6
+ */
7
+ export const colors = {
8
+ primary: {
9
+ 50: '#EEF0FF',
10
+ 100: '#DDD6FE',
11
+ 200: '#C4B5FD',
12
+ 300: '#A78BFA',
13
+ 400: '#8B7CF6',
14
+ 500: '#7C6CF2',
15
+ 600: '#6D5BD0',
16
+ 700: '#5B4BEA',
17
+ 800: '#4936D9',
18
+ 900: '#4338CA',
19
+ 950: '#3B2BBF',
20
+ },
21
+ secondary: {
22
+ 50: '#F0F1FF',
23
+ 100: '#D8DAFF',
24
+ 200: '#B8BBF2',
25
+ 300: '#9EA2EA',
26
+ 400: '#7B80D8',
27
+ 500: '#4C4F8F',
28
+ 600: '#5F64B8',
29
+ 700: '#555AA8',
30
+ 800: '#494F95',
31
+ 900: '#42477C',
32
+ 950: '#373B68',
33
+ },
34
+ vellira: {
35
+ 25: '#FDFCFF',
36
+ 50: '#FAF8FF',
37
+ 100: '#F4F1FB',
38
+ 150: '#EEE8FA',
39
+ 200: '#E8E2F3',
40
+ 250: '#D8D3E8',
41
+ 300: '#A8A1BA',
42
+ 400: '#746F86',
43
+ 500: '#413957',
44
+ 600: '#3A334D',
45
+ 700: '#312C44',
46
+ 800: '#29253A',
47
+ 900: '#211E2E',
48
+ 950: '#1B1726',
49
+ },
50
+ info: {
51
+ 50: '#F0F9FF',
52
+ 100: '#EFF6FF',
53
+ 200: '#DBEAFE',
54
+ 300: '#93C5FD',
55
+ 400: '#4DA3FF',
56
+ 500: '#7BBCFF',
57
+ 600: '#3399FF',
58
+ 700: '#0EA5E9',
59
+ 800: '#0284C7',
60
+ 900: '#002B55',
61
+ 950: '#102A43',
62
+ },
63
+ success: {
64
+ 50: '#ECFDF5',
65
+ 100: '#D1FAE5',
66
+ 200: '#A7F3D0',
67
+ 300: '#9AFFB8',
68
+ 400: '#4ADE80',
69
+ 500: '#00B956',
70
+ 600: '#22C55E',
71
+ 700: '#008F6A',
72
+ 800: '#00785A',
73
+ 900: '#166534',
74
+ 950: '#0F2F26',
75
+ },
76
+ error: {
77
+ 50: '#FEF2F2',
78
+ 100: '#FFF1F2',
79
+ 200: '#FDA4AF',
80
+ 300: '#FF8A8A',
81
+ 400: '#FB7185',
82
+ 500: '#F43F5E',
83
+ 600: '#E11D48',
84
+ 700: '#DC2626',
85
+ 800: '#B91C1C',
86
+ 900: '#9F1239',
87
+ 950: '#4C0519',
88
+ },
89
+ warning: {
90
+ 50: '#FFF7ED',
91
+ 100: '#FFFBEB',
92
+ 200: '#FEF3C7',
93
+ 300: '#FCD34D',
94
+ 400: '#FFFF99',
95
+ 500: '#FFFF00',
96
+ 600: '#FFEA00',
97
+ 700: '#C05621',
98
+ 800: '#A74308',
99
+ 900: '#92400E',
100
+ 950: '#3A2412',
101
+ },
102
+ gray: {
103
+ 50: '#F9FAFB',
104
+ 100: '#F3F4F6',
105
+ 200: '#E5E7EB',
106
+ 300: '#D1D5DB',
107
+ 400: '#9CA3AF',
108
+ 500: '#6B7280',
109
+ 600: '#4B5563',
110
+ 700: '#374151',
111
+ 800: '#1F2937',
112
+ 900: '#111827',
113
+ 950: '#0B1120',
114
+ },
115
+ grayBlue: {
116
+ 50: '#F7FBFF',
117
+ 100: '#EDF5FF',
118
+ 200: '#D8E4F2',
119
+ 300: '#C4D0DD',
120
+ 400: '#98A8BD',
121
+ 500: '#6B7F99',
122
+ 600: '#4B5F7A',
123
+ 700: '#33435F',
124
+ 800: '#1E2A44',
125
+ 900: '#111C2E',
126
+ 950: '#0B1120',
127
+ },
128
+ mono: {
129
+ 50: '#FFFFFF',
130
+ 100: '#F9FAFB',
131
+ 200: '#F3F4F6',
132
+ 300: '#E5E7EB',
133
+ 400: '#D1D5DB',
134
+ 500: '#9CA3AF',
135
+ 600: '#737373',
136
+ 700: '#4B5563',
137
+ 800: '#1A1A1A',
138
+ 900: '#0F0F0F',
139
+ 950: '#000000',
140
+ },
141
+ };
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=selectionControl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectionControl.d.ts","sourceRoot":"","sources":["../../src/primitives/selectionControl.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,3 @@
1
+ export { overlay } from './overlay.js';
2
+ export { selection } from './selection.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/semantic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { overlay } from './overlay.js';
2
+ export { selection } from './selection.js';
@@ -0,0 +1,5 @@
1
+ export declare const overlay: {
2
+ readonly backdrop: "rgba(0, 0, 0, 0.72)";
3
+ readonly backdropLight: "rgba(255, 255, 255, 0.12)";
4
+ };
5
+ //# sourceMappingURL=overlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/semantic/overlay.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;CAGV,CAAC"}
@@ -0,0 +1,4 @@
1
+ export const overlay = {
2
+ backdrop: 'rgba(0, 0, 0, 0.72)',
3
+ backdropLight: 'rgba(255, 255, 255, 0.12)',
4
+ };
@@ -0,0 +1,5 @@
1
+ export declare const selection: {
2
+ readonly background: "#5B4BEA";
3
+ readonly foreground: "#FFFFFF";
4
+ };
5
+ //# sourceMappingURL=selection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../src/semantic/selection.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;CAGZ,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { colors } from '../primitives/colors.js';
2
+ export const selection = {
3
+ background: colors.primary[700],
4
+ foreground: colors.mono[50],
5
+ };
@@ -0,0 +1,6 @@
1
+ export * from './radius.js';
2
+ export * from './shadows.js';
3
+ export * from './spacing.js';
4
+ export * from './typography.js';
5
+ export * from './zIndex.js';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tokens/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './radius.js';
2
+ export * from './shadows.js';
3
+ export * from './spacing.js';
4
+ export * from './typography.js';
5
+ export * from './zIndex.js';
@@ -0,0 +1,8 @@
1
+ export declare const radius: {
2
+ readonly sm: 4;
3
+ readonly md: 8;
4
+ readonly lg: 12;
5
+ readonly xl: 16;
6
+ readonly full: 999;
7
+ };
8
+ //# sourceMappingURL=radius.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radius.d.ts","sourceRoot":"","sources":["../../src/tokens/radius.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;CAMT,CAAC"}
@@ -0,0 +1,7 @@
1
+ export const radius = {
2
+ sm: 4,
3
+ md: 8,
4
+ lg: 12,
5
+ xl: 16,
6
+ full: 999,
7
+ };
@@ -0,0 +1,27 @@
1
+ export declare const shadows: {
2
+ readonly sm: {
3
+ readonly x: 0;
4
+ readonly y: 1;
5
+ readonly blur: 3;
6
+ readonly color: "#000000";
7
+ readonly opacity: 0.04;
8
+ readonly elevation: 1;
9
+ };
10
+ readonly md: {
11
+ readonly x: 0;
12
+ readonly y: 6;
13
+ readonly blur: 16;
14
+ readonly color: "#000000";
15
+ readonly opacity: 0.08;
16
+ readonly elevation: 4;
17
+ };
18
+ readonly lg: {
19
+ readonly x: 0;
20
+ readonly y: 12;
21
+ readonly blur: 32;
22
+ readonly color: "#000000";
23
+ readonly opacity: 0.1;
24
+ readonly elevation: 8;
25
+ };
26
+ };
27
+ //# sourceMappingURL=shadows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shadows.d.ts","sourceRoot":"","sources":["../../src/tokens/shadows.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;CA2BV,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { colors } from '../primitives/colors.js';
2
+ export const shadows = {
3
+ sm: {
4
+ x: 0,
5
+ y: 1,
6
+ blur: 3,
7
+ color: colors.mono[950],
8
+ opacity: 0.04,
9
+ elevation: 1,
10
+ },
11
+ md: {
12
+ x: 0,
13
+ y: 6,
14
+ blur: 16,
15
+ color: colors.mono[950],
16
+ opacity: 0.08,
17
+ elevation: 4,
18
+ },
19
+ lg: {
20
+ x: 0,
21
+ y: 12,
22
+ blur: 32,
23
+ color: colors.mono[950],
24
+ opacity: 0.1,
25
+ elevation: 8,
26
+ },
27
+ };
@@ -0,0 +1,14 @@
1
+ export declare const spacing: {
2
+ readonly 0: 0;
3
+ readonly 1: 4;
4
+ readonly 2: 8;
5
+ readonly 3: 12;
6
+ readonly 4: 16;
7
+ readonly 5: 20;
8
+ readonly 6: 24;
9
+ readonly 8: 32;
10
+ readonly 10: 40;
11
+ readonly 12: 48;
12
+ readonly 16: 64;
13
+ };
14
+ //# sourceMappingURL=spacing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacing.d.ts","sourceRoot":"","sources":["../../src/tokens/spacing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYV,CAAC"}
@@ -0,0 +1,13 @@
1
+ export const spacing = {
2
+ 0: 0,
3
+ 1: 4,
4
+ 2: 8,
5
+ 3: 12,
6
+ 4: 16,
7
+ 5: 20,
8
+ 6: 24,
9
+ 8: 32,
10
+ 10: 40,
11
+ 12: 48,
12
+ 16: 64,
13
+ };
@@ -0,0 +1,30 @@
1
+ export declare const typography: {
2
+ readonly family: {
3
+ readonly base: "KantumruyPro";
4
+ readonly extraLight: "KantumruyPro-ExtraLight";
5
+ readonly regular: "KantumruyPro-Regular";
6
+ readonly medium: "KantumruyPro-Medium";
7
+ readonly semibold: "KantumruyPro-SemiBold";
8
+ };
9
+ readonly size: {
10
+ readonly xs: 12;
11
+ readonly sm: 14;
12
+ readonly md: 16;
13
+ readonly lg: 20;
14
+ readonly xl: 24;
15
+ readonly xxl: 32;
16
+ };
17
+ readonly weight: {
18
+ readonly light: "200";
19
+ readonly regular: "400";
20
+ readonly medium: "600";
21
+ readonly semibold: "700";
22
+ };
23
+ readonly lineHeight: {
24
+ readonly sm: 16;
25
+ readonly md: 24;
26
+ readonly lg: 32;
27
+ readonly xl: 40;
28
+ };
29
+ };
30
+ //# sourceMappingURL=typography.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/tokens/typography.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Bb,CAAC"}
@@ -0,0 +1,29 @@
1
+ export const typography = {
2
+ family: {
3
+ base: 'KantumruyPro',
4
+ extraLight: 'KantumruyPro-ExtraLight',
5
+ regular: 'KantumruyPro-Regular',
6
+ medium: 'KantumruyPro-Medium',
7
+ semibold: 'KantumruyPro-SemiBold',
8
+ },
9
+ size: {
10
+ xs: 12,
11
+ sm: 14,
12
+ md: 16,
13
+ lg: 20,
14
+ xl: 24,
15
+ xxl: 32,
16
+ },
17
+ weight: {
18
+ light: '200',
19
+ regular: '400',
20
+ medium: '600',
21
+ semibold: '700',
22
+ },
23
+ lineHeight: {
24
+ sm: 16,
25
+ md: 24,
26
+ lg: 32,
27
+ xl: 40,
28
+ },
29
+ };
@@ -0,0 +1,9 @@
1
+ export declare const zIndex: {
2
+ readonly dropdown: 100;
3
+ readonly popover: 200;
4
+ readonly tooltip: 300;
5
+ readonly backdrop: 900;
6
+ readonly modal: 1000;
7
+ readonly toast: 1100;
8
+ };
9
+ //# sourceMappingURL=zIndex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zIndex.d.ts","sourceRoot":"","sources":["../../src/tokens/zIndex.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;CAOT,CAAC"}
@@ -0,0 +1,8 @@
1
+ export const zIndex = {
2
+ dropdown: 100,
3
+ popover: 200,
4
+ tooltip: 300,
5
+ backdrop: 900,
6
+ modal: 1000,
7
+ toast: 1100,
8
+ };
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@vellira-ui/tokens",
3
+ "version": "2.19.6",
4
+ "description": "Design tokens for Vellira Design System",
5
+ "author": "Roman Bakurov",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/vellira-dev/vellira",
10
+ "directory": "packages/tokens"
11
+ },
12
+ "private": false,
13
+ "type": "module",
14
+ "sideEffects": [
15
+ "**/*.css"
16
+ ],
17
+ "main": "./dist/index.js",
18
+ "types": "./dist/index.d.ts",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "import": "./dist/index.js"
23
+ },
24
+ "./css": "./dist/css/tokens.css"
25
+ },
26
+ "files": [
27
+ "dist",
28
+ "README.md",
29
+ "LICENSE"
30
+ ],
31
+ "publishConfig": {
32
+ "access": "public"
33
+ },
34
+ "devDependencies": {
35
+ "vitest": "^4.1.9"
36
+ },
37
+ "scripts": {
38
+ "clean": "node --input-type=module -e \"import fs from 'node:fs'; fs.rmSync('dist', { recursive: true, force: true })\"",
39
+ "generate:types": "tsx scripts/generate-token-types.ts",
40
+ "generate:types:check": "tsx scripts/generate-token-types.ts --check",
41
+ "build:tokens": "pnpm run generate:types && tsx scripts/generate-css.ts",
42
+ "build": "pnpm run clean && pnpm run build:tokens && tsc -p tsconfig.build.json",
43
+ "typecheck": "pnpm run generate:types:check && tsc -p tsconfig.json --noEmit",
44
+ "test": "pnpm run generate:types:check && vitest run"
45
+ }
46
+ }