@gv-tech/design-tokens 2.20.0 → 2.21.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.
@@ -0,0 +1,30 @@
1
+ export declare const spacing: {
2
+ readonly px: "1px";
3
+ readonly 0: "0";
4
+ readonly 0.5: "0.125rem";
5
+ readonly 1: "0.25rem";
6
+ readonly 1.5: "0.375rem";
7
+ readonly 2: "0.5rem";
8
+ readonly 2.5: "0.625rem";
9
+ readonly 3: "0.75rem";
10
+ readonly 3.5: "0.875rem";
11
+ readonly 4: "1rem";
12
+ readonly 5: "1.25rem";
13
+ readonly 6: "1.5rem";
14
+ readonly 7: "1.75rem";
15
+ readonly 8: "2rem";
16
+ readonly 9: "2.25rem";
17
+ readonly 10: "2.5rem";
18
+ readonly 12: "3rem";
19
+ readonly 14: "3.5rem";
20
+ readonly 16: "4rem";
21
+ readonly 20: "5rem";
22
+ readonly 24: "6rem";
23
+ readonly 32: "8rem";
24
+ readonly 40: "10rem";
25
+ readonly 48: "12rem";
26
+ readonly 56: "14rem";
27
+ readonly 64: "16rem";
28
+ };
29
+ export type SpacingTokens = typeof spacing;
30
+ //# sourceMappingURL=spacing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacing.d.ts","sourceRoot":"","sources":["../src/spacing.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BV,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,OAAO,OAAO,CAAC"}
@@ -0,0 +1,48 @@
1
+ export declare const theme: {
2
+ readonly light: {
3
+ readonly background: "hsl(0 0% 96%)";
4
+ readonly foreground: "hsl(222 47% 11%)";
5
+ readonly card: "hsl(0 0% 100%)";
6
+ readonly cardForeground: "hsl(222 47% 11%)";
7
+ readonly popover: "hsl(0 0% 100%)";
8
+ readonly popoverForeground: "hsl(222 47% 11%)";
9
+ readonly primary: "hsl(225 73% 57%)";
10
+ readonly primaryForeground: "hsl(0 0% 100%)";
11
+ readonly secondary: "hsl(93 28% 54%)";
12
+ readonly secondaryForeground: "hsl(0 0% 100%)";
13
+ readonly muted: "hsl(0 0% 92%)";
14
+ readonly mutedForeground: "hsl(215 16% 47%)";
15
+ readonly accent: "hsl(0 0% 88%)";
16
+ readonly accentForeground: "hsl(222 47% 11%)";
17
+ readonly destructive: "hsl(0 84.2% 60.2%)";
18
+ readonly destructiveForeground: "hsl(0 0% 100%)";
19
+ readonly border: "hsl(0 0% 89%)";
20
+ readonly input: "hsl(0 0% 89%)";
21
+ readonly ring: "hsl(222 47% 11%)";
22
+ readonly radius: "0.5rem";
23
+ };
24
+ readonly dark: {
25
+ readonly background: "hsl(0 0% 9%)";
26
+ readonly foreground: "hsl(0 0% 100%)";
27
+ readonly card: "hsl(0 0% 14%)";
28
+ readonly cardForeground: "hsl(0 0% 100%)";
29
+ readonly popover: "hsl(0 0% 11%)";
30
+ readonly popoverForeground: "hsl(0 0% 100%)";
31
+ readonly primary: "hsl(227 96% 71%)";
32
+ readonly primaryForeground: "hsl(0 0% 9%)";
33
+ readonly secondary: "hsl(96 44% 61%)";
34
+ readonly secondaryForeground: "hsl(0 0% 9%)";
35
+ readonly muted: "hsl(0 0% 6%)";
36
+ readonly mutedForeground: "hsl(0 0% 70%)";
37
+ readonly accent: "hsl(0 0% 15%)";
38
+ readonly accentForeground: "hsl(0 0% 100%)";
39
+ readonly destructive: "hsl(0 62.8% 30.6%)";
40
+ readonly destructiveForeground: "hsl(0 0% 100%)";
41
+ readonly border: "hsl(0 0% 18%)";
42
+ readonly input: "hsl(0 0% 18%)";
43
+ readonly ring: "hsl(0 0% 90%)";
44
+ readonly radius: "0.5rem";
45
+ };
46
+ };
47
+ export type ThemeTokens = typeof theme.light;
48
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CR,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,OAAO,KAAK,CAAC,KAAK,CAAC"}
@@ -0,0 +1,33 @@
1
+ export declare const typography: {
2
+ readonly fontFamily: {
3
+ readonly sans: "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif";
4
+ readonly mono: "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace";
5
+ };
6
+ readonly fontSize: {
7
+ readonly xs: "0.75rem";
8
+ readonly sm: "0.875rem";
9
+ readonly base: "1rem";
10
+ readonly lg: "1.125rem";
11
+ readonly xl: "1.25rem";
12
+ readonly '2xl': "1.5rem";
13
+ readonly '3xl': "1.875rem";
14
+ readonly '4xl': "2.25rem";
15
+ readonly '5xl': "3rem";
16
+ };
17
+ readonly fontWeight: {
18
+ readonly normal: "400";
19
+ readonly medium: "500";
20
+ readonly semibold: "600";
21
+ readonly bold: "700";
22
+ };
23
+ readonly lineHeight: {
24
+ readonly none: "1";
25
+ readonly tight: "1.25";
26
+ readonly snug: "1.375";
27
+ readonly normal: "1.5";
28
+ readonly relaxed: "1.625";
29
+ readonly loose: "2";
30
+ };
31
+ };
32
+ export type TypographyTokens = typeof typography;
33
+ //# sourceMappingURL=typography.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../src/typography.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8Bb,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,OAAO,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gv-tech/design-tokens",
3
- "version": "2.20.0",
3
+ "version": "2.21.1",
4
4
  "description": "Shared design tokens for the GV Tech design system — palette, theme, spacing, typography, shadows",
