@skye-ds/tokens-js 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.
package/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # @skye-ds/tokens-js
2
+
3
+ JS/TS token constants for the Antigravity design system.
4
+ Auto-generated — do not edit by hand.
5
+
6
+ ## Install
7
+
8
+ ```bash
9
+ pnpm add @skye-ds/tokens-js
10
+ ```
11
+
12
+ ## Usage
13
+
14
+ ```ts
15
+ import { tokens } from '@skye-ds/tokens-js'
16
+
17
+ tokens.color.text.primary // '#111827'
18
+ tokens.color.brand.primary.default // '#2563eb'
19
+ tokens.spacing.component.md // '12px'
20
+ tokens.radius.interactive // '6px'
21
+ tokens.motion.duration.normal // '200ms'
22
+ ```
@@ -0,0 +1,196 @@
1
+ declare const tokens: {
2
+ readonly typography: {
3
+ readonly display: {
4
+ readonly xl: {
5
+ readonly size: "48px";
6
+ readonly "line-height": "1.25";
7
+ };
8
+ };
9
+ readonly heading: {
10
+ readonly xl: {
11
+ readonly size: "24px";
12
+ };
13
+ readonly lg: {
14
+ readonly size: "20px";
15
+ };
16
+ readonly md: {
17
+ readonly size: "18px";
18
+ };
19
+ };
20
+ readonly body: {
21
+ readonly lg: {
22
+ readonly size: "16px";
23
+ };
24
+ readonly md: {
25
+ readonly size: "14px";
26
+ };
27
+ readonly sm: {
28
+ readonly size: "12px";
29
+ };
30
+ };
31
+ readonly label: {
32
+ readonly md: {
33
+ readonly size: "14px";
34
+ readonly weight: "500";
35
+ };
36
+ };
37
+ readonly code: {
38
+ readonly md: {
39
+ readonly size: "14px";
40
+ };
41
+ };
42
+ };
43
+ readonly color: {
44
+ readonly brand: {
45
+ readonly primary: {
46
+ readonly default: "#2563eb";
47
+ readonly hover: "#1d4ed8";
48
+ readonly subtle: "#eff6ff";
49
+ };
50
+ readonly secondary: {
51
+ readonly default: "#4b5563";
52
+ };
53
+ };
54
+ readonly feedback: {
55
+ readonly error: {
56
+ readonly default: "#dc2626";
57
+ readonly subtle: "#fef2f2";
58
+ };
59
+ readonly warning: {
60
+ readonly default: "#f59e0b";
61
+ readonly subtle: "#fffbeb";
62
+ };
63
+ readonly success: {
64
+ readonly default: "#16a34a";
65
+ readonly subtle: "#f0fdf4";
66
+ };
67
+ readonly info: {
68
+ readonly default: "#3b82f6";
69
+ readonly subtle: "#eff6ff";
70
+ };
71
+ };
72
+ readonly surface: {
73
+ readonly default: "#ffffff";
74
+ readonly subtle: "#f9fafb";
75
+ readonly raised: "#ffffff";
76
+ };
77
+ readonly text: {
78
+ readonly primary: "#111827";
79
+ readonly secondary: "#4b5563";
80
+ readonly tertiary: "#9ca3af";
81
+ readonly disabled: "#d1d5db";
82
+ readonly inverse: "#ffffff";
83
+ readonly "on-brand": "#ffffff";
84
+ };
85
+ readonly border: {
86
+ readonly default: "#e5e7eb";
87
+ readonly strong: "#9ca3af";
88
+ readonly focus: "#3b82f6";
89
+ readonly error: "#ef4444";
90
+ };
91
+ };
92
+ readonly motion: {
93
+ readonly duration: {
94
+ readonly instant: "0ms";
95
+ readonly fast: "100ms";
96
+ readonly normal: "200ms";
97
+ readonly slow: "300ms";
98
+ readonly slower: "500ms";
99
+ };
100
+ readonly easing: {
101
+ readonly default: "cubic-bezier(0.4, 0, 0.2, 1)";
102
+ readonly in: "cubic-bezier(0.4, 0, 1, 1)";
103
+ readonly out: "cubic-bezier(0, 0, 0.2, 1)";
104
+ readonly spring: "cubic-bezier(0.34, 1.56, 0.64, 1)";
105
+ };
106
+ };
107
+ readonly radius: {
108
+ readonly none: "0px";
109
+ readonly sm: "2px";
110
+ readonly md: "6px";
111
+ readonly lg: "8px";
112
+ readonly xl: "12px";
113
+ readonly full: "9999px";
114
+ readonly interactive: "6px";
115
+ readonly card: "8px";
116
+ };
117
+ readonly shadow: {
118
+ readonly "0": "none";
119
+ readonly "1": "0 1px 2px 0 rgb(0 0 0 / 0.05)";
120
+ readonly "2": "0 1px 3px 0 rgb(0 0 0 / 0.10), 0 1px 2px -1px rgb(0 0 0 / 0.10)";
121
+ readonly "3": "0 4px 6px -1px rgb(0 0 0 / 0.10), 0 2px 4px -2px rgb(0 0 0 / 0.10)";
122
+ readonly "4": "0 10px 15px -3px rgb(0 0 0 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.10)";
123
+ };
124
+ readonly spacing: {
125
+ readonly layout: {
126
+ readonly xs: "8px";
127
+ readonly sm: "16px";
128
+ readonly md: "24px";
129
+ readonly lg: "32px";
130
+ readonly xl: "48px";
131
+ };
132
+ readonly component: {
133
+ readonly xs: "4px";
134
+ readonly sm: "8px";
135
+ readonly md: "12px";
136
+ readonly lg: "16px";
137
+ readonly xl: "24px";
138
+ };
139
+ readonly inline: {
140
+ readonly xs: "4px";
141
+ readonly sm: "8px";
142
+ readonly md: "12px";
143
+ };
144
+ };
145
+ readonly button: {
146
+ readonly bg: {
147
+ readonly default: "#2563eb";
148
+ readonly hover: "#1d4ed8";
149
+ readonly disabled: "#f9fafb";
150
+ };
151
+ readonly text: {
152
+ readonly default: "#ffffff";
153
+ readonly disabled: "#d1d5db";
154
+ };
155
+ readonly border: {
156
+ readonly default: "#2563eb";
157
+ readonly focus: "#3b82f6";
158
+ };
159
+ readonly padding: {
160
+ readonly x: "16px";
161
+ readonly y: "12px";
162
+ };
163
+ readonly radius: "6px";
164
+ readonly font: {
165
+ readonly size: "14px";
166
+ readonly weight: "500";
167
+ };
168
+ };
169
+ readonly input: {
170
+ readonly bg: {
171
+ readonly default: "#ffffff";
172
+ readonly disabled: "#f9fafb";
173
+ };
174
+ readonly text: {
175
+ readonly default: "#111827";
176
+ readonly placeholder: "#9ca3af";
177
+ };
178
+ readonly border: {
179
+ readonly default: "#e5e7eb";
180
+ readonly hover: "#9ca3af";
181
+ readonly focus: "#3b82f6";
182
+ readonly error: "#ef4444";
183
+ };
184
+ readonly padding: {
185
+ readonly x: "16px";
186
+ readonly y: "12px";
187
+ };
188
+ readonly radius: "6px";
189
+ readonly font: {
190
+ readonly size: "14px";
191
+ };
192
+ };
193
+ };
194
+ declare const tokenMap: Record<string, string>;
195
+
196
+ export { tokenMap, tokens };
@@ -0,0 +1,196 @@
1
+ declare const tokens: {
2
+ readonly typography: {
3
+ readonly display: {
4
+ readonly xl: {
5
+ readonly size: "48px";
6
+ readonly "line-height": "1.25";
7
+ };
8
+ };
9
+ readonly heading: {
10
+ readonly xl: {
11
+ readonly size: "24px";
12
+ };
13
+ readonly lg: {
14
+ readonly size: "20px";
15
+ };
16
+ readonly md: {
17
+ readonly size: "18px";
18
+ };
19
+ };
20
+ readonly body: {
21
+ readonly lg: {
22
+ readonly size: "16px";
23
+ };
24
+ readonly md: {
25
+ readonly size: "14px";
26
+ };
27
+ readonly sm: {
28
+ readonly size: "12px";
29
+ };
30
+ };
31
+ readonly label: {
32
+ readonly md: {
33
+ readonly size: "14px";
34
+ readonly weight: "500";
35
+ };
36
+ };
37
+ readonly code: {
38
+ readonly md: {
39
+ readonly size: "14px";
40
+ };
41
+ };
42
+ };
43
+ readonly color: {
44
+ readonly brand: {
45
+ readonly primary: {
46
+ readonly default: "#2563eb";
47
+ readonly hover: "#1d4ed8";
48
+ readonly subtle: "#eff6ff";
49
+ };
50
+ readonly secondary: {
51
+ readonly default: "#4b5563";
52
+ };
53
+ };
54
+ readonly feedback: {
55
+ readonly error: {
56
+ readonly default: "#dc2626";
57
+ readonly subtle: "#fef2f2";
58
+ };
59
+ readonly warning: {
60
+ readonly default: "#f59e0b";
61
+ readonly subtle: "#fffbeb";
62
+ };
63
+ readonly success: {
64
+ readonly default: "#16a34a";
65
+ readonly subtle: "#f0fdf4";
66
+ };
67
+ readonly info: {
68
+ readonly default: "#3b82f6";
69
+ readonly subtle: "#eff6ff";
70
+ };
71
+ };
72
+ readonly surface: {
73
+ readonly default: "#ffffff";
74
+ readonly subtle: "#f9fafb";
75
+ readonly raised: "#ffffff";
76
+ };
77
+ readonly text: {
78
+ readonly primary: "#111827";
79
+ readonly secondary: "#4b5563";
80
+ readonly tertiary: "#9ca3af";
81
+ readonly disabled: "#d1d5db";
82
+ readonly inverse: "#ffffff";
83
+ readonly "on-brand": "#ffffff";
84
+ };
85
+ readonly border: {
86
+ readonly default: "#e5e7eb";
87
+ readonly strong: "#9ca3af";
88
+ readonly focus: "#3b82f6";
89
+ readonly error: "#ef4444";
90
+ };
91
+ };
92
+ readonly motion: {
93
+ readonly duration: {
94
+ readonly instant: "0ms";
95
+ readonly fast: "100ms";
96
+ readonly normal: "200ms";
97
+ readonly slow: "300ms";
98
+ readonly slower: "500ms";
99
+ };
100
+ readonly easing: {
101
+ readonly default: "cubic-bezier(0.4, 0, 0.2, 1)";
102
+ readonly in: "cubic-bezier(0.4, 0, 1, 1)";
103
+ readonly out: "cubic-bezier(0, 0, 0.2, 1)";
104
+ readonly spring: "cubic-bezier(0.34, 1.56, 0.64, 1)";
105
+ };
106
+ };
107
+ readonly radius: {
108
+ readonly none: "0px";
109
+ readonly sm: "2px";
110
+ readonly md: "6px";
111
+ readonly lg: "8px";
112
+ readonly xl: "12px";
113
+ readonly full: "9999px";
114
+ readonly interactive: "6px";
115
+ readonly card: "8px";
116
+ };
117
+ readonly shadow: {
118
+ readonly "0": "none";
119
+ readonly "1": "0 1px 2px 0 rgb(0 0 0 / 0.05)";
120
+ readonly "2": "0 1px 3px 0 rgb(0 0 0 / 0.10), 0 1px 2px -1px rgb(0 0 0 / 0.10)";
121
+ readonly "3": "0 4px 6px -1px rgb(0 0 0 / 0.10), 0 2px 4px -2px rgb(0 0 0 / 0.10)";
122
+ readonly "4": "0 10px 15px -3px rgb(0 0 0 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.10)";
123
+ };
124
+ readonly spacing: {
125
+ readonly layout: {
126
+ readonly xs: "8px";
127
+ readonly sm: "16px";
128
+ readonly md: "24px";
129
+ readonly lg: "32px";
130
+ readonly xl: "48px";
131
+ };
132
+ readonly component: {
133
+ readonly xs: "4px";
134
+ readonly sm: "8px";
135
+ readonly md: "12px";
136
+ readonly lg: "16px";
137
+ readonly xl: "24px";
138
+ };
139
+ readonly inline: {
140
+ readonly xs: "4px";
141
+ readonly sm: "8px";
142
+ readonly md: "12px";
143
+ };
144
+ };
145
+ readonly button: {
146
+ readonly bg: {
147
+ readonly default: "#2563eb";
148
+ readonly hover: "#1d4ed8";
149
+ readonly disabled: "#f9fafb";
150
+ };
151
+ readonly text: {
152
+ readonly default: "#ffffff";
153
+ readonly disabled: "#d1d5db";
154
+ };
155
+ readonly border: {
156
+ readonly default: "#2563eb";
157
+ readonly focus: "#3b82f6";
158
+ };
159
+ readonly padding: {
160
+ readonly x: "16px";
161
+ readonly y: "12px";
162
+ };
163
+ readonly radius: "6px";
164
+ readonly font: {
165
+ readonly size: "14px";
166
+ readonly weight: "500";
167
+ };
168
+ };
169
+ readonly input: {
170
+ readonly bg: {
171
+ readonly default: "#ffffff";
172
+ readonly disabled: "#f9fafb";
173
+ };
174
+ readonly text: {
175
+ readonly default: "#111827";
176
+ readonly placeholder: "#9ca3af";
177
+ };
178
+ readonly border: {
179
+ readonly default: "#e5e7eb";
180
+ readonly hover: "#9ca3af";
181
+ readonly focus: "#3b82f6";
182
+ readonly error: "#ef4444";
183
+ };
184
+ readonly padding: {
185
+ readonly x: "16px";
186
+ readonly y: "12px";
187
+ };
188
+ readonly radius: "6px";
189
+ readonly font: {
190
+ readonly size: "14px";
191
+ };
192
+ };
193
+ };
194
+ declare const tokenMap: Record<string, string>;
195
+
196
+ export { tokenMap, tokens };
package/dist/index.js ADDED
@@ -0,0 +1,320 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // index.ts
20
+ var index_exports = {};
21
+ __export(index_exports, {
22
+ tokenMap: () => tokenMap,
23
+ tokens: () => tokens
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+ var tokens = {
27
+ "typography": {
28
+ "display": {
29
+ "xl": {
30
+ "size": "48px",
31
+ "line-height": "1.25"
32
+ }
33
+ },
34
+ "heading": {
35
+ "xl": {
36
+ "size": "24px"
37
+ },
38
+ "lg": {
39
+ "size": "20px"
40
+ },
41
+ "md": {
42
+ "size": "18px"
43
+ }
44
+ },
45
+ "body": {
46
+ "lg": {
47
+ "size": "16px"
48
+ },
49
+ "md": {
50
+ "size": "14px"
51
+ },
52
+ "sm": {
53
+ "size": "12px"
54
+ }
55
+ },
56
+ "label": {
57
+ "md": {
58
+ "size": "14px",
59
+ "weight": "500"
60
+ }
61
+ },
62
+ "code": {
63
+ "md": {
64
+ "size": "14px"
65
+ }
66
+ }
67
+ },
68
+ "color": {
69
+ "brand": {
70
+ "primary": {
71
+ "default": "#2563eb",
72
+ "hover": "#1d4ed8",
73
+ "subtle": "#eff6ff"
74
+ },
75
+ "secondary": {
76
+ "default": "#4b5563"
77
+ }
78
+ },
79
+ "feedback": {
80
+ "error": {
81
+ "default": "#dc2626",
82
+ "subtle": "#fef2f2"
83
+ },
84
+ "warning": {
85
+ "default": "#f59e0b",
86
+ "subtle": "#fffbeb"
87
+ },
88
+ "success": {
89
+ "default": "#16a34a",
90
+ "subtle": "#f0fdf4"
91
+ },
92
+ "info": {
93
+ "default": "#3b82f6",
94
+ "subtle": "#eff6ff"
95
+ }
96
+ },
97
+ "surface": {
98
+ "default": "#ffffff",
99
+ "subtle": "#f9fafb",
100
+ "raised": "#ffffff"
101
+ },
102
+ "text": {
103
+ "primary": "#111827",
104
+ "secondary": "#4b5563",
105
+ "tertiary": "#9ca3af",
106
+ "disabled": "#d1d5db",
107
+ "inverse": "#ffffff",
108
+ "on-brand": "#ffffff"
109
+ },
110
+ "border": {
111
+ "default": "#e5e7eb",
112
+ "strong": "#9ca3af",
113
+ "focus": "#3b82f6",
114
+ "error": "#ef4444"
115
+ }
116
+ },
117
+ "motion": {
118
+ "duration": {
119
+ "instant": "0ms",
120
+ "fast": "100ms",
121
+ "normal": "200ms",
122
+ "slow": "300ms",
123
+ "slower": "500ms"
124
+ },
125
+ "easing": {
126
+ "default": "cubic-bezier(0.4, 0, 0.2, 1)",
127
+ "in": "cubic-bezier(0.4, 0, 1, 1)",
128
+ "out": "cubic-bezier(0, 0, 0.2, 1)",
129
+ "spring": "cubic-bezier(0.34, 1.56, 0.64, 1)"
130
+ }
131
+ },
132
+ "radius": {
133
+ "none": "0px",
134
+ "sm": "2px",
135
+ "md": "6px",
136
+ "lg": "8px",
137
+ "xl": "12px",
138
+ "full": "9999px",
139
+ "interactive": "6px",
140
+ "card": "8px"
141
+ },
142
+ "shadow": {
143
+ "0": "none",
144
+ "1": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
145
+ "2": "0 1px 3px 0 rgb(0 0 0 / 0.10), 0 1px 2px -1px rgb(0 0 0 / 0.10)",
146
+ "3": "0 4px 6px -1px rgb(0 0 0 / 0.10), 0 2px 4px -2px rgb(0 0 0 / 0.10)",
147
+ "4": "0 10px 15px -3px rgb(0 0 0 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.10)"
148
+ },
149
+ "spacing": {
150
+ "layout": {
151
+ "xs": "8px",
152
+ "sm": "16px",
153
+ "md": "24px",
154
+ "lg": "32px",
155
+ "xl": "48px"
156
+ },
157
+ "component": {
158
+ "xs": "4px",
159
+ "sm": "8px",
160
+ "md": "12px",
161
+ "lg": "16px",
162
+ "xl": "24px"
163
+ },
164
+ "inline": {
165
+ "xs": "4px",
166
+ "sm": "8px",
167
+ "md": "12px"
168
+ }
169
+ },
170
+ "button": {
171
+ "bg": {
172
+ "default": "#2563eb",
173
+ "hover": "#1d4ed8",
174
+ "disabled": "#f9fafb"
175
+ },
176
+ "text": {
177
+ "default": "#ffffff",
178
+ "disabled": "#d1d5db"
179
+ },
180
+ "border": {
181
+ "default": "#2563eb",
182
+ "focus": "#3b82f6"
183
+ },
184
+ "padding": {
185
+ "x": "16px",
186
+ "y": "12px"
187
+ },
188
+ "radius": "6px",
189
+ "font": {
190
+ "size": "14px",
191
+ "weight": "500"
192
+ }
193
+ },
194
+ "input": {
195
+ "bg": {
196
+ "default": "#ffffff",
197
+ "disabled": "#f9fafb"
198
+ },
199
+ "text": {
200
+ "default": "#111827",
201
+ "placeholder": "#9ca3af"
202
+ },
203
+ "border": {
204
+ "default": "#e5e7eb",
205
+ "hover": "#9ca3af",
206
+ "focus": "#3b82f6",
207
+ "error": "#ef4444"
208
+ },
209
+ "padding": {
210
+ "x": "16px",
211
+ "y": "12px"
212
+ },
213
+ "radius": "6px",
214
+ "font": {
215
+ "size": "14px"
216
+ }
217
+ }
218
+ };
219
+ var tokenMap = {
220
+ "typography.display.xl.size": "48px",
221
+ "typography.display.xl.line.height": "1.25",
222
+ "typography.heading.xl.size": "24px",
223
+ "typography.heading.lg.size": "20px",
224
+ "typography.heading.md.size": "18px",
225
+ "typography.body.lg.size": "16px",
226
+ "typography.body.md.size": "14px",
227
+ "typography.body.sm.size": "12px",
228
+ "typography.label.md.size": "14px",
229
+ "typography.label.md.weight": "500",
230
+ "typography.code.md.size": "14px",
231
+ "color.brand.primary.default": "#2563eb",
232
+ "color.brand.primary.hover": "#1d4ed8",
233
+ "color.brand.primary.subtle": "#eff6ff",
234
+ "color.brand.secondary.default": "#4b5563",
235
+ "color.feedback.error.default": "#dc2626",
236
+ "color.feedback.error.subtle": "#fef2f2",
237
+ "color.feedback.warning.default": "#f59e0b",
238
+ "color.feedback.warning.subtle": "#fffbeb",
239
+ "color.feedback.success.default": "#16a34a",
240
+ "color.feedback.success.subtle": "#f0fdf4",
241
+ "color.feedback.info.default": "#3b82f6",
242
+ "color.feedback.info.subtle": "#eff6ff",
243
+ "color.surface.default": "#ffffff",
244
+ "color.surface.subtle": "#f9fafb",
245
+ "color.surface.raised": "#ffffff",
246
+ "color.text.primary": "#111827",
247
+ "color.text.secondary": "#4b5563",
248
+ "color.text.tertiary": "#9ca3af",
249
+ "color.text.disabled": "#d1d5db",
250
+ "color.text.inverse": "#ffffff",
251
+ "color.text.on.brand": "#ffffff",
252
+ "color.border.default": "#e5e7eb",
253
+ "color.border.strong": "#9ca3af",
254
+ "color.border.focus": "#3b82f6",
255
+ "color.border.error": "#ef4444",
256
+ "motion.duration.instant": "0ms",
257
+ "motion.duration.fast": "100ms",
258
+ "motion.duration.normal": "200ms",
259
+ "motion.duration.slow": "300ms",
260
+ "motion.duration.slower": "500ms",
261
+ "motion.easing.default": "cubic-bezier(0.4, 0, 0.2, 1)",
262
+ "motion.easing.in": "cubic-bezier(0.4, 0, 1, 1)",
263
+ "motion.easing.out": "cubic-bezier(0, 0, 0.2, 1)",
264
+ "motion.easing.spring": "cubic-bezier(0.34, 1.56, 0.64, 1)",
265
+ "radius.none": "0px",
266
+ "radius.sm": "2px",
267
+ "radius.md": "6px",
268
+ "radius.lg": "8px",
269
+ "radius.xl": "12px",
270
+ "radius.full": "9999px",
271
+ "radius.interactive": "6px",
272
+ "radius.card": "8px",
273
+ "shadow.0": "none",
274
+ "shadow.1": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
275
+ "shadow.2": "0 1px 3px 0 rgb(0 0 0 / 0.10), 0 1px 2px -1px rgb(0 0 0 / 0.10)",
276
+ "shadow.3": "0 4px 6px -1px rgb(0 0 0 / 0.10), 0 2px 4px -2px rgb(0 0 0 / 0.10)",
277
+ "shadow.4": "0 10px 15px -3px rgb(0 0 0 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.10)",
278
+ "spacing.layout.xs": "8px",
279
+ "spacing.layout.sm": "16px",
280
+ "spacing.layout.md": "24px",
281
+ "spacing.layout.lg": "32px",
282
+ "spacing.layout.xl": "48px",
283
+ "spacing.component.xs": "4px",
284
+ "spacing.component.sm": "8px",
285
+ "spacing.component.md": "12px",
286
+ "spacing.component.lg": "16px",
287
+ "spacing.component.xl": "24px",
288
+ "spacing.inline.xs": "4px",
289
+ "spacing.inline.sm": "8px",
290
+ "spacing.inline.md": "12px",
291
+ "button.bg.default": "#2563eb",
292
+ "button.bg.hover": "#1d4ed8",
293
+ "button.bg.disabled": "#f9fafb",
294
+ "button.text.default": "#ffffff",
295
+ "button.text.disabled": "#d1d5db",
296
+ "button.border.default": "#2563eb",
297
+ "button.border.focus": "#3b82f6",
298
+ "button.padding.x": "16px",
299
+ "button.padding.y": "12px",
300
+ "button.radius": "6px",
301
+ "button.font.size": "14px",
302
+ "button.font.weight": "500",
303
+ "input.bg.default": "#ffffff",
304
+ "input.bg.disabled": "#f9fafb",
305
+ "input.text.default": "#111827",
306
+ "input.text.placeholder": "#9ca3af",
307
+ "input.border.default": "#e5e7eb",
308
+ "input.border.hover": "#9ca3af",
309
+ "input.border.focus": "#3b82f6",
310
+ "input.border.error": "#ef4444",
311
+ "input.padding.x": "16px",
312
+ "input.padding.y": "12px",
313
+ "input.radius": "6px",
314
+ "input.font.size": "14px"
315
+ };
316
+ // Annotate the CommonJS export names for ESM import in node:
317
+ 0 && (module.exports = {
318
+ tokenMap,
319
+ tokens
320
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,295 @@
1
+ // index.ts
2
+ var tokens = {
3
+ "typography": {
4
+ "display": {
5
+ "xl": {
6
+ "size": "48px",
7
+ "line-height": "1.25"
8
+ }
9
+ },
10
+ "heading": {
11
+ "xl": {
12
+ "size": "24px"
13
+ },
14
+ "lg": {
15
+ "size": "20px"
16
+ },
17
+ "md": {
18
+ "size": "18px"
19
+ }
20
+ },
21
+ "body": {
22
+ "lg": {
23
+ "size": "16px"
24
+ },
25
+ "md": {
26
+ "size": "14px"
27
+ },
28
+ "sm": {
29
+ "size": "12px"
30
+ }
31
+ },
32
+ "label": {
33
+ "md": {
34
+ "size": "14px",
35
+ "weight": "500"
36
+ }
37
+ },
38
+ "code": {
39
+ "md": {
40
+ "size": "14px"
41
+ }
42
+ }
43
+ },
44
+ "color": {
45
+ "brand": {
46
+ "primary": {
47
+ "default": "#2563eb",
48
+ "hover": "#1d4ed8",
49
+ "subtle": "#eff6ff"
50
+ },
51
+ "secondary": {
52
+ "default": "#4b5563"
53
+ }
54
+ },
55
+ "feedback": {
56
+ "error": {
57
+ "default": "#dc2626",
58
+ "subtle": "#fef2f2"
59
+ },
60
+ "warning": {
61
+ "default": "#f59e0b",
62
+ "subtle": "#fffbeb"
63
+ },
64
+ "success": {
65
+ "default": "#16a34a",
66
+ "subtle": "#f0fdf4"
67
+ },
68
+ "info": {
69
+ "default": "#3b82f6",
70
+ "subtle": "#eff6ff"
71
+ }
72
+ },
73
+ "surface": {
74
+ "default": "#ffffff",
75
+ "subtle": "#f9fafb",
76
+ "raised": "#ffffff"
77
+ },
78
+ "text": {
79
+ "primary": "#111827",
80
+ "secondary": "#4b5563",
81
+ "tertiary": "#9ca3af",
82
+ "disabled": "#d1d5db",
83
+ "inverse": "#ffffff",
84
+ "on-brand": "#ffffff"
85
+ },
86
+ "border": {
87
+ "default": "#e5e7eb",
88
+ "strong": "#9ca3af",
89
+ "focus": "#3b82f6",
90
+ "error": "#ef4444"
91
+ }
92
+ },
93
+ "motion": {
94
+ "duration": {
95
+ "instant": "0ms",
96
+ "fast": "100ms",
97
+ "normal": "200ms",
98
+ "slow": "300ms",
99
+ "slower": "500ms"
100
+ },
101
+ "easing": {
102
+ "default": "cubic-bezier(0.4, 0, 0.2, 1)",
103
+ "in": "cubic-bezier(0.4, 0, 1, 1)",
104
+ "out": "cubic-bezier(0, 0, 0.2, 1)",
105
+ "spring": "cubic-bezier(0.34, 1.56, 0.64, 1)"
106
+ }
107
+ },
108
+ "radius": {
109
+ "none": "0px",
110
+ "sm": "2px",
111
+ "md": "6px",
112
+ "lg": "8px",
113
+ "xl": "12px",
114
+ "full": "9999px",
115
+ "interactive": "6px",
116
+ "card": "8px"
117
+ },
118
+ "shadow": {
119
+ "0": "none",
120
+ "1": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
121
+ "2": "0 1px 3px 0 rgb(0 0 0 / 0.10), 0 1px 2px -1px rgb(0 0 0 / 0.10)",
122
+ "3": "0 4px 6px -1px rgb(0 0 0 / 0.10), 0 2px 4px -2px rgb(0 0 0 / 0.10)",
123
+ "4": "0 10px 15px -3px rgb(0 0 0 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.10)"
124
+ },
125
+ "spacing": {
126
+ "layout": {
127
+ "xs": "8px",
128
+ "sm": "16px",
129
+ "md": "24px",
130
+ "lg": "32px",
131
+ "xl": "48px"
132
+ },
133
+ "component": {
134
+ "xs": "4px",
135
+ "sm": "8px",
136
+ "md": "12px",
137
+ "lg": "16px",
138
+ "xl": "24px"
139
+ },
140
+ "inline": {
141
+ "xs": "4px",
142
+ "sm": "8px",
143
+ "md": "12px"
144
+ }
145
+ },
146
+ "button": {
147
+ "bg": {
148
+ "default": "#2563eb",
149
+ "hover": "#1d4ed8",
150
+ "disabled": "#f9fafb"
151
+ },
152
+ "text": {
153
+ "default": "#ffffff",
154
+ "disabled": "#d1d5db"
155
+ },
156
+ "border": {
157
+ "default": "#2563eb",
158
+ "focus": "#3b82f6"
159
+ },
160
+ "padding": {
161
+ "x": "16px",
162
+ "y": "12px"
163
+ },
164
+ "radius": "6px",
165
+ "font": {
166
+ "size": "14px",
167
+ "weight": "500"
168
+ }
169
+ },
170
+ "input": {
171
+ "bg": {
172
+ "default": "#ffffff",
173
+ "disabled": "#f9fafb"
174
+ },
175
+ "text": {
176
+ "default": "#111827",
177
+ "placeholder": "#9ca3af"
178
+ },
179
+ "border": {
180
+ "default": "#e5e7eb",
181
+ "hover": "#9ca3af",
182
+ "focus": "#3b82f6",
183
+ "error": "#ef4444"
184
+ },
185
+ "padding": {
186
+ "x": "16px",
187
+ "y": "12px"
188
+ },
189
+ "radius": "6px",
190
+ "font": {
191
+ "size": "14px"
192
+ }
193
+ }
194
+ };
195
+ var tokenMap = {
196
+ "typography.display.xl.size": "48px",
197
+ "typography.display.xl.line.height": "1.25",
198
+ "typography.heading.xl.size": "24px",
199
+ "typography.heading.lg.size": "20px",
200
+ "typography.heading.md.size": "18px",
201
+ "typography.body.lg.size": "16px",
202
+ "typography.body.md.size": "14px",
203
+ "typography.body.sm.size": "12px",
204
+ "typography.label.md.size": "14px",
205
+ "typography.label.md.weight": "500",
206
+ "typography.code.md.size": "14px",
207
+ "color.brand.primary.default": "#2563eb",
208
+ "color.brand.primary.hover": "#1d4ed8",
209
+ "color.brand.primary.subtle": "#eff6ff",
210
+ "color.brand.secondary.default": "#4b5563",
211
+ "color.feedback.error.default": "#dc2626",
212
+ "color.feedback.error.subtle": "#fef2f2",
213
+ "color.feedback.warning.default": "#f59e0b",
214
+ "color.feedback.warning.subtle": "#fffbeb",
215
+ "color.feedback.success.default": "#16a34a",
216
+ "color.feedback.success.subtle": "#f0fdf4",
217
+ "color.feedback.info.default": "#3b82f6",
218
+ "color.feedback.info.subtle": "#eff6ff",
219
+ "color.surface.default": "#ffffff",
220
+ "color.surface.subtle": "#f9fafb",
221
+ "color.surface.raised": "#ffffff",
222
+ "color.text.primary": "#111827",
223
+ "color.text.secondary": "#4b5563",
224
+ "color.text.tertiary": "#9ca3af",
225
+ "color.text.disabled": "#d1d5db",
226
+ "color.text.inverse": "#ffffff",
227
+ "color.text.on.brand": "#ffffff",
228
+ "color.border.default": "#e5e7eb",
229
+ "color.border.strong": "#9ca3af",
230
+ "color.border.focus": "#3b82f6",
231
+ "color.border.error": "#ef4444",
232
+ "motion.duration.instant": "0ms",
233
+ "motion.duration.fast": "100ms",
234
+ "motion.duration.normal": "200ms",
235
+ "motion.duration.slow": "300ms",
236
+ "motion.duration.slower": "500ms",
237
+ "motion.easing.default": "cubic-bezier(0.4, 0, 0.2, 1)",
238
+ "motion.easing.in": "cubic-bezier(0.4, 0, 1, 1)",
239
+ "motion.easing.out": "cubic-bezier(0, 0, 0.2, 1)",
240
+ "motion.easing.spring": "cubic-bezier(0.34, 1.56, 0.64, 1)",
241
+ "radius.none": "0px",
242
+ "radius.sm": "2px",
243
+ "radius.md": "6px",
244
+ "radius.lg": "8px",
245
+ "radius.xl": "12px",
246
+ "radius.full": "9999px",
247
+ "radius.interactive": "6px",
248
+ "radius.card": "8px",
249
+ "shadow.0": "none",
250
+ "shadow.1": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
251
+ "shadow.2": "0 1px 3px 0 rgb(0 0 0 / 0.10), 0 1px 2px -1px rgb(0 0 0 / 0.10)",
252
+ "shadow.3": "0 4px 6px -1px rgb(0 0 0 / 0.10), 0 2px 4px -2px rgb(0 0 0 / 0.10)",
253
+ "shadow.4": "0 10px 15px -3px rgb(0 0 0 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.10)",
254
+ "spacing.layout.xs": "8px",
255
+ "spacing.layout.sm": "16px",
256
+ "spacing.layout.md": "24px",
257
+ "spacing.layout.lg": "32px",
258
+ "spacing.layout.xl": "48px",
259
+ "spacing.component.xs": "4px",
260
+ "spacing.component.sm": "8px",
261
+ "spacing.component.md": "12px",
262
+ "spacing.component.lg": "16px",
263
+ "spacing.component.xl": "24px",
264
+ "spacing.inline.xs": "4px",
265
+ "spacing.inline.sm": "8px",
266
+ "spacing.inline.md": "12px",
267
+ "button.bg.default": "#2563eb",
268
+ "button.bg.hover": "#1d4ed8",
269
+ "button.bg.disabled": "#f9fafb",
270
+ "button.text.default": "#ffffff",
271
+ "button.text.disabled": "#d1d5db",
272
+ "button.border.default": "#2563eb",
273
+ "button.border.focus": "#3b82f6",
274
+ "button.padding.x": "16px",
275
+ "button.padding.y": "12px",
276
+ "button.radius": "6px",
277
+ "button.font.size": "14px",
278
+ "button.font.weight": "500",
279
+ "input.bg.default": "#ffffff",
280
+ "input.bg.disabled": "#f9fafb",
281
+ "input.text.default": "#111827",
282
+ "input.text.placeholder": "#9ca3af",
283
+ "input.border.default": "#e5e7eb",
284
+ "input.border.hover": "#9ca3af",
285
+ "input.border.focus": "#3b82f6",
286
+ "input.border.error": "#ef4444",
287
+ "input.padding.x": "16px",
288
+ "input.padding.y": "12px",
289
+ "input.radius": "6px",
290
+ "input.font.size": "14px"
291
+ };
292
+ export {
293
+ tokenMap,
294
+ tokens
295
+ };
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@skye-ds/tokens-js",
3
+ "version": "0.1.1",
4
+ "description": "Antigravity design system — JS/TS token constants",
5
+ "license": "MIT",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.mjs",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js",
13
+ "types": "./dist/index.d.ts"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "README.md"
19
+ ],
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "scripts": {
24
+ "build": "tsup"
25
+ }
26
+ }