@kimdw-rtk/ui 0.0.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 (158) hide show
  1. package/.babelrc +12 -0
  2. package/.turbo/turbo-check-types.log +2 -0
  3. package/.turbo/turbo-lint.log +12 -0
  4. package/.turbo/turbo-test.log +4084 -0
  5. package/.vscode/settings.json +4 -0
  6. package/eslint.config.mjs +4 -0
  7. package/jest.config.json +10 -0
  8. package/jest.setup.js +2 -0
  9. package/package.json +53 -0
  10. package/src/components/Accordion/Accordion.css.ts +29 -0
  11. package/src/components/Accordion/Accordion.spec.tsx +6 -0
  12. package/src/components/Accordion/Accordion.tsx +44 -0
  13. package/src/components/Accordion/AccordionContent.css.ts +29 -0
  14. package/src/components/Accordion/AccordionContent.tsx +87 -0
  15. package/src/components/Accordion/AccordionContext.ts +9 -0
  16. package/src/components/Accordion/AccordionTrigger.css.ts +46 -0
  17. package/src/components/Accordion/AccordionTrigger.tsx +41 -0
  18. package/src/components/Accordion/index.ts +3 -0
  19. package/src/components/Alert/index.tsx +25 -0
  20. package/src/components/Box/Box.css.ts +18 -0
  21. package/src/components/Box/Box.spec.tsx +6 -0
  22. package/src/components/Box/index.tsx +41 -0
  23. package/src/components/Button/Button.css.ts +241 -0
  24. package/src/components/Button/Button.spec.tsx +30 -0
  25. package/src/components/Button/index.tsx +60 -0
  26. package/src/components/Card/Card.css.ts +93 -0
  27. package/src/components/Card/Card.spec.tsx +24 -0
  28. package/src/components/Card/Card.tsx +41 -0
  29. package/src/components/Card/CardContent.css.ts +8 -0
  30. package/src/components/Card/CardContent.tsx +23 -0
  31. package/src/components/Card/CardInteraction.css.ts +11 -0
  32. package/src/components/Card/CardInteraction.tsx +36 -0
  33. package/src/components/Card/CardThumbnail.css.ts +6 -0
  34. package/src/components/Card/CardThumbnail.tsx +23 -0
  35. package/src/components/Card/index.ts +4 -0
  36. package/src/components/Chip/Chip.css.ts +75 -0
  37. package/src/components/Chip/Chip.spec.tsx +6 -0
  38. package/src/components/Chip/Chip.tsx +37 -0
  39. package/src/components/Chip/index.ts +1 -0
  40. package/src/components/Confirm/index.tsx +44 -0
  41. package/src/components/Dialog/Dialog.css.ts +25 -0
  42. package/src/components/Dialog/Dialog.spec.tsx +26 -0
  43. package/src/components/Dialog/Dialog.tsx +30 -0
  44. package/src/components/Dialog/DialogContent.css.ts +16 -0
  45. package/src/components/Dialog/DialogContent.tsx +26 -0
  46. package/src/components/Dialog/DialogFooter.css.ts +20 -0
  47. package/src/components/Dialog/DialogFooter.tsx +26 -0
  48. package/src/components/Dialog/DialogHeader.css.ts +31 -0
  49. package/src/components/Dialog/DialogHeader.tsx +37 -0
  50. package/src/components/Dialog/index.ts +4 -0
  51. package/src/components/Navigation/Navigation.spec.tsx +19 -0
  52. package/src/components/Navigation/NavigationAside.css.ts +7 -0
  53. package/src/components/Navigation/NavigationAside.tsx +23 -0
  54. package/src/components/Navigation/NavigationBar.css.ts +42 -0
  55. package/src/components/Navigation/NavigationBar.tsx +25 -0
  56. package/src/components/Navigation/NavigationContainer.css.ts +11 -0
  57. package/src/components/Navigation/NavigationContainer.tsx +26 -0
  58. package/src/components/Navigation/NavigationDrawer.css.ts +61 -0
  59. package/src/components/Navigation/NavigationDrawer.tsx +67 -0
  60. package/src/components/Navigation/NavigationItem.css.ts +43 -0
  61. package/src/components/Navigation/NavigationItem.tsx +24 -0
  62. package/src/components/Navigation/NavigationLogo.css.ts +5 -0
  63. package/src/components/Navigation/NavigationLogo.tsx +28 -0
  64. package/src/components/Navigation/NavigationMenu.css.ts +23 -0
  65. package/src/components/Navigation/NavigationMenu.tsx +25 -0
  66. package/src/components/Navigation/index.ts +7 -0
  67. package/src/components/Range/Range.css.ts +132 -0
  68. package/src/components/Range/Range.spec.tsx +6 -0
  69. package/src/components/Range/Range.tsx +90 -0
  70. package/src/components/Range/index.ts +1 -0
  71. package/src/components/ScrollArea/ScrollArea.css.ts +40 -0
  72. package/src/components/ScrollArea/ScrollArea.spec.tsx +6 -0
  73. package/src/components/ScrollArea/ScrollArea.tsx +68 -0
  74. package/src/components/ScrollArea/index.ts +1 -0
  75. package/src/components/Select/Select.css.ts +22 -0
  76. package/src/components/Select/Select.spec.tsx +65 -0
  77. package/src/components/Select/Select.tsx +111 -0
  78. package/src/components/Select/SelectContext.ts +59 -0
  79. package/src/components/Select/SelectOption.css.ts +14 -0
  80. package/src/components/Select/SelectOption.tsx +40 -0
  81. package/src/components/Select/SelectOptionList.css.ts +68 -0
  82. package/src/components/Select/SelectOptionList.tsx +59 -0
  83. package/src/components/Select/SelectTrigger.css.ts +73 -0
  84. package/src/components/Select/SelectTrigger.tsx +49 -0
  85. package/src/components/Select/index.tsx +2 -0
  86. package/src/components/Skeleton/Skeleton.css.ts +26 -0
  87. package/src/components/Skeleton/Skeleton.spec.tsx +6 -0
  88. package/src/components/Skeleton/index.tsx +27 -0
  89. package/src/components/Table/Table.css.ts +10 -0
  90. package/src/components/Table/Table.spec.tsx +12 -0
  91. package/src/components/Table/Table.tsx +27 -0
  92. package/src/components/Table/TableBody.tsx +14 -0
  93. package/src/components/Table/TableCell.css.ts +43 -0
  94. package/src/components/Table/TableCell.tsx +30 -0
  95. package/src/components/Table/TableHead.css.ts +10 -0
  96. package/src/components/Table/TableHead.tsx +30 -0
  97. package/src/components/Table/TableHeader.tsx +14 -0
  98. package/src/components/Table/TableRow.css.ts +3 -0
  99. package/src/components/Table/TableRow.tsx +24 -0
  100. package/src/components/Table/index.ts +6 -0
  101. package/src/components/Tabs/Tabs.spec.tsx +46 -0
  102. package/src/components/Tabs/Tabs.tsx +34 -0
  103. package/src/components/Tabs/TabsContent.tsx +32 -0
  104. package/src/components/Tabs/TabsList.css.ts +11 -0
  105. package/src/components/Tabs/TabsList.tsx +25 -0
  106. package/src/components/Tabs/TabsProvider.tsx +17 -0
  107. package/src/components/Tabs/TabsTrigger.css.ts +38 -0
  108. package/src/components/Tabs/TabsTrigger.tsx +43 -0
  109. package/src/components/Tabs/index.ts +4 -0
  110. package/src/components/TextField/TextField.css.ts +81 -0
  111. package/src/components/TextField/TextField.spec.tsx +6 -0
  112. package/src/components/TextField/index.tsx +38 -0
  113. package/src/components/Toast/Toast.css.ts +79 -0
  114. package/src/components/Toast/Toast.spec.tsx +6 -0
  115. package/src/components/Toast/index.tsx +48 -0
  116. package/src/components/Typography/Typography.css.ts +17 -0
  117. package/src/components/Typography/Typography.spec.tsx +35 -0
  118. package/src/components/Typography/index.tsx +57 -0
  119. package/src/components/index.ts +18 -0
  120. package/src/contexts/UIProvider.tsx +30 -0
  121. package/src/contexts/index.ts +1 -0
  122. package/src/hooks/index.ts +5 -0
  123. package/src/hooks/useDialog/index.tsx +51 -0
  124. package/src/hooks/useDialog/useDialog.spec.tsx +80 -0
  125. package/src/hooks/useMouseScroll/index.ts +63 -0
  126. package/src/hooks/usePointerSlider/index.ts +79 -0
  127. package/src/hooks/useRipple/index.tsx +152 -0
  128. package/src/hooks/useRipple/ripple.css.ts +40 -0
  129. package/src/hooks/useToast/ToastContainer.css.ts +12 -0
  130. package/src/hooks/useToast/ToastContainer.tsx +11 -0
  131. package/src/hooks/useToast/ToastProvider.tsx +131 -0
  132. package/src/hooks/useToast/index.ts +15 -0
  133. package/src/index.ts +8 -0
  134. package/src/styles/globalStyle.css.ts +36 -0
  135. package/src/styles/index.ts +4 -0
  136. package/src/styles/layers.css.ts +4 -0
  137. package/src/styles/overlay.css.ts +40 -0
  138. package/src/styles/sprinkles.css.ts +149 -0
  139. package/src/styles/sx.ts +13 -0
  140. package/src/tests/uiTest.tsx +54 -0
  141. package/src/themes/darkTheme.css.ts +30 -0
  142. package/src/themes/index.ts +3 -0
  143. package/src/themes/lightTheme.css.ts +30 -0
  144. package/src/themes/theme.css.ts +32 -0
  145. package/src/tokens/index.ts +5 -0
  146. package/src/tokens/scale/color.ts +604 -0
  147. package/src/tokens/semantic/breakpoint.ts +6 -0
  148. package/src/tokens/semantic/color.ts +10 -0
  149. package/src/tokens/semantic/spacing.ts +9 -0
  150. package/src/tokens/semantic/typography.ts +32 -0
  151. package/src/types/index.ts +1 -0
  152. package/src/types/ui.types.ts +26 -0
  153. package/src/utils/index.ts +1 -0
  154. package/src/utils/sprinklesUtils.ts +28 -0
  155. package/src/utils/styleUtils.css.ts +109 -0
  156. package/tsconfig.json +11 -0
  157. package/turbo/generators/config.ts +30 -0
  158. package/turbo/generators/templates/component.hbs +8 -0