5
5
  "repository": {
6
6
  "type": "git",
package/src/index.ts CHANGED
@@ -33,3 +33,5 @@ export const tokens = {
33
33
  palette,
34
34
  theme,
35
35
  } as const;
36
+
37
+ export { preset } from './preset';
package/src/preset.ts ADDED
@@ -0,0 +1,104 @@
1
+ // Tailwind CSS configuration preset for GV Tech design system.
2
+ // This registers our colors, shadows, border radii, and animations natively.
3
+
4
+ export const preset = {
5
+ theme: {
6
+ extend: {
7
+ colors: {
8
+ background: 'hsl(var(--background) / <alpha-value>)',
9
+ foreground: 'hsl(var(--foreground) / <alpha-value>)',
10
+ card: {
11
+ DEFAULT: 'hsl(var(--card) / <alpha-value>)',
12
+ foreground: 'hsl(var(--card-foreground) / <alpha-value>)',
13
+ },
14
+ popover: {
15
+ DEFAULT: 'hsl(var(--popover) / <alpha-value>)',
16
+ foreground: 'hsl(var(--popover-foreground) / <alpha-value>)',
17
+ },
18
+ primary: {
19
+ DEFAULT: 'hsl(var(--primary) / <alpha-value>)',
20
+ foreground: 'hsl(var(--primary-foreground) / <alpha-value>)',
21
+ },
22
+ secondary: {
23
+ DEFAULT: 'hsl(var(--secondary) / <alpha-value>)',
24
+ foreground: 'hsl(var(--secondary-foreground) / <alpha-value>)',
25
+ },
26
+ muted: {
27
+ DEFAULT: 'hsl(var(--muted) / <alpha-value>)',
28
+ foreground: 'hsl(var(--muted-foreground) / <alpha-value>)',
29
+ },
30
+ accent: {
31
+ DEFAULT: 'hsl(var(--accent) / <alpha-value>)',
32
+ foreground: 'hsl(var(--accent-foreground) / <alpha-value>)',
33
+ },
34
+ destructive: {
35
+ DEFAULT: 'hsl(var(--destructive) / <alpha-value>)',
36
+ foreground: 'hsl(var(--destructive-foreground) / <alpha-value>)',
37
+ },
38
+ border: 'hsl(var(--border) / <alpha-value>)',
39
+ input: 'hsl(var(--input) / <alpha-value>)',
40
+ ring: 'hsl(var(--ring) / <alpha-value>)',
41
+
42
+ // Primitive palette tokens exported dynamically via CSS variable mappings
43
+ brand: {
44
+ blue: 'hsl(var(--brand-blue) / <alpha-value>)',
45
+ green: 'hsl(var(--brand-green) / <alpha-value>)',
46
+ 'floral-white': 'hsl(var(--brand-floral-white) / <alpha-value>)',
47
+ },
48
+ neutral: {
49
+ white: 'hsl(var(--neutral-white) / <alpha-value>)',
50
+ black: 'hsl(var(--neutral-black) / <alpha-value>)',
51
+ gray50: 'hsl(var(--neutral-gray50) / <alpha-value>)',
52
+ gray100: 'hsl(var(--neutral-gray100) / <alpha-value>)',
53
+ gray200: 'hsl(var(--neutral-gray200) / <alpha-value>)',
54
+ gray300: 'hsl(var(--neutral-gray300) / <alpha-value>)',
55
+ gray400: 'hsl(var(--neutral-gray400) / <alpha-value>)',
56
+ gray500: 'hsl(var(--neutral-gray500) / <alpha-value>)',
57
+ gray600: 'hsl(var(--neutral-gray600) / <alpha-value>)',
58
+ gray700: 'hsl(var(--neutral-gray700) / <alpha-value>)',
59
+ gray800: 'hsl(var(--neutral-gray800) / <alpha-value>)',
60
+ gray900: 'hsl(var(--neutral-gray900) / <alpha-value>)',
61
+ gray950: 'hsl(var(--neutral-gray950) / <alpha-value>)',
62
+ gray975: 'hsl(var(--neutral-gray975) / <alpha-value>)',
63
+ gray990: 'hsl(var(--neutral-gray990) / <alpha-value>)',
64
+ },
65
+ semantic: {
66
+ success: 'hsl(var(--semantic-success) / <alpha-value>)',
67
+ 'success-dark': 'hsl(var(--semantic-success-dark) / <alpha-value>)',
68
+ destructive: 'hsl(var(--semantic-destructive) / <alpha-value>)',
69
+ 'destructive-dark': 'hsl(var(--semantic-destructive-dark) / <alpha-value>)',
70
+ },
71
+ },
72
+ borderRadius: {
73
+ lg: 'var(--radius)',
74
+ md: 'calc(var(--radius) - 2px)',
75
+ sm: 'calc(var(--radius) - 4px)',
76
+ xl: 'calc(var(--radius) + 4px)',
77
+ '2xl': 'calc(var(--radius) + 8px)',
78
+ },
79
+ boxShadow: {
80
+ sm: '0 1px 2px 0 rgb(0 0 0 / 0.05)',
81
+ DEFAULT: '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)',
82
+ md: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',
83
+ lg: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)',
84
+ xl: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)',
85
+ '2xl': '0 25px 50px -12px rgb(0 0 0 / 0.25)',
86
+ inner: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.05)',
87
+ },
88
+ keyframes: {
89
+ 'accordion-down': {
90
+ from: { height: '0' },
91
+ to: { height: 'var(--radix-accordion-content-height)' },
92
+ },
93
+ 'accordion-up': {
94
+ from: { height: 'var(--radix-accordion-content-height)' },
95
+ to: { height: '0' },
96
+ },
97
+ },
98
+ animation: {
99
+ 'accordion-down': 'accordion-down 0.2s ease-out',
100
+ 'accordion-up': 'accordion-up 0.2s ease-out',
101
+ },
102
+ },
103
+ },
104
+ };