@vsn-ux/gaia-styles 0.1.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 (53) hide show
  1. package/README.md +125 -0
  2. package/dist/all-no-reset-10pt.css +1104 -0
  3. package/dist/all-no-reset.css +1104 -0
  4. package/dist/all.css +1245 -0
  5. package/dist/base.css +6 -0
  6. package/dist/components/avatar.css +38 -0
  7. package/dist/components/badge.css +122 -0
  8. package/dist/components/button.css +117 -0
  9. package/dist/components/card.css +40 -0
  10. package/dist/components/checkbox.css +91 -0
  11. package/dist/components/form-field.css +32 -0
  12. package/dist/components/input.css +73 -0
  13. package/dist/components/menu.css +73 -0
  14. package/dist/components/notification.css +68 -0
  15. package/dist/components/radio-button.css +109 -0
  16. package/dist/components/segmented-control.css +76 -0
  17. package/dist/components/text-area.css +63 -0
  18. package/dist/components/tooltip.css +126 -0
  19. package/dist/components.css +861 -0
  20. package/dist/design-tokens.css +159 -0
  21. package/dist/design-tokens.d.ts +167 -0
  22. package/dist/design-tokens.js +1654 -0
  23. package/package.json +73 -0
  24. package/src/design-tokens/dtcg-tokens.json +504 -0
  25. package/src/font/Inter-Bold.woff2 +0 -0
  26. package/src/font/Inter-BoldItalic.woff2 +0 -0
  27. package/src/font/Inter-Italic.woff2 +0 -0
  28. package/src/font/Inter-Medium.woff2 +0 -0
  29. package/src/font/Inter-MediumItalic.woff2 +0 -0
  30. package/src/font/Inter-Regular.woff2 +0 -0
  31. package/src/font/Inter-SemiBold.woff2 +0 -0
  32. package/src/font/Inter-SemiBoldItalic.woff2 +0 -0
  33. package/src/font/inter.css +56 -0
  34. package/src/styles/all-no-reset-10pt.css +12 -0
  35. package/src/styles/all-no-reset.css +7 -0
  36. package/src/styles/all.css +8 -0
  37. package/src/styles/base.css +3 -0
  38. package/src/styles/components/avatar.css +11 -0
  39. package/src/styles/components/badge.css +43 -0
  40. package/src/styles/components/button.css +83 -0
  41. package/src/styles/components/card.css +19 -0
  42. package/src/styles/components/checkbox.css +66 -0
  43. package/src/styles/components/form-field.css +11 -0
  44. package/src/styles/components/input.css +40 -0
  45. package/src/styles/components/menu.css +27 -0
  46. package/src/styles/components/notification.css +39 -0
  47. package/src/styles/components/radio-button.css +44 -0
  48. package/src/styles/components/segmented-control.css +40 -0
  49. package/src/styles/components/text-area.css +27 -0
  50. package/src/styles/components/tooltip.css +92 -0
  51. package/src/styles/components.css +13 -0
  52. package/src/styles/tailwind.css +2 -0
  53. package/src/styles/theme.css +82 -0
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "@vsn-ux/gaia-styles",
3
+ "version": "0.1.1",
4
+ "type": "module",
5
+ "scripts": {
6
+ "dev": "storybook dev -p 6006",
7
+ "dev-lib": "node ./build-component-styles.js --watch",
8
+ "build-tokens": "tz build",
9
+ "build-storybook": "storybook build",
10
+ "build-lib": "node ./build-component-styles.js --clean",
11
+ "commitlint": "commitlint --edit",
12
+ "prepare": "husky"
13
+ },
14
+ "exports": {
15
+ "./tailwindcss": "./src/styles/tailwind.css",
16
+ "./tailwindcss/theme.css": "./src/styles/theme.css",
17
+ "./tailwindcss/base.css": "./src/styles/base.css",
18
+ "./tailwindcss/components.css": "./src/styles/components.css",
19
+ "./design-tokens.json": "./src/design-tokens/dtcg-tokens.json",
20
+ "./font/*": "./src/font/*",
21
+ "./*": "./dist/*"
22
+ },
23
+ "devDependencies": {
24
+ "@commitlint/cli": "^19.6.1",
25
+ "@commitlint/config-conventional": "^19.6.0",
26
+ "@storybook/addon-essentials": "^8.4.7",
27
+ "@storybook/addon-interactions": "^8.4.7",
28
+ "@storybook/addon-onboarding": "^8.4.7",
29
+ "@storybook/blocks": "^8.4.7",
30
+ "@storybook/react": "^8.4.7",
31
+ "@storybook/react-vite": "^8.4.7",
32
+ "@storybook/test": "^8.4.7",
33
+ "@tailwindcss/cli": "^4.0.0",
34
+ "@tailwindcss/postcss": "^4.0.0",
35
+ "@tailwindcss/vite": "^4.0.0",
36
+ "@terrazzo/cli": "^0.5.0",
37
+ "@terrazzo/plugin-css": "^0.5.0",
38
+ "@terrazzo/plugin-js": "^0.5.0",
39
+ "@types/react": "^18.3.18",
40
+ "@types/react-dom": "^18.3.5",
41
+ "@vitejs/plugin-react": "^4.3.4",
42
+ "chokidar": "^4.0.3",
43
+ "glob": "^11.0.1",
44
+ "globals": "^15.14.0",
45
+ "husky": "^9.1.7",
46
+ "lucide-react": "^0.473.0",
47
+ "postcss": "^8.4.49",
48
+ "prettier": "^3.4.2",
49
+ "prettier-plugin-tailwindcss": "^0.6.11",
50
+ "react": "^18.3.1",
51
+ "react-dom": "^18.3.1",
52
+ "semantic-release": "^24.2.2",
53
+ "storybook": "^8.4.7",
54
+ "tailwindcss": "^4.0.0",
55
+ "typescript": "~5.6.2",
56
+ "typescript-eslint": "^8.18.2",
57
+ "vite": "^6.0.5"
58
+ },
59
+ "files": [
60
+ "dist/",
61
+ "src/design-tokens/",
62
+ "src/font/",
63
+ "src/styles/"
64
+ ],
65
+ "publishConfig": {
66
+ "access": "public"
67
+ },
68
+ "eslintConfig": {
69
+ "extends": [
70
+ "plugin:storybook/recommended"
71
+ ]
72
+ }
73
+ }
@@ -0,0 +1,504 @@
1
+ {
2
+ "color": {
3
+ "$type": "color",
4
+ "white": {
5
+ "$value": "#FFFFFF"
6
+ },
7
+ "cyan": {
8
+ "60": {
9
+ "$value": "#377EA0"
10
+ },
11
+ "70": {
12
+ "$value": "#2A6480"
13
+ },
14
+ "80": {
15
+ "$value": "#1F4E66"
16
+ },
17
+ "90": {
18
+ "$value": "#133445"
19
+ }
20
+ },
21
+ "orange": {
22
+ "10": {
23
+ "$value": "#FCF0E7"
24
+ },
25
+ "20": {
26
+ "$value": "#FAE0CE"
27
+ },
28
+ "30": {
29
+ "$value": "#F5C3A1"
30
+ },
31
+ "40": {
32
+ "$value": "#F2A676"
33
+ },
34
+ "60": {
35
+ "$value": "#BB5822"
36
+ }
37
+ },
38
+ "neutral": {
39
+ "$value": "{color.neutral.30}",
40
+ "10": {
41
+ "$value": "#F2F3F5"
42
+ },
43
+ "20": {
44
+ "$value": "#E2E4E9"
45
+ },
46
+ "30": {
47
+ "$value": "#CCCFD7"
48
+ },
49
+ "50": {
50
+ "$value": "#8F95A4"
51
+ },
52
+ "60": {
53
+ "$value": "#6F7687"
54
+ }
55
+ },
56
+ "blue": {
57
+ "10": {
58
+ "$value": "#EDF4FE"
59
+ },
60
+ "40": {
61
+ "$value": "#93BBF9"
62
+ },
63
+ "70": {
64
+ "$value": "#1F4DDB"
65
+ }
66
+ },
67
+ "green": {
68
+ "10": {
69
+ "$value": "#EEF5EE"
70
+ },
71
+ "40": {
72
+ "$value": "#9BC59B"
73
+ },
74
+ "70": {
75
+ "$value": "#2E6B31"
76
+ }
77
+ },
78
+ "red": {
79
+ "10": {
80
+ "$value": "#FCF1EE"
81
+ },
82
+ "40": {
83
+ "$value": "#ECA79E"
84
+ },
85
+ "70": {
86
+ "$value": "#B0241D"
87
+ }
88
+ },
89
+ "grey": {
90
+ "10": {
91
+ "$value": "#F2F2F2"
92
+ },
93
+ "40": {
94
+ "$value": "#B9B9B9"
95
+ }
96
+ },
97
+ "lime": {
98
+ "10": {
99
+ "$value": "#EDF6DD"
100
+ },
101
+ "40": {
102
+ "$value": "#A5C656"
103
+ }
104
+ },
105
+ "teal": {
106
+ "10": {
107
+ "$value": "#ECF5F4"
108
+ },
109
+ "20": {
110
+ "$value": "#D5E8E6"
111
+ },
112
+ "30": {
113
+ "$value": "#B4D7D4"
114
+ },
115
+ "40": {
116
+ "$value": "#92C3C0"
117
+ },
118
+ "50": {
119
+ "$value": "#51A39E"
120
+ },
121
+ "60": {
122
+ "$value": "#3A837E"
123
+ },
124
+ "70": {
125
+ "$value": "#2C6764"
126
+ },
127
+ "80": {
128
+ "$value": "#21514E"
129
+ },
130
+ "90": {
131
+ "$value": "#143734"
132
+ },
133
+ "100": {
134
+ "$value": "#081F1F"
135
+ }
136
+ },
137
+ "indigo": {
138
+ "10": {
139
+ "$value": "#F0F2FE"
140
+ },
141
+ "40": {
142
+ "$value": "#ADB4F9"
143
+ }
144
+ },
145
+ "purple": {
146
+ "10": {
147
+ "$value": "#F3F1FE"
148
+ },
149
+ "40": {
150
+ "$value": "#C3ACF9"
151
+ }
152
+ },
153
+ "pink": {
154
+ "10": {
155
+ "$value": "#FBEEFC"
156
+ },
157
+ "40": {
158
+ "$value": "#E79DEE"
159
+ }
160
+ },
161
+ "rose": {
162
+ "10": {
163
+ "$value": "#FCF0F4"
164
+ },
165
+ "40": {
166
+ "$value": "#EFA1BD"
167
+ }
168
+ },
169
+ "yellow": {
170
+ "10": {
171
+ "$value": "#FDF5AE"
172
+ },
173
+ "40": {
174
+ "$value": "#E1B402"
175
+ }
176
+ },
177
+ "primary": {
178
+ "$value": "{color.cyan.80}",
179
+ "60": {
180
+ "$value": "{color.cyan.60}"
181
+ },
182
+ "70": {
183
+ "$value": "{color.cyan.70}"
184
+ },
185
+ "90": {
186
+ "$value": "{color.cyan.90}"
187
+ }
188
+ },
189
+ "secondary": {
190
+ "$value": "{color.orange.20}",
191
+ "10": {
192
+ "$value": "{color.orange.10}"
193
+ },
194
+ "30": {
195
+ "$value": "{color.orange.30}"
196
+ }
197
+ },
198
+ "utility": {
199
+ "blue": {
200
+ "$value": "{color.blue.40}",
201
+ "light": {
202
+ "$value": "{color.blue.10}"
203
+ }
204
+ },
205
+ "green": {
206
+ "$value": "{color.green.40}",
207
+ "light": {
208
+ "$value": "{color.green.10}"
209
+ }
210
+ },
211
+ "grey": {
212
+ "$value": "{color.grey.40}",
213
+ "light": {
214
+ "$value": "{color.grey.10}"
215
+ }
216
+ },
217
+ "indigo": {
218
+ "$value": "{color.indigo.40}",
219
+ "light": {
220
+ "$value": "{color.indigo.10}"
221
+ }
222
+ },
223
+ "lime": {
224
+ "$value": "{color.lime.40}",
225
+ "light": {
226
+ "$value": "{color.lime.10}"
227
+ }
228
+ },
229
+ "orange": {
230
+ "$value": "{color.orange.40}",
231
+ "light": {
232
+ "$value": "{color.orange.10}"
233
+ }
234
+ },
235
+ "pink": {
236
+ "$value": "{color.pink.40}",
237
+ "light": {
238
+ "$value": "{color.pink.10}"
239
+ }
240
+ },
241
+ "purple": {
242
+ "$value": "{color.purple.40}",
243
+ "light": {
244
+ "$value": "{color.purple.10}"
245
+ }
246
+ },
247
+ "red": {
248
+ "$value": "{color.red.40}",
249
+ "light": {
250
+ "$value": "{color.red.10}"
251
+ }
252
+ },
253
+ "rose": {
254
+ "$value": "{color.rose.40}",
255
+ "light": {
256
+ "$value": "{color.rose.10}"
257
+ }
258
+ },
259
+ "teal": {
260
+ "$value": "{color.teal.40}",
261
+ "light": {
262
+ "$value": "{color.teal.10}"
263
+ }
264
+ },
265
+ "yellow": {
266
+ "$value": "{color.yellow.40}",
267
+ "light": {
268
+ "$value": "{color.yellow.10}"
269
+ }
270
+ }
271
+ },
272
+ "error": {
273
+ "$value": "{color.red.70}",
274
+ "light": {
275
+ "$value": "{color.utility.red.light}"
276
+ }
277
+ },
278
+ "success": {
279
+ "$value": "{color.green.70}",
280
+ "light": {
281
+ "$value": "{color.utility.green.light}"
282
+ }
283
+ },
284
+ "warning": {
285
+ "$value": "{color.orange.60}",
286
+ "light": {
287
+ "$value": "{color.utility.orange.light}"
288
+ }
289
+ },
290
+ "information": {
291
+ "$value": "{color.blue.70}",
292
+ "light": {
293
+ "$value": "{color.utility.blue.light}"
294
+ }
295
+ },
296
+ "text": {
297
+ "headings": {
298
+ "$value": "{color.primary.90}"
299
+ },
300
+ "body": {
301
+ "$value": "{color.primary.90}"
302
+ },
303
+ "action": {
304
+ "$value": "{color.primary}"
305
+ },
306
+ "action-hover": {
307
+ "$value": "{color.primary.90}"
308
+ },
309
+ "disabled": {
310
+ "$value": "{color.utility.grey}"
311
+ },
312
+ "disable-selected": {
313
+ "$value": "{color.neutral.60}"
314
+ },
315
+ "information": {
316
+ "$value": "{color.primary.90}"
317
+ },
318
+ "success": {
319
+ "$value": "{color.primary.90}"
320
+ },
321
+ "warning": {
322
+ "$value": "{color.primary.90}"
323
+ },
324
+ "error": {
325
+ "$value": "{color.primary.90}"
326
+ },
327
+ "on-action": {
328
+ "$value": "{color.secondary.10}"
329
+ },
330
+ "on-disabled": {
331
+ "$value": "{color.primary.70}"
332
+ }
333
+ },
334
+ "surface": {
335
+ "page": {
336
+ "$value": "{color.neutral.10}"
337
+ },
338
+ "primary": {
339
+ "$value": "{color.white}"
340
+ },
341
+ "disabled": {
342
+ "$value": "{color.neutral.20}"
343
+ },
344
+ "information": {
345
+ "$value": "{color.information.light}"
346
+ },
347
+ "success": {
348
+ "$value": "{color.success.light}"
349
+ },
350
+ "warning": {
351
+ "$value": "{color.utility.orange.light}"
352
+ },
353
+ "error": {
354
+ "$value": "{color.utility.red.light}"
355
+ },
356
+ "action": {
357
+ "$value": "{color.primary}"
358
+ },
359
+ "action-hover": {
360
+ "$value": "{color.primary.90}"
361
+ },
362
+ "action-hover-2": {
363
+ "$value": "{color.orange.20}"
364
+ },
365
+ "disable-selected": {
366
+ "$value": "{color.neutral.50}"
367
+ }
368
+ },
369
+ "border": {
370
+ "primary": {
371
+ "$value": "{color.neutral.30}"
372
+ },
373
+ "secondary": {
374
+ "$value": "{color.secondary.30}"
375
+ },
376
+ "disabled": {
377
+ "$value": "{color.neutral}"
378
+ },
379
+ "information": {
380
+ "$value": "{color.information}"
381
+ },
382
+ "success": {
383
+ "$value": "{color.success}"
384
+ },
385
+ "warning": {
386
+ "$value": "{color.warning}"
387
+ },
388
+ "error": {
389
+ "$value": "{color.error}"
390
+ },
391
+ "action": {
392
+ "$value": "{color.primary}"
393
+ },
394
+ "action-hover": {
395
+ "$value": "{color.primary.60}"
396
+ },
397
+ "action-hover-2": {
398
+ "$value": "{color.secondary.30}"
399
+ },
400
+ "focus": {
401
+ "$value": "{color.primary}"
402
+ }
403
+ }
404
+ },
405
+ "size": {
406
+ "$type": "dimension",
407
+ "0": {
408
+ "$value": "0px"
409
+ },
410
+ "2": {
411
+ "$value": "2px"
412
+ },
413
+ "4": {
414
+ "$value": "4px"
415
+ },
416
+ "8": {
417
+ "$value": "8px"
418
+ },
419
+ "10": {
420
+ "$value": "10px"
421
+ },
422
+ "11": {
423
+ "$value": "11px"
424
+ },
425
+ "12": {
426
+ "$value": "12px"
427
+ },
428
+ "14": {
429
+ "$value": "14px"
430
+ },
431
+ "16": {
432
+ "$value": "16px"
433
+ },
434
+ "20": {
435
+ "$value": "20px"
436
+ },
437
+ "24": {
438
+ "$value": "24px"
439
+ },
440
+ "32": {
441
+ "$value": "32px"
442
+ },
443
+ "36": {
444
+ "$value": "36px"
445
+ },
446
+ "40": {
447
+ "$value": "40px"
448
+ },
449
+ "48": {
450
+ "$value": "48px"
451
+ },
452
+ "64": {
453
+ "$value": "64px"
454
+ },
455
+ "80": {
456
+ "$value": "80px"
457
+ },
458
+ "96": {
459
+ "$value": "96px"
460
+ },
461
+ "160": {
462
+ "$value": "160px"
463
+ },
464
+ "font": {
465
+ "xs": {
466
+ "$value": "{size.11}"
467
+ },
468
+ "sm": {
469
+ "$value": "{size.12}"
470
+ },
471
+ "md": {
472
+ "$value": "{size.14}"
473
+ },
474
+ "lg": {
475
+ "$value": "{size.16}"
476
+ },
477
+ "xl": {
478
+ "$value": "{size.20}"
479
+ },
480
+ "2xl": {
481
+ "$value": "{size.24}"
482
+ },
483
+ "3xl": {
484
+ "$value": "{size.36}"
485
+ }
486
+ }
487
+ },
488
+ "radius": {
489
+ "$type": "dimension",
490
+ "$value": "4px",
491
+ "round": {
492
+ "$type": "dimension",
493
+ "$value": "99999px"
494
+ },
495
+ "sharp": {
496
+ "$type": "dimension",
497
+ "$value": "0.28px"
498
+ }
499
+ },
500
+ "font-family": {
501
+ "$type": "fontFamily",
502
+ "$value": "Inter"
503
+ }
504
+ }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,56 @@
1
+ @font-face {
2
+ font-family: 'Inter';
3
+ font-style: normal;
4
+ font-weight: 400;
5
+ font-display: swap;
6
+ src: url('./Inter-Regular.woff2?v=4.0') format('woff2');
7
+ }
8
+ @font-face {
9
+ font-family: 'Inter';
10
+ font-style: italic;
11
+ font-weight: 400;
12
+ font-display: swap;
13
+ src: url('./Inter-Italic.woff2?v=4.0') format('woff2');
14
+ }
15
+ @font-face {
16
+ font-family: 'Inter';
17
+ font-style: normal;
18
+ font-weight: 500;
19
+ font-display: swap;
20
+ src: url('./Inter-Medium.woff2?v=4.0') format('woff2');
21
+ }
22
+ @font-face {
23
+ font-family: 'Inter';
24
+ font-style: italic;
25
+ font-weight: 500;
26
+ font-display: swap;
27
+ src: url('./Inter-MediumItalic.woff2?v=4.0') format('woff2');
28
+ }
29
+ @font-face {
30
+ font-family: 'Inter';
31
+ font-style: normal;
32
+ font-weight: 600;
33
+ font-display: swap;
34
+ src: url('./Inter-SemiBold.woff2?v=4.0') format('woff2');
35
+ }
36
+ @font-face {
37
+ font-family: 'Inter';
38
+ font-style: italic;
39
+ font-weight: 600;
40
+ font-display: swap;
41
+ src: url('./Inter-SemiBoldItalic.woff2?v=4.0') format('woff2');
42
+ }
43
+ @font-face {
44
+ font-family: 'Inter';
45
+ font-style: normal;
46
+ font-weight: 700;
47
+ font-display: swap;
48
+ src: url('./Inter-Bold.woff2?v=4.0') format('woff2');
49
+ }
50
+ @font-face {
51
+ font-family: 'Inter';
52
+ font-style: italic;
53
+ font-weight: 700;
54
+ font-display: swap;
55
+ src: url('./Inter-BoldItalic.woff2?v=4.0') format('woff2');
56
+ }
@@ -0,0 +1,12 @@
1
+ @import '../../dist/design-tokens.css';
2
+
3
+ @layer theme, base, components, utilities;
4
+
5
+ @import './theme.css' layer(theme);
6
+ @import './base.css' layer(base);
7
+ @import './components.css' layer(components);
8
+
9
+ @theme inline {
10
+ /* changing the spacing to match 10px root font size */
11
+ --spacing: 0.4rem;
12
+ }
@@ -0,0 +1,7 @@
1
+ @import '../../dist/design-tokens.css';
2
+
3
+ @layer theme, base, components, utilities;
4
+
5
+ @import './theme.css' layer(theme);
6
+ @import './base.css' layer(base);
7
+ @import './components.css' layer(components);
@@ -0,0 +1,8 @@
1
+ @import '../../dist/design-tokens.css';
2
+
3
+ @layer theme, base, components, utilities;
4
+
5
+ @import './theme.css' layer(theme);
6
+ @import 'tailwindcss/preflight.css' layer(base);
7
+ @import './base.css' layer(base);
8
+ @import './components.css' layer(components);
@@ -0,0 +1,3 @@
1
+ body {
2
+ @apply text-cyan-90 font-inter;
3
+ }
@@ -0,0 +1,11 @@
1
+ .ga-avatar {
2
+ @apply inline-flex h-10 w-10 items-center justify-center overflow-hidden rounded-full border align-middle font-bold;
3
+
4
+ &.ga-avatar--small {
5
+ @apply h-6 w-6 text-sm;
6
+ }
7
+
8
+ &.ga-avatar--large {
9
+ @apply h-16 w-16 text-2xl;
10
+ }
11
+ }