@gntik-ai/tokens 0.0.0-stage → 0.3.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.
- package/dist/figma-variables.json +1964 -0
- package/dist/tokens.d.ts +11 -0
- package/dist/tokens.js +210 -0
- package/dist/tokens.json +2433 -0
- package/dist/tokens.ts +212 -0
- package/package.json +43 -3
- package/src/brand.css +147 -0
- package/src/density.css +46 -0
- package/src/motion.css +26 -0
- package/src/pairing.css +46 -0
- package/src/runtime.d.ts +11 -0
- package/src/runtime.js +52 -0
- package/src/scope.css +53 -0
- package/src/tailwind.css +128 -0
- package/README.md +0 -3
package/dist/tokens.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Generated by @gntik-ai/tokens/scripts/export-tokens.mjs. Do not edit.
|
|
2
|
+
export declare const themes: readonly [ "dark", "light", "high_contrast" ];
|
|
3
|
+
export type Theme = (typeof themes)[number];
|
|
4
|
+
export declare const colorTokens: readonly ["primary", "primary-foreground", "brand-secondary", "brand-accent", "ring", "background", "foreground", "card", "card-foreground", "popover", "popover-foreground", "muted", "muted-foreground", "secondary", "secondary-foreground", "accent", "accent-foreground", "border", "input", "chrome", "destructive", "destructive-foreground", "success", "warning", "info", "category-rose", "category-violet", "category-amber", "category-cyan", "primary-text", "success-text", "warning-text", "destructive-text", "focus-ring", "primary-chip-text", "success-chip-text", "warning-chip-text", "destructive-chip-text"];
|
|
5
|
+
export type ColorToken = (typeof colorTokens)[number];
|
|
6
|
+
export declare const colors: Record<Theme, Record<ColorToken, string>>;
|
|
7
|
+
export declare const cssVar: (token: ColorToken) => string;
|
|
8
|
+
export declare const radius: Readonly<Record<"base" | "sm" | "md" | "lg" | "xl", number>>;
|
|
9
|
+
export declare const fonts: Readonly<Record<"sans" | "mono", string>>;
|
|
10
|
+
export declare const shadows: Readonly<Record<Theme, Readonly<Record<"sm" | "md" | "lg", string>>>>;
|
|
11
|
+
export declare const motion: Readonly<Record<"duration-fast" | "duration-normal" | "duration-slow" | "ease-standard" | "ease-emphasized" | "ease-exit", string>>;
|
package/dist/tokens.js
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
// Generated by @gntik-ai/tokens/scripts/export-tokens.mjs from brand.css. Do not edit.
|
|
2
|
+
export const themes = [
|
|
3
|
+
"dark",
|
|
4
|
+
"light",
|
|
5
|
+
"high_contrast"
|
|
6
|
+
];
|
|
7
|
+
export const colorTokens = [
|
|
8
|
+
"primary",
|
|
9
|
+
"primary-foreground",
|
|
10
|
+
"brand-secondary",
|
|
11
|
+
"brand-accent",
|
|
12
|
+
"ring",
|
|
13
|
+
"background",
|
|
14
|
+
"foreground",
|
|
15
|
+
"card",
|
|
16
|
+
"card-foreground",
|
|
17
|
+
"popover",
|
|
18
|
+
"popover-foreground",
|
|
19
|
+
"muted",
|
|
20
|
+
"muted-foreground",
|
|
21
|
+
"secondary",
|
|
22
|
+
"secondary-foreground",
|
|
23
|
+
"accent",
|
|
24
|
+
"accent-foreground",
|
|
25
|
+
"border",
|
|
26
|
+
"input",
|
|
27
|
+
"chrome",
|
|
28
|
+
"destructive",
|
|
29
|
+
"destructive-foreground",
|
|
30
|
+
"success",
|
|
31
|
+
"warning",
|
|
32
|
+
"info",
|
|
33
|
+
"category-rose",
|
|
34
|
+
"category-violet",
|
|
35
|
+
"category-amber",
|
|
36
|
+
"category-cyan",
|
|
37
|
+
"primary-text",
|
|
38
|
+
"success-text",
|
|
39
|
+
"warning-text",
|
|
40
|
+
"destructive-text",
|
|
41
|
+
"focus-ring",
|
|
42
|
+
"primary-chip-text",
|
|
43
|
+
"success-chip-text",
|
|
44
|
+
"warning-chip-text",
|
|
45
|
+
"destructive-chip-text"
|
|
46
|
+
];
|
|
47
|
+
/** sRGB hex per theme (aliases resolved). Prefer CSS classes; use these for canvas/SVG/design tools. */
|
|
48
|
+
export const colors = {
|
|
49
|
+
"dark": {
|
|
50
|
+
"primary": "#32cd73",
|
|
51
|
+
"primary-foreground": "#0a1a12",
|
|
52
|
+
"brand-secondary": "#2a7952",
|
|
53
|
+
"brand-accent": "#67e09f",
|
|
54
|
+
"ring": "#32cd73",
|
|
55
|
+
"background": "#0d1914",
|
|
56
|
+
"foreground": "#eef2ef",
|
|
57
|
+
"card": "#13201a",
|
|
58
|
+
"card-foreground": "#eef2ef",
|
|
59
|
+
"popover": "#111d17",
|
|
60
|
+
"popover-foreground": "#eef2ef",
|
|
61
|
+
"muted": "#26362e",
|
|
62
|
+
"muted-foreground": "#a5b6ac",
|
|
63
|
+
"secondary": "#213029",
|
|
64
|
+
"secondary-foreground": "#eef2ef",
|
|
65
|
+
"accent": "#1e3329",
|
|
66
|
+
"accent-foreground": "#90dfb1",
|
|
67
|
+
"border": "#2b3b33",
|
|
68
|
+
"input": "#2b3b33",
|
|
69
|
+
"chrome": "#08120d",
|
|
70
|
+
"destructive": "#dd2c2c",
|
|
71
|
+
"destructive-foreground": "#ffffff",
|
|
72
|
+
"success": "#32cd73",
|
|
73
|
+
"warning": "#faaf2e",
|
|
74
|
+
"info": "#58bcee",
|
|
75
|
+
"category-rose": "#eb476b",
|
|
76
|
+
"category-violet": "#9e74e7",
|
|
77
|
+
"category-amber": "#fab338",
|
|
78
|
+
"category-cyan": "#33cceb",
|
|
79
|
+
"primary-text": "#32cd73",
|
|
80
|
+
"success-text": "#32cd73",
|
|
81
|
+
"warning-text": "#faaf2e",
|
|
82
|
+
"destructive-text": "#eb476b",
|
|
83
|
+
"focus-ring": "#32cd73",
|
|
84
|
+
"primary-chip-text": "#32cd73",
|
|
85
|
+
"success-chip-text": "#32cd73",
|
|
86
|
+
"warning-chip-text": "#faaf2e",
|
|
87
|
+
"destructive-chip-text": "#eef2ef"
|
|
88
|
+
},
|
|
89
|
+
"light": {
|
|
90
|
+
"primary": "#32cd73",
|
|
91
|
+
"primary-foreground": "#0b1e14",
|
|
92
|
+
"brand-secondary": "#206545",
|
|
93
|
+
"brand-accent": "#279b59",
|
|
94
|
+
"ring": "#32cd73",
|
|
95
|
+
"background": "#f6f8f2",
|
|
96
|
+
"foreground": "#13251d",
|
|
97
|
+
"card": "#ffffff",
|
|
98
|
+
"card-foreground": "#13251d",
|
|
99
|
+
"popover": "#ffffff",
|
|
100
|
+
"popover-foreground": "#13251d",
|
|
101
|
+
"muted": "#eff1ea",
|
|
102
|
+
"muted-foreground": "#5e6e66",
|
|
103
|
+
"secondary": "#edefe7",
|
|
104
|
+
"secondary-foreground": "#1d352a",
|
|
105
|
+
"accent": "#e1f4e9",
|
|
106
|
+
"accent-foreground": "#19573b",
|
|
107
|
+
"border": "#dbe0d6",
|
|
108
|
+
"input": "#dbe0d6",
|
|
109
|
+
"chrome": "#f8f9f6",
|
|
110
|
+
"destructive": "#d32222",
|
|
111
|
+
"destructive-foreground": "#ffffff",
|
|
112
|
+
"success": "#32cd73",
|
|
113
|
+
"warning": "#f59f0a",
|
|
114
|
+
"info": "#1673b6",
|
|
115
|
+
"category-rose": "#e21d48",
|
|
116
|
+
"category-violet": "#7945d3",
|
|
117
|
+
"category-amber": "#f59f0a",
|
|
118
|
+
"category-cyan": "#15a4c1",
|
|
119
|
+
"primary-text": "#19573b",
|
|
120
|
+
"success-text": "#19573b",
|
|
121
|
+
"warning-text": "#13251d",
|
|
122
|
+
"destructive-text": "#d32222",
|
|
123
|
+
"focus-ring": "#206545",
|
|
124
|
+
"primary-chip-text": "#19573b",
|
|
125
|
+
"success-chip-text": "#19573b",
|
|
126
|
+
"warning-chip-text": "#13251d",
|
|
127
|
+
"destructive-chip-text": "#13251d"
|
|
128
|
+
},
|
|
129
|
+
"high_contrast": {
|
|
130
|
+
"primary": "#ffee00",
|
|
131
|
+
"primary-foreground": "#000000",
|
|
132
|
+
"brand-secondary": "#00ddff",
|
|
133
|
+
"brand-accent": "#00f541",
|
|
134
|
+
"ring": "#ffee00",
|
|
135
|
+
"background": "#000000",
|
|
136
|
+
"foreground": "#ffffff",
|
|
137
|
+
"card": "#0a0a0a",
|
|
138
|
+
"card-foreground": "#ffffff",
|
|
139
|
+
"popover": "#0f0f0f",
|
|
140
|
+
"popover-foreground": "#ffffff",
|
|
141
|
+
"muted": "#1f1f1f",
|
|
142
|
+
"muted-foreground": "#e0e0e0",
|
|
143
|
+
"secondary": "#1f1f1f",
|
|
144
|
+
"secondary-foreground": "#ffffff",
|
|
145
|
+
"accent": "#00ddff",
|
|
146
|
+
"accent-foreground": "#000000",
|
|
147
|
+
"border": "#b8b8b8",
|
|
148
|
+
"input": "#b8b8b8",
|
|
149
|
+
"chrome": "#000000",
|
|
150
|
+
"destructive": "#ff3d3d",
|
|
151
|
+
"destructive-foreground": "#000000",
|
|
152
|
+
"success": "#00f541",
|
|
153
|
+
"warning": "#ffbb00",
|
|
154
|
+
"info": "#00ddff",
|
|
155
|
+
"category-rose": "#ff3d3d",
|
|
156
|
+
"category-violet": "#cc66ff",
|
|
157
|
+
"category-amber": "#ffbb00",
|
|
158
|
+
"category-cyan": "#00ddff",
|
|
159
|
+
"primary-text": "#ffee00",
|
|
160
|
+
"success-text": "#00f541",
|
|
161
|
+
"warning-text": "#ffbb00",
|
|
162
|
+
"destructive-text": "#ff3d3d",
|
|
163
|
+
"focus-ring": "#ffee00",
|
|
164
|
+
"primary-chip-text": "#ffee00",
|
|
165
|
+
"success-chip-text": "#00f541",
|
|
166
|
+
"warning-chip-text": "#ffbb00",
|
|
167
|
+
"destructive-chip-text": "#ffffff"
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
/** CSS custom property for a token: cssVar('primary') → "--primary". */
|
|
171
|
+
export const cssVar = (token) => `--${token}`;
|
|
172
|
+
/** Radii in px (16px root). */
|
|
173
|
+
export const radius = {
|
|
174
|
+
"base": 10,
|
|
175
|
+
"sm": 6,
|
|
176
|
+
"md": 8,
|
|
177
|
+
"lg": 10,
|
|
178
|
+
"xl": 16
|
|
179
|
+
};
|
|
180
|
+
export const fonts = {
|
|
181
|
+
"sans": "\"Geist\",\"Helvetica Neue\",Arial,sans-serif",
|
|
182
|
+
"mono": "\"Geist Mono\",ui-monospace,\"SFMono-Regular\",Menlo,monospace"
|
|
183
|
+
};
|
|
184
|
+
/** CSS box-shadow value per theme. */
|
|
185
|
+
export const shadows = {
|
|
186
|
+
"dark": {
|
|
187
|
+
"sm": "0 1px 2px -1px hsl(152 60% 2% / .55),0 1px 1px hsl(152 60% 2% / .35)",
|
|
188
|
+
"md": "0 4px 14px -2px hsl(152 70% 1% / .6),0 14px 36px -14px hsl(152 70% 1% / .55)",
|
|
189
|
+
"lg": "0 2px 4px -2px hsl(152 70% 1% / .6),0 16px 40px -16px hsl(152 70% 1% / .55)"
|
|
190
|
+
},
|
|
191
|
+
"light": {
|
|
192
|
+
"sm": "0 1px 2px -1px hsl(152 40% 4% / .16),0 1px 1px hsl(152 40% 4% / .08)",
|
|
193
|
+
"md": "0 4px 12px -2px hsl(152 40% 4% / .12),0 12px 32px -12px hsl(152 40% 4% / .18)",
|
|
194
|
+
"lg": "0 2px 4px -2px hsl(152 40% 4% / .2),0 16px 40px -16px hsl(152 40% 4% / .2)"
|
|
195
|
+
},
|
|
196
|
+
"high_contrast": {
|
|
197
|
+
"sm": "0 0 0 1px hsl(0 0% 72%)",
|
|
198
|
+
"md": "0 0 0 1px hsl(0 0% 72%)",
|
|
199
|
+
"lg": "0 0 0 2px hsl(0 0% 80%)"
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
/** Motion tokens (durations collapse to 0ms under prefers-reduced-motion in CSS). */
|
|
203
|
+
export const motion = {
|
|
204
|
+
"duration-fast": "120ms",
|
|
205
|
+
"duration-normal": "200ms",
|
|
206
|
+
"duration-slow": "320ms",
|
|
207
|
+
"ease-standard": "cubic-bezier(0.2, 0, 0, 1)",
|
|
208
|
+
"ease-emphasized": "cubic-bezier(0.05, 0.7, 0.1, 1)",
|
|
209
|
+
"ease-exit": "cubic-bezier(0.3, 0, 1, 1)"
|
|
210
|
+
};
|