@@ -0,0 +1,604 @@
1
+ export const SCALE_COLOR = [
2
+ 'red',
3
+ 'orange',
4
+ 'amber',
5
+ 'yellow',
6
+ 'lime',
7
+ 'green',
8
+ 'emerald',
9
+ 'teal',
10
+ 'cyan',
11
+ 'sky',
12
+ 'blue',
13
+ 'indigo',
14
+ 'violet',
15
+ 'purple',
16
+ 'fuchsia',
17
+ 'pink',
18
+ 'rose',
19
+ 'slate',
20
+ 'gray',
21
+ 'zinc',
22
+ 'neutral',
23
+ 'stone',
24
+ ] as const;
25
+
26
+ export type ScaleColor = (typeof SCALE_COLOR)[number];
27
+
28
+ export const darkColor = {
29
+ red: {
30
+ 50: '238, 224, 224',
31
+ 100: '232, 210, 210',
32
+ 200: '224, 186, 186',
33
+ 300: '214, 148, 148',
34
+ 400: '205, 105, 105',
35
+ 500: '186, 64, 64',
36
+ 600: '165, 42, 42',
37
+ 700: '140, 28, 28',
38
+ 800: '115, 25, 25',
39
+ 900: '92, 22, 22',
40
+ 950: '55, 10, 10',
41
+ },
42
+ orange: {
43
+ 50: '240, 230, 215',
44
+ 100: '234, 214, 190',
45
+ 200: '225, 190, 150',
46
+ 300: '212, 158, 100',
47
+ 400: '200, 120, 60',
48
+ 500: '184, 90, 25',
49
+ 600: '160, 70, 20',
50
+ 700: '138, 55, 20',
51
+ 800: '112, 44, 18',
52
+ 900: '92, 38, 18',
53
+ 950: '55, 20, 8',
54
+ },
55
+ amber: {
56
+ 50: '240, 230, 205',
57
+ 100: '234, 214, 170',
58
+ 200: '224, 190, 130',
59
+ 300: '210, 160, 85',
60
+ 400: '194, 140, 40',
61
+ 500: '172, 116, 20',
62
+ 600: '150, 94, 14',
63
+ 700: '128, 74, 12',
64
+ 800: '104, 58, 14',
65
+ 900: '84, 46, 14',
66
+ 950: '52, 22, 6',
67
+ },
68
+ yellow: {
69
+ 50: '240, 236, 210',
70
+ 100: '236, 226, 180',
71
+ 200: '226, 206, 140',
72
+ 300: '214, 188, 90',
73
+ 400: '198, 166, 40',
74
+ 500: '172, 136, 20',
75
+ 600: '148, 112, 10',
76
+ 700: '122, 90, 12',
77
+ 800: '100, 72, 14',
78
+ 900: '80, 60, 18',
79
+ 950: '50, 30, 8',
80
+ },
81
+ lime: {
82
+ 50: '224, 238, 210',
83
+ 100: '210, 230, 180',
84
+ 200: '194, 214, 140',
85
+ 300: '170, 194, 100',
86
+ 400: '146, 172, 64',
87
+ 500: '120, 144, 34',
88
+ 600: '98, 120, 24',
89
+ 700: '80, 98, 20',
90
+ 800: '66, 82, 20',
91
+ 900: '56, 70, 20',
92
+ 950: '28, 42, 10',
93
+ },
94
+ green: {
95
+ 50: '220, 238, 224',
96
+ 100: '200, 232, 210',
97
+ 200: '176, 220, 188',
98
+ 300: '138, 198, 150',
99
+ 400: '100, 176, 112',
100
+ 500: '68, 150, 82',
101
+ 600: '48, 124, 62',
102
+ 700: '34, 100, 50',
103
+ 800: '28, 84, 44',
104
+ 900: '22, 70, 38',
105
+ 950: '8, 40, 20',
106
+ },
107
+ emerald: {
108
+ 50: '220, 236, 226',
109
+ 100: '200, 224, 210',
110
+ 200: '172, 210, 186',
111
+ 300: '132, 190, 160',
112
+ 400: '94, 168, 136',
113
+ 500: '60, 144, 112',
114
+ 600: '42, 120, 94',
115
+ 700: '34, 96, 80',
116
+ 800: '28, 78, 66',
117
+ 900: '20, 62, 54',
118
+ 950: '10, 38, 34',
119
+ },
120
+ teal: {
121
+ 50: '220, 236, 232',
122
+ 100: '200, 226, 212',
123
+ 200: '170, 212, 188',
124
+ 300: '130, 192, 168',
125
+ 400: '96, 170, 150',
126
+ 500: '64, 144, 132',
127
+ 600: '48, 120, 112',
128
+ 700: '38, 96, 90',
129
+ 800: '30, 80, 76',
130
+ 900: '24, 66, 64',
131
+ 950: '12, 44, 44',
132
+ },
133
+ cyan: {
134
+ 50: '220, 238, 240',
135
+ 100: '198, 226, 228',
136
+ 200: '166, 212, 212',
137
+ 300: '120, 192, 192',
138
+ 400: '84, 168, 170',
139
+ 500: '52, 144, 152',
140
+ 600: '40, 120, 132',
141
+ 700: '32, 96, 108',
142
+ 800: '28, 80, 90',
143
+ 900: '24, 66, 76',
144
+ 950: '12, 48, 60',
145
+ },
146
+ sky: {
147
+ 50: '224, 238, 244',
148
+ 100: '206, 228, 236',
149
+ 200: '176, 212, 224',
150
+ 300: '134, 190, 212',
151
+ 400: '100, 168, 200',
152
+ 500: '70, 142, 180',
153
+ 600: '48, 116, 156',
154
+ 700: '36, 92, 124',
155
+ 800: '32, 78, 108',
156
+ 900: '28, 64, 92',
157
+ 950: '16, 44, 70',
158
+ },
159
+ blue: {
160
+ 50: '224, 234, 244',
161
+ 100: '200, 220, 236',
162
+ 200: '176, 204, 224',
163
+ 300: '142, 180, 210',
164
+ 400: '100, 152, 190',
165
+ 500: '72, 126, 168',
166
+ 600: '52, 102, 148',
167
+ 700: '42, 84, 132',
168
+ 800: '36, 70, 114',
169
+ 900: '30, 56, 96',
170
+ 950: '20, 36, 70',
171
+ },
172
+ indigo: {
173
+ 50: '224, 228, 240',
174
+ 100: '208, 214, 234',
175
+ 200: '184, 192, 220',
176
+ 300: '158, 166, 202',
177
+ 400: '128, 136, 184',
178
+ 500: '100, 106, 166',
179
+ 600: '80, 86, 148',
180
+ 700: '66, 70, 128',
181
+ 800: '54, 56, 106',
182
+ 900: '46, 46, 88',
183
+ 950: '30, 28, 66',
184
+ },
185
+ violet: {
186
+ 50: '232, 228, 242',
187
+ 100: '218, 214, 234',
188
+ 200: '200, 194, 220',
189
+ 300: '174, 166, 202',
190
+ 400: '148, 134, 184',
191
+ 500: '122, 96, 166',
192
+ 600: '104, 62, 152',
193
+ 700: '90, 42, 134',
194
+ 800: '74, 34, 114',
195
+ 900: '60, 28, 94',
196
+ 950: '36, 16, 66',
197
+ },
198
+ purple: {
199
+ 50: '238, 228, 244',
200
+ 100: '224, 212, 236',
201
+ 200: '206, 190, 224',
202
+ 300: '178, 160, 210',
203
+ 400: '150, 120, 190',
204
+ 500: '124, 82, 170',
205
+ 600: '104, 54, 150',
206
+ 700: '86, 38, 132',
207
+ 800: '72, 30, 112',
208
+ 900: '58, 24, 90',
209
+ 950: '40, 10, 70',
210
+ },
211
+ fuchsia: {
212
+ 50: '240, 226, 244',
213
+ 100: '228, 210, 236',
214
+ 200: '212, 186, 224',
215
+ 300: '188, 154, 210',
216
+ 400: '160, 112, 190',
217
+ 500: '134, 72, 168',
218
+ 600: '112, 40, 146',
219
+ 700: '94, 28, 126',
220
+ 800: '76, 26, 108',
221
+ 900: '62, 24, 90',
222
+ 950: '40, 6, 60',
223
+ },
224
+ pink: {
225
+ 50: '238, 226, 232',
226
+ 100: '228, 210, 224',
227
+ 200: '214, 186, 212',
228
+ 300: '190, 150, 194',
229
+ 400: '160, 106, 170',
230
+ 500: '134, 68, 144',
231
+ 600: '112, 38, 118',
232
+ 700: '92, 24, 92',
233
+ 800: '76, 20, 76',
234
+ 900: '62, 22, 66',
235
+ 950: '40, 8, 40',
236
+ },
237
+ rose: {
238
+ 50: '238, 226, 228',
239
+ 100: '228, 210, 214',
240
+ 200: '212, 186, 194',
241
+ 300: '186, 150, 168',
242
+ 400: '158, 108, 144',
243
+ 500: '130, 70, 120',
244
+ 600: '108, 36, 92',
245
+ 700: '90, 20, 76',
246
+ 800: '74, 18, 70',
247
+ 900: '60, 18, 64',
248
+ 950: '40, 6, 38',
249
+ },
250
+ slate: {
251
+ 50: '234, 238, 240',
252
+ 100: '220, 226, 230',
253
+ 200: '200, 210, 220',
254
+ 300: '176, 186, 194',
255
+ 400: '140, 154, 168',
256
+ 500: '98, 112, 130',
257
+ 600: '72, 84, 104',
258
+ 700: '54, 66, 86',
259
+ 800: '36, 44, 62',
260
+ 900: '22, 28, 44',
261
+ 950: '8, 12, 26',
262
+ },
263
+ gray: {
264
+ 50: '236, 238, 240',
265
+ 100: '224, 226, 228',
266
+ 200: '208, 210, 214',
267
+ 300: '184, 186, 192',
268
+ 400: '144, 150, 162',
269
+ 500: '104, 110, 124',
270
+ 600: '76, 84, 96',
271
+ 700: '56, 64, 80',
272
+ 800: '36, 44, 58',
273
+ 900: '20, 28, 42',
274
+ 950: '8, 10, 20',
275
+ },
276
+ zinc: {
277
+ 50: '236, 236, 236',
278
+ 100: '224, 224, 226',
279
+ 200: '206, 206, 210',
280
+ 300: '186, 186, 190',
281
+ 400: '146, 146, 154',
282
+ 500: '108, 108, 116',
283
+ 600: '80, 80, 88',
284
+ 700: '62, 62, 70',
285
+ 800: '44, 44, 48',
286
+ 900: '28, 28, 30',
287
+ 950: '12, 12, 14',
288
+ },
289
+ neutral: {
290
+ 50: '236, 236, 236',
291
+ 100: '224, 224, 224',
292
+ 200: '206, 206, 206',
293
+ 300: '186, 186, 186',
294
+ 400: '146, 146, 146',
295
+ 500: '110, 110, 110',
296
+ 600: '82, 82, 82',
297
+ 700: '66, 66, 66',
298
+ 800: '44, 44, 44',
299
+ 900: '28, 28, 28',
300
+ 950: '12, 12, 12',
301
+ },
302
+ stone: {
303
+ 50: '236, 236, 234',
304
+ 100: '224, 224, 222',
305
+ 200: '208, 206, 204',
306
+ 300: '186, 182, 180',
307
+ 400: '146, 140, 138',
308
+ 500: '110, 104, 100',
309
+ 600: '86, 80, 76',
310
+ 700: '70, 64, 60',
311
+ 800: '44, 40, 38',
312
+ 900: '28, 24, 22',
313
+ 950: '12, 10, 8',
314
+ },
315
+ } as const satisfies Record<ScaleColor, unknown>;
316
+
317
+ export const lightColor = {
318
+ red: {
319
+ 50: '254, 242, 242',
320
+ 100: '254, 226, 226',
321
+ 200: '254, 202, 202',
322
+ 300: '252, 165, 165',
323
+ 400: '248, 113, 113',
324
+ 500: '239, 68, 68',
325
+ 600: '220, 38, 38',
326
+ 700: '185, 28, 28',
327
+ 800: '153, 27, 27',
328
+ 900: '127, 29, 29',
329
+ 950: '69, 10, 10',
330
+ },
331
+ orange: {
332
+ 50: '255, 247, 237',
333
+ 100: '255, 237, 213',
334
+ 200: '254, 215, 170',
335
+ 300: '253, 186, 116',
336
+ 400: '251, 146, 60',
337
+ 500: '249, 115, 22',
338
+ 600: '234, 88, 12',
339
+ 700: '194, 65, 12',
340
+ 800: '154, 52, 18',
341
+ 900: '124, 45, 18',
342
+ 950: '67, 20, 7',
343
+ },
344
+ amber: {
345
+ 50: '255, 251, 235',
346
+ 100: '254, 243, 199',
347
+ 200: '253, 230, 138',
348
+ 300: '252, 211, 77',
349
+ 400: '251, 191, 36',
350
+ 500: '245, 158, 11',
351
+ 600: '217, 119, 6',
352
+ 700: '180, 83, 9',
353
+ 800: '146, 64, 14',
354
+ 900: '120, 53, 15',
355
+ 950: '69, 26, 3',
356
+ },
357
+ yellow: {
358
+ 50: '254, 252, 232',
359
+ 100: '254, 249, 195',
360
+ 200: '254, 240, 138',
361
+ 300: '253, 224, 71',
362
+ 400: '250, 204, 21',
363
+ 500: '234, 179, 8',
364
+ 600: '202, 138, 4',
365
+ 700: '161, 98, 7',
366
+ 800: '133, 77, 14',
367
+ 900: '113, 63, 18',
368
+ 950: '66, 32, 6',
369
+ },
370
+ lime: {
371
+ 50: '247, 254, 231',
372
+ 100: '236, 252, 203',
373
+ 200: '217, 249, 157',
374
+ 300: '190, 242, 100',
375
+ 400: '163, 230, 53',
376
+ 500: '132, 204, 22',
377
+ 600: '101, 163, 13',
378
+ 700: '77, 124, 15',
379
+ 800: '63, 98, 18',
380
+ 900: '54, 83, 20',
381
+ 950: '26, 46, 5',
382
+ },
383
+ green: {
384
+ 50: '240, 253, 244',
385
+ 100: '220, 252, 231',
386
+ 200: '187, 247, 208',
387
+ 300: '134, 239, 172',
388
+ 400: '74, 222, 128',
389
+ 500: '34, 197, 94',
390
+ 600: '22, 163, 74',
391
+ 700: '21, 128, 61',
392
+ 800: '22, 101, 52',
393
+ 900: '20, 83, 45',
394
+ 950: '5, 46, 22',
395
+ },
396
+ emerald: {
397
+ 50: '236, 253, 245',
398
+ 100: '209, 250, 229',
399
+ 200: '167, 243, 208',
400
+ 300: '110, 231, 183',
401
+ 400: '52, 211, 153',
402
+ 500: '16, 185, 129',
403
+ 600: '5, 150, 105',
404
+ 700: '4, 120, 87',
405
+ 800: '6, 95, 70',
406
+ 900: '6, 78, 59',
407
+ 950: '2, 44, 34',
408
+ },
409
+ teal: {
410
+ 50: '240, 253, 250',
411
+ 100: '204, 251, 241',
412
+ 200: '153, 246, 228',
413
+ 300: '94, 234, 212',
414
+ 400: '45, 212, 191',
415
+ 500: '20, 184, 166',
416
+ 600: '13, 148, 136',
417
+ 700: '15, 118, 110',
418
+ 800: '17, 94, 89',
419
+ 900: '19, 78, 74',
420
+ 950: '4, 47, 46',
421
+ },
422
+ cyan: {
423
+ 50: '236, 254, 255',
424
+ 100: '207, 250, 254',
425
+ 200: '165, 243, 252',
426
+ 300: '103, 232, 249',
427
+ 400: '34, 211, 238',
428
+ 500: '6, 182, 212',
429
+ 600: '8, 145, 178',
430
+ 700: '14, 116, 144',
431
+ 800: '21, 94, 117',
432
+ 900: '22, 78, 99',
433
+ 950: '8, 51, 68',
434
+ },
435
+ sky: {
436
+ 50: '240, 249, 255',
437
+ 100: '224, 242, 254',
438
+ 200: '186, 230, 253',
439
+ 300: '125, 211, 252',
440
+ 400: '56, 189, 248',
441
+ 500: '14, 165, 233',
442
+ 600: '2, 132, 199',
443
+ 700: '3, 105, 161',
444
+ 800: '7, 89, 133',
445
+ 900: '12, 74, 110',
446
+ 950: '8, 47, 73',
447
+ },
448
+ blue: {
449
+ 50: '239, 246, 255',
450
+ 100: '219, 234, 254',
451
+ 200: '191, 219, 254',
452
+ 300: '147, 197, 253',
453
+ 400: '96, 165, 250',
454
+ 500: '59, 130, 246',
455
+ 600: '37, 99, 235',
456
+ 700: '29, 78, 216',
457
+ 800: '30, 64, 175',
458
+ 900: '30, 58, 138',
459
+ 950: '23, 37, 84',
460
+ },
461
+ indigo: {
462
+ 50: '238, 242, 255',
463
+ 100: '224, 231, 255',
464
+ 200: '199, 210, 254',
465
+ 300: '165, 180, 252',
466
+ 400: '129, 140, 248',
467
+ 500: '99, 102, 241',
468
+ 600: '79, 70, 229',
469
+ 700: '67, 56, 202',
470
+ 800: '55, 48, 163',
471
+ 900: '49, 46, 129',
472
+ 950: '30, 27, 75',
473
+ },
474
+ violet: {
475
+ 50: '245, 243, 255',
476
+ 100: '237, 233, 254',
477
+ 200: '221, 214, 254',
478
+ 300: '196, 181, 253',
479
+ 400: '167, 139, 250',
480
+ 500: '139, 92, 246',
481
+ 600: '124, 58, 237',
482
+ 700: '109, 40, 217',
483
+ 800: '91, 33, 182',
484
+ 900: '76, 29, 149',
485
+ 950: '46, 16, 101',
486
+ },
487
+ purple: {
488
+ 50: '250, 245, 255',
489
+ 100: '243, 232, 255',
490
+ 200: '233, 213, 255',
491
+ 300: '216, 180, 254',
492
+ 400: '192, 132, 252',
493
+ 500: '168, 85, 247',
494
+ 600: '147, 51, 234',
495
+ 700: '126, 34, 206',
496
+ 800: '107, 33, 168',
497
+ 900: '88, 28, 135',
498
+ 950: '59, 7, 100',
499
+ },
500
+ fuchsia: {
501
+ 50: '253, 244, 255',
502
+ 100: '250, 232, 255',
503
+ 200: '245, 208, 254',
504
+ 300: '240, 171, 252',
505
+ 400: '232, 121, 249',
506
+ 500: '217, 70, 239',
507
+ 600: '192, 38, 211',
508
+ 700: '162, 28, 175',
509
+ 800: '134, 25, 143',
510
+ 900: '112, 26, 117',
511
+ 950: '74, 4, 78',
512
+ },
513
+ pink: {
514
+ 50: '253, 242, 248',
515
+ 100: '252, 231, 243',
516
+ 200: '251, 207, 232',
517
+ 300: '249, 168, 212',
518
+ 400: '244, 114, 182',
519
+ 500: '236, 72, 153',
520
+ 600: '219, 39, 119',
521
+ 700: '190, 24, 93',
522
+ 800: '157, 23, 77',
523
+ 900: '131, 24, 67',
524
+ 950: '80, 7, 36',
525
+ },
526
+ rose: {
527
+ 50: '255, 241, 242',
528
+ 100: '255, 228, 230',
529
+ 200: '254, 205, 211',
530
+ 300: '253, 164, 175',
531
+ 400: '251, 113, 133',
532
+ 500: '244, 63, 94',
533
+ 600: '225, 29, 72',
534
+ 700: '190, 18, 60',
535
+ 800: '159, 18, 57',
536
+ 900: '136, 19, 55',
537
+ 950: '76, 5, 25',
538
+ },
539
+ slate: {
540
+ 50: '248, 250, 252',
541
+ 100: '241, 245, 249',
542
+ 200: '226, 232, 240',
543
+ 300: '203, 213, 225',
544
+ 400: '148, 163, 184',
545
+ 500: '100, 116, 139',
546
+ 600: '71, 85, 105',
547
+ 700: '51, 65, 85',
548
+ 800: '30, 41, 59',
549
+ 900: '15, 23, 42',
550
+ 950: '2, 6, 23',
551
+ },
552
+ gray: {
553
+ 50: '249, 250, 251',
554
+ 100: '243, 244, 246',
555
+ 200: '229, 231, 235',
556
+ 300: '209, 213, 219',
557
+ 400: '156, 163, 175',
558
+ 500: '107, 114, 128',
559
+ 600: '75, 85, 99',
560
+ 700: '55, 65, 81',
561
+ 800: '31, 41, 55',
562
+ 900: '17, 24, 39',
563
+ 950: '3, 7, 18',
564
+ },
565
+ zinc: {
566
+ 50: '250, 250, 250',
567
+ 100: '244, 244, 245',
568
+ 200: '228, 228, 231',
569
+ 300: '212, 212, 216',
570
+ 400: '161, 161, 170',
571
+ 500: '113, 113, 122',
572
+ 600: '82, 82, 91',
573
+ 700: '63, 63, 70',
574
+ 800: '39, 39, 42',
575
+ 900: '24, 24, 27',
576
+ 950: '9, 9, 11',
577
+ },
578
+ neutral: {
579
+ 50: '250, 250, 250',
580
+ 100: '245, 245, 245',
581
+ 200: '229, 229, 229',
582
+ 300: '212, 212, 212',
583
+ 400: '163, 163, 163',
584
+ 500: '115, 115, 115',
585
+ 600: '82, 82, 82',
586
+ 700: '64, 64, 64',
587
+ 800: '38, 38, 38',
588
+ 900: '23, 23, 23',
589
+ 950: '10, 10, 10',
590
+ },
591
+ stone: {
592
+ 50: '250, 250, 249',
593
+ 100: '245, 245, 244',
594
+ 200: '231, 229, 228',
595
+ 300: '214, 211, 209',
596
+ 400: '168, 162, 158',
597
+ 500: '120, 113, 108',
598
+ 600: '87, 83, 78',
599
+ 700: '68, 64, 60',
600
+ 800: '41, 37, 36',
601
+ 900: '28, 25, 23',
602
+ 950: '12, 10, 9',
603
+ },
604
+ } as const satisfies Record<ScaleColor, unknown>;
@@ -0,0 +1,6 @@
1
+ export const breakpoint = {
2
+ sm: 768,
3
+ md: 1024,
4
+ lg: 1440,
5
+ desktop: 1024,
6
+ } as const;
@@ -0,0 +1,10 @@
1
+ export const semanticColor = [
2
+ 'primary',
3
+ 'secondary',
4
+ 'muted',
5
+ 'accent',
6
+ 'card',
7
+ 'danger',
8
+ 'warning',
9
+ 'success',
10
+ ] as const;
@@ -0,0 +1,9 @@
1
+ export const spacing = {
2
+ none: '0',
3
+ sm: '0.25em',
4
+ md: '0.5em',
5
+ lg: '0.75em',
6
+ xl: '1em',
7
+ '2xl': '1.5em',
8
+ '3xl': '2em',
9
+ } as const;
@@ -0,0 +1,32 @@
1
+ export const typography = {
2
+ size: {
3
+ xs: '0.75em',
4
+ sm: '0.875em',
5
+ md: '1em',
6
+ lg: '1.125em',
7
+ xl: '1.25em',
8
+ '2xl': '1.375em',
9
+ '3xl': '1.625em',
10
+ '4xl': '2em',
11
+ '5xl': '2.5em',
12
+ '1rem': '1rem',
13
+ },
14
+ weight: {
15
+ thin: '100',
16
+ extraLight: '200',
17
+ light: '300',
18
+ normal: '400',
19
+ medium: '500',
20
+ semiBold: '600',
21
+ bold: '700',
22
+ extraBold: '800',
23
+ black: '900',
24
+ },
25
+ lineHeight: {
26
+ xs: 1,
27
+ sm: 1.25,
28
+ md: 1.5,
29
+ lg: 1.75,
30
+ xl: 2,
31
+ },
32
+ } as const;
@@ -0,0 +1 @@
1
+ export * from './ui.types';
@@ -0,0 +1,26 @@
1
+ import type { ComponentPropsWithRef, ElementType } from 'react';
2
+
3
+ import type { ComplexStyleRule } from '@vanilla-extract/css';
4
+ import type { RecipeVariants, RuntimeFn } from '@vanilla-extract/recipes';
5
+
6
+ import type { SprinklesProps } from '#styles';
7
+
8
+ type VariantGroups = Record<string, Record<string, ComplexStyleRule | string>>;
9
+
10
+ export type RecipeVariantsProps<
11
+ V extends RuntimeFn<VariantGroups> | undefined,
12
+ > = NonNullable<
13
+ V extends RuntimeFn<VariantGroups> ? RecipeVariants<V> : object
14
+ >;
15
+
16
+ /**
17
+ * @template T element type
18
+ * @template V typeof vanilla-extract recipe
19
+ */
20
+ export type UIComponent<
21
+ T extends ElementType,
22
+ V extends RuntimeFn<VariantGroups> | undefined = undefined,
23
+ > = Omit<ComponentPropsWithRef<T>, keyof RecipeVariantsProps<V>> &
24
+ RecipeVariantsProps<V> & {
25
+ sx?: SprinklesProps;
26
+ };
@@ -0,0 +1 @@
1
+ export * from './sprinklesUtils';