@stevegreco/design-system 0.0.2 → 0.0.3
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/css/tokens.css +44 -44
- package/dist/tokens/components.json +144 -0
- package/dist/tokens/primitives.json +2 -2
- package/dist/tokens/semantic.dark.json +60 -0
- package/dist/tokens/semantic.light.json +60 -0
- package/package.json +11 -3
- package/README.md +0 -64
package/dist/css/tokens.css
CHANGED
|
@@ -219,20 +219,20 @@
|
|
|
219
219
|
--component-alert-gap: 12px;
|
|
220
220
|
--component-alert-font-size: 14px;
|
|
221
221
|
--component-alert-title-font-weight: 600;
|
|
222
|
-
--component-alert-success-
|
|
223
|
-
--component-alert-success-
|
|
222
|
+
--component-alert-success-background: #e3ecd9;
|
|
223
|
+
--component-alert-success-foreground: #4a6b3d;
|
|
224
224
|
--component-alert-success-icon-color: #6b8e5a;
|
|
225
225
|
--component-alert-success-border: #e3ecd9;
|
|
226
|
-
--component-alert-danger-
|
|
227
|
-
--component-alert-danger-
|
|
226
|
+
--component-alert-danger-background: #f5dbd0;
|
|
227
|
+
--component-alert-danger-foreground: #84301c;
|
|
228
228
|
--component-alert-danger-icon-color: #b8472a;
|
|
229
229
|
--component-alert-danger-border: #f5dbd0;
|
|
230
|
-
--component-alert-warning-
|
|
231
|
-
--component-alert-warning-
|
|
230
|
+
--component-alert-warning-background: #f7edce;
|
|
231
|
+
--component-alert-warning-foreground: #823f1e;
|
|
232
232
|
--component-alert-warning-icon-color: #c06d1f;
|
|
233
233
|
--component-alert-warning-border: #f7edce;
|
|
234
|
-
--component-alert-info-
|
|
235
|
-
--component-alert-info-
|
|
234
|
+
--component-alert-info-background: #d6e1ea;
|
|
235
|
+
--component-alert-info-foreground: #2f5973;
|
|
236
236
|
--component-alert-info-icon-color: #4a7896;
|
|
237
237
|
--component-alert-info-border: #d6e1ea;
|
|
238
238
|
--component-badge-radius: 9999px;
|
|
@@ -240,23 +240,23 @@
|
|
|
240
240
|
--component-badge-padding-y: 1px;
|
|
241
241
|
--component-badge-font-size: 12px;
|
|
242
242
|
--component-badge-font-weight: 500;
|
|
243
|
-
--component-badge-default-
|
|
244
|
-
--component-badge-default-
|
|
243
|
+
--component-badge-default-background: #e0e7e3;
|
|
244
|
+
--component-badge-default-foreground: #3b4a43;
|
|
245
245
|
--component-badge-default-border: #c1cec7;
|
|
246
|
-
--component-badge-accent-
|
|
247
|
-
--component-badge-accent-
|
|
246
|
+
--component-badge-accent-background: #f7edce;
|
|
247
|
+
--component-badge-accent-foreground: #a0501d;
|
|
248
248
|
--component-badge-accent-border: #efda98;
|
|
249
|
-
--component-badge-success-
|
|
250
|
-
--component-badge-success-
|
|
249
|
+
--component-badge-success-background: #e3ecd9;
|
|
250
|
+
--component-badge-success-foreground: #4a6b3d;
|
|
251
251
|
--component-badge-success-border: #e3ecd9;
|
|
252
|
-
--component-badge-danger-
|
|
253
|
-
--component-badge-danger-
|
|
252
|
+
--component-badge-danger-background: #f5dbd0;
|
|
253
|
+
--component-badge-danger-foreground: #84301c;
|
|
254
254
|
--component-badge-danger-border: #f5dbd0;
|
|
255
|
-
--component-badge-warning-
|
|
256
|
-
--component-badge-warning-
|
|
255
|
+
--component-badge-warning-background: #f7edce;
|
|
256
|
+
--component-badge-warning-foreground: #823f1e;
|
|
257
257
|
--component-badge-warning-border: #f7edce;
|
|
258
|
-
--component-badge-info-
|
|
259
|
-
--component-badge-info-
|
|
258
|
+
--component-badge-info-background: #d6e1ea;
|
|
259
|
+
--component-badge-info-foreground: #2f5973;
|
|
260
260
|
--component-badge-info-border: #d6e1ea;
|
|
261
261
|
--component-button-radius-md: 10px;
|
|
262
262
|
--component-button-radius-full: 9999px;
|
|
@@ -268,45 +268,45 @@
|
|
|
268
268
|
--component-button-font-weight: 500;
|
|
269
269
|
--component-button-font-size: 14px;
|
|
270
270
|
--component-button-transition: 140ms;
|
|
271
|
-
--component-button-primary-
|
|
272
|
-
--component-button-primary-
|
|
273
|
-
--component-button-primary-
|
|
274
|
-
--component-button-primary-
|
|
271
|
+
--component-button-primary-background: #a0501d;
|
|
272
|
+
--component-button-primary-background-hover: #823f1e;
|
|
273
|
+
--component-button-primary-background-press: #6b341c;
|
|
274
|
+
--component-button-primary-foreground: #faf6f0;
|
|
275
275
|
--component-button-primary-border: #a0501d;
|
|
276
|
-
--component-button-secondary-
|
|
277
|
-
--component-button-secondary-
|
|
278
|
-
--component-button-secondary-
|
|
279
|
-
--component-button-secondary-
|
|
276
|
+
--component-button-secondary-background: rgba(0, 0, 0, 0);
|
|
277
|
+
--component-button-secondary-background-hover: #e0e7e3;
|
|
278
|
+
--component-button-secondary-background-press: #e0e7e3;
|
|
279
|
+
--component-button-secondary-foreground: #3b4a43;
|
|
280
280
|
--component-button-secondary-border: #c1cec7;
|
|
281
|
-
--component-button-ghost-
|
|
282
|
-
--component-button-ghost-
|
|
283
|
-
--component-button-ghost-
|
|
281
|
+
--component-button-ghost-background: rgba(0, 0, 0, 0);
|
|
282
|
+
--component-button-ghost-background-hover: #e0e7e3;
|
|
283
|
+
--component-button-ghost-foreground: #171c1a;
|
|
284
284
|
--component-button-ghost-border: rgba(0, 0, 0, 0);
|
|
285
|
-
--component-button-danger-
|
|
286
|
-
--component-button-danger-
|
|
287
|
-
--component-button-danger-
|
|
285
|
+
--component-button-danger-background: #b8472a;
|
|
286
|
+
--component-button-danger-background-hover: #84301c;
|
|
287
|
+
--component-button-danger-foreground: #ffffff;
|
|
288
288
|
--component-button-danger-border: #b8472a;
|
|
289
|
-
--component-card-
|
|
289
|
+
--component-card-background: #ffffff;
|
|
290
290
|
--component-card-border: #c1cec7;
|
|
291
291
|
--component-card-radius: 14px;
|
|
292
292
|
--component-card-shadow: 0 1px 2px rgba(61, 26, 11, 0.05), 0 2px 4px rgba(61, 26, 11, 0.04);
|
|
293
293
|
--component-card-shadow-hover: 0 2px 4px rgba(61, 26, 11, 0.05), 0 6px 14px rgba(61, 26, 11, 0.07);
|
|
294
294
|
--component-card-padding: 24px;
|
|
295
295
|
--component-card-gap: 16px;
|
|
296
|
-
--component-card-warm-
|
|
296
|
+
--component-card-warm-background: #f7edce;
|
|
297
297
|
--component-card-warm-border: #efda98;
|
|
298
|
-
--component-input-
|
|
299
|
-
--component-input-
|
|
298
|
+
--component-input-background: #ffffff;
|
|
299
|
+
--component-input-background-disabled: #e0e7e3;
|
|
300
300
|
--component-input-border: #c1cec7;
|
|
301
301
|
--component-input-border-hover: #9aaea4;
|
|
302
302
|
--component-input-border-focus: #a0501d;
|
|
303
303
|
--component-input-border-error: #b8472a;
|
|
304
|
-
--component-input-
|
|
305
|
-
--component-input-
|
|
306
|
-
--component-input-
|
|
307
|
-
--component-input-label-
|
|
308
|
-
--component-input-hint-
|
|
309
|
-
--component-input-error-
|
|
304
|
+
--component-input-foreground: #171c1a;
|
|
305
|
+
--component-input-foreground-placeholder: #7a9086;
|
|
306
|
+
--component-input-foreground-disabled: #5b7168;
|
|
307
|
+
--component-input-label-foreground: #3b4a43;
|
|
308
|
+
--component-input-hint-foreground: #5b7168;
|
|
309
|
+
--component-input-error-foreground: #84301c;
|
|
310
310
|
--component-input-radius: 6px;
|
|
311
311
|
--component-input-padding-x: 12px;
|
|
312
312
|
--component-input-padding-y: 8px;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": {
|
|
3
|
+
"alert": {
|
|
4
|
+
"radius": "10px",
|
|
5
|
+
"padding": "16px",
|
|
6
|
+
"gap": "12px",
|
|
7
|
+
"fontSize": "14px",
|
|
8
|
+
"titleFontWeight": 600,
|
|
9
|
+
"success": {
|
|
10
|
+
"background": "#e3ecd9",
|
|
11
|
+
"foreground": "#4a6b3d",
|
|
12
|
+
"iconColor": "#6b8e5a",
|
|
13
|
+
"border": "#e3ecd9"
|
|
14
|
+
},
|
|
15
|
+
"danger": {
|
|
16
|
+
"background": "#f5dbd0",
|
|
17
|
+
"foreground": "#84301c",
|
|
18
|
+
"iconColor": "#b8472a",
|
|
19
|
+
"border": "#f5dbd0"
|
|
20
|
+
},
|
|
21
|
+
"warning": {
|
|
22
|
+
"background": "#f7edce",
|
|
23
|
+
"foreground": "#823f1e",
|
|
24
|
+
"iconColor": "#c06d1f",
|
|
25
|
+
"border": "#f7edce"
|
|
26
|
+
},
|
|
27
|
+
"info": {
|
|
28
|
+
"background": "#d6e1ea",
|
|
29
|
+
"foreground": "#2f5973",
|
|
30
|
+
"iconColor": "#4a7896",
|
|
31
|
+
"border": "#d6e1ea"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"badge": {
|
|
35
|
+
"radius": "9999px",
|
|
36
|
+
"paddingX": "8px",
|
|
37
|
+
"paddingY": "1px",
|
|
38
|
+
"fontSize": "12px",
|
|
39
|
+
"fontWeight": 500,
|
|
40
|
+
"default": {
|
|
41
|
+
"background": "#e0e7e3",
|
|
42
|
+
"foreground": "#3b4a43",
|
|
43
|
+
"border": "#c1cec7"
|
|
44
|
+
},
|
|
45
|
+
"accent": {
|
|
46
|
+
"background": "#f7edce",
|
|
47
|
+
"foreground": "#a0501d",
|
|
48
|
+
"border": "#efda98"
|
|
49
|
+
},
|
|
50
|
+
"success": {
|
|
51
|
+
"background": "#e3ecd9",
|
|
52
|
+
"foreground": "#4a6b3d",
|
|
53
|
+
"border": "#e3ecd9"
|
|
54
|
+
},
|
|
55
|
+
"danger": {
|
|
56
|
+
"background": "#f5dbd0",
|
|
57
|
+
"foreground": "#84301c",
|
|
58
|
+
"border": "#f5dbd0"
|
|
59
|
+
},
|
|
60
|
+
"warning": {
|
|
61
|
+
"background": "#f7edce",
|
|
62
|
+
"foreground": "#823f1e",
|
|
63
|
+
"border": "#f7edce"
|
|
64
|
+
},
|
|
65
|
+
"info": {
|
|
66
|
+
"background": "#d6e1ea",
|
|
67
|
+
"foreground": "#2f5973",
|
|
68
|
+
"border": "#d6e1ea"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"button": {
|
|
72
|
+
"radiusMd": "10px",
|
|
73
|
+
"radiusFull": "9999px",
|
|
74
|
+
"paddingX": "16px",
|
|
75
|
+
"paddingY": "12px",
|
|
76
|
+
"paddingXSm": "12px",
|
|
77
|
+
"paddingYSm": "8px",
|
|
78
|
+
"fontFamily": "'Source Sans 3', system-ui, -apple-system, sans-serif",
|
|
79
|
+
"fontWeight": 500,
|
|
80
|
+
"fontSize": "14px",
|
|
81
|
+
"transition": "140ms",
|
|
82
|
+
"primary": {
|
|
83
|
+
"background": "#a0501d",
|
|
84
|
+
"backgroundHover": "#823f1e",
|
|
85
|
+
"backgroundPress": "#6b341c",
|
|
86
|
+
"foreground": "#faf6f0",
|
|
87
|
+
"border": "#a0501d"
|
|
88
|
+
},
|
|
89
|
+
"secondary": {
|
|
90
|
+
"background": "#00000000",
|
|
91
|
+
"backgroundHover": "#e0e7e3",
|
|
92
|
+
"backgroundPress": "#e0e7e3",
|
|
93
|
+
"foreground": "#3b4a43",
|
|
94
|
+
"border": "#c1cec7"
|
|
95
|
+
},
|
|
96
|
+
"ghost": {
|
|
97
|
+
"background": "#00000000",
|
|
98
|
+
"backgroundHover": "#e0e7e3",
|
|
99
|
+
"foreground": "#171c1a",
|
|
100
|
+
"border": "#00000000"
|
|
101
|
+
},
|
|
102
|
+
"danger": {
|
|
103
|
+
"background": "#b8472a",
|
|
104
|
+
"backgroundHover": "#84301c",
|
|
105
|
+
"foreground": "#ffffff",
|
|
106
|
+
"border": "#b8472a"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"card": {
|
|
110
|
+
"background": "#ffffff",
|
|
111
|
+
"border": "#c1cec7",
|
|
112
|
+
"radius": "14px",
|
|
113
|
+
"shadow": "0 1px 2px rgba(61, 26, 11, 0.05), 0 2px 4px rgba(61, 26, 11, 0.04)",
|
|
114
|
+
"shadowHover": "0 2px 4px rgba(61, 26, 11, 0.05), 0 6px 14px rgba(61, 26, 11, 0.07)",
|
|
115
|
+
"padding": "24px",
|
|
116
|
+
"gap": "16px",
|
|
117
|
+
"warm": {
|
|
118
|
+
"background": "#f7edce",
|
|
119
|
+
"border": "#efda98"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"input": {
|
|
123
|
+
"background": "#ffffff",
|
|
124
|
+
"backgroundDisabled": "#e0e7e3",
|
|
125
|
+
"border": "#c1cec7",
|
|
126
|
+
"borderHover": "#9aaea4",
|
|
127
|
+
"borderFocus": "#a0501d",
|
|
128
|
+
"borderError": "#b8472a",
|
|
129
|
+
"foreground": "#171c1a",
|
|
130
|
+
"foregroundPlaceholder": "#7a9086",
|
|
131
|
+
"foregroundDisabled": "#5b7168",
|
|
132
|
+
"labelForeground": "#3b4a43",
|
|
133
|
+
"hintForeground": "#5b7168",
|
|
134
|
+
"errorForeground": "#84301c",
|
|
135
|
+
"radius": "6px",
|
|
136
|
+
"paddingX": "12px",
|
|
137
|
+
"paddingY": "8px",
|
|
138
|
+
"shadow": "inset 0 1px 2px rgba(61, 26, 11, 0.08)",
|
|
139
|
+
"shadowFocus": "0 1px 2px rgba(61, 26, 11, 0.06)",
|
|
140
|
+
"fontFamily": "'Source Sans 3', system-ui, -apple-system, sans-serif",
|
|
141
|
+
"fontSize": "14px"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"caps": "0.08em"
|
|
101
101
|
},
|
|
102
102
|
"space": {
|
|
103
|
-
"0":
|
|
103
|
+
"0": 0,
|
|
104
104
|
"1": "4px",
|
|
105
105
|
"2": "8px",
|
|
106
106
|
"3": "12px",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"px": "1px"
|
|
118
118
|
},
|
|
119
119
|
"radius": {
|
|
120
|
-
"none":
|
|
120
|
+
"none": 0,
|
|
121
121
|
"xs": "3px",
|
|
122
122
|
"sm": "6px",
|
|
123
123
|
"md": "10px",
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"semantic": {
|
|
3
|
+
"color": {
|
|
4
|
+
"background": {
|
|
5
|
+
"default": "#171c1a",
|
|
6
|
+
"raised": "#2c3531",
|
|
7
|
+
"sunken": "#0e1211",
|
|
8
|
+
"muted": "#323d38"
|
|
9
|
+
},
|
|
10
|
+
"foreground": {
|
|
11
|
+
"default": "#faf6f0",
|
|
12
|
+
"muted": "#c1cec7",
|
|
13
|
+
"subtle": "#9aaea4",
|
|
14
|
+
"faint": "#5b7168",
|
|
15
|
+
"onAccent": "#171c1a",
|
|
16
|
+
"inverse": "#171c1a"
|
|
17
|
+
},
|
|
18
|
+
"border": {
|
|
19
|
+
"default": "#323d38",
|
|
20
|
+
"strong": "#3b4a43",
|
|
21
|
+
"subtle": "#2c3531",
|
|
22
|
+
"warm": "#823f1e"
|
|
23
|
+
},
|
|
24
|
+
"accent": {
|
|
25
|
+
"default": "#e1ac3e",
|
|
26
|
+
"hover": "#e8c468",
|
|
27
|
+
"press": "#d98f27",
|
|
28
|
+
"soft": "#3a2e1e",
|
|
29
|
+
"foreground": "#171c1a"
|
|
30
|
+
},
|
|
31
|
+
"secondary": {
|
|
32
|
+
"default": "#c1cec7",
|
|
33
|
+
"hover": "#faf6f0",
|
|
34
|
+
"soft": "#323d38"
|
|
35
|
+
},
|
|
36
|
+
"status": {
|
|
37
|
+
"success": {
|
|
38
|
+
"default": "#6b8e5a",
|
|
39
|
+
"foreground": "#e3ecd9",
|
|
40
|
+
"background": "#394739"
|
|
41
|
+
},
|
|
42
|
+
"danger": {
|
|
43
|
+
"default": "#b8472a",
|
|
44
|
+
"foreground": "#f5dbd0",
|
|
45
|
+
"background": "#483930"
|
|
46
|
+
},
|
|
47
|
+
"warning": {
|
|
48
|
+
"default": "#d98f27",
|
|
49
|
+
"foreground": "#f7edce",
|
|
50
|
+
"background": "#51432d"
|
|
51
|
+
},
|
|
52
|
+
"info": {
|
|
53
|
+
"default": "#4a7896",
|
|
54
|
+
"foreground": "#d6e1ea",
|
|
55
|
+
"background": "#34464a"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"semantic": {
|
|
3
|
+
"color": {
|
|
4
|
+
"background": {
|
|
5
|
+
"default": "#faf6f0",
|
|
6
|
+
"raised": "#ffffff",
|
|
7
|
+
"sunken": "#f2ebdf",
|
|
8
|
+
"muted": "#e0e7e3"
|
|
9
|
+
},
|
|
10
|
+
"foreground": {
|
|
11
|
+
"default": "#171c1a",
|
|
12
|
+
"muted": "#3b4a43",
|
|
13
|
+
"subtle": "#5b7168",
|
|
14
|
+
"faint": "#7a9086",
|
|
15
|
+
"onAccent": "#faf6f0",
|
|
16
|
+
"inverse": "#faf6f0"
|
|
17
|
+
},
|
|
18
|
+
"border": {
|
|
19
|
+
"default": "#c1cec7",
|
|
20
|
+
"strong": "#9aaea4",
|
|
21
|
+
"subtle": "#e6d8c3",
|
|
22
|
+
"warm": "#efda98"
|
|
23
|
+
},
|
|
24
|
+
"accent": {
|
|
25
|
+
"default": "#a0501d",
|
|
26
|
+
"hover": "#823f1e",
|
|
27
|
+
"press": "#6b341c",
|
|
28
|
+
"soft": "#f7edce",
|
|
29
|
+
"foreground": "#faf6f0"
|
|
30
|
+
},
|
|
31
|
+
"secondary": {
|
|
32
|
+
"default": "#3b4a43",
|
|
33
|
+
"hover": "#323d38",
|
|
34
|
+
"soft": "#e0e7e3"
|
|
35
|
+
},
|
|
36
|
+
"status": {
|
|
37
|
+
"success": {
|
|
38
|
+
"default": "#6b8e5a",
|
|
39
|
+
"foreground": "#4a6b3d",
|
|
40
|
+
"background": "#e3ecd9"
|
|
41
|
+
},
|
|
42
|
+
"danger": {
|
|
43
|
+
"default": "#b8472a",
|
|
44
|
+
"foreground": "#84301c",
|
|
45
|
+
"background": "#f5dbd0"
|
|
46
|
+
},
|
|
47
|
+
"warning": {
|
|
48
|
+
"default": "#c06d1f",
|
|
49
|
+
"foreground": "#823f1e",
|
|
50
|
+
"background": "#f7edce"
|
|
51
|
+
},
|
|
52
|
+
"info": {
|
|
53
|
+
"default": "#4a7896",
|
|
54
|
+
"foreground": "#2f5973",
|
|
55
|
+
"background": "#d6e1ea"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stevegreco/design-system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Design tokens distributed as CSS and JSON artifacts.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/tokens/primitives.json",
|
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
".": "./dist/tokens/primitives.json",
|
|
10
10
|
"./css": "./dist/css/tokens.css",
|
|
11
|
-
"./tokens": "./dist/tokens/primitives.json"
|
|
11
|
+
"./tokens/primitives": "./dist/tokens/primitives.json",
|
|
12
|
+
"./tokens/semantic-light": "./dist/tokens/semantic.light.json",
|
|
13
|
+
"./tokens/semantic-dark": "./dist/tokens/semantic.dark.json",
|
|
14
|
+
"./tokens/components": "./dist/tokens/components.json"
|
|
12
15
|
},
|
|
13
16
|
"files": [
|
|
14
17
|
"dist"
|
|
@@ -26,11 +29,16 @@
|
|
|
26
29
|
"devDependencies": {
|
|
27
30
|
"style-dictionary": "latest"
|
|
28
31
|
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
34
|
+
"zod": "^4.4.3"
|
|
35
|
+
},
|
|
29
36
|
"scripts": {
|
|
30
37
|
"clean": "rm -rf dist",
|
|
31
38
|
"build": "pnpm run clean && node build-tokens.js && node build-css.js",
|
|
32
39
|
"showcase": "node generate-showcase.js",
|
|
33
40
|
"dashboard": "open examples/dashboard.html",
|
|
34
|
-
"food": "open examples/food-order.html"
|
|
41
|
+
"food": "open examples/food-order.html",
|
|
42
|
+
"mcp": "node mcp/index.js"
|
|
35
43
|
}
|
|
36
44
|
}
|
package/README.md
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# design-system
|
|
2
|
-
|
|
3
|
-
Design token package with DTCG-style source tokens and generated distribution artifacts.
|
|
4
|
-
|
|
5
|
-
## Source of truth
|
|
6
|
-
|
|
7
|
-
- DTCG-style tokens: `tokens/primitives.tokens.json`
|
|
8
|
-
- Semantic token examples:
|
|
9
|
-
- `tokens/semantic/light.tokens.json`
|
|
10
|
-
- `tokens/semantic/dark.tokens.json`
|
|
11
|
-
|
|
12
|
-
## Build outputs
|
|
13
|
-
|
|
14
|
-
- CSS variables (single file): `dist/css/tokens.css`
|
|
15
|
-
- JSON tokens: `dist/tokens/primitives.json`
|
|
16
|
-
- The CSS file contains:
|
|
17
|
-
- primitives in `:root` with `--primitives-*` names
|
|
18
|
-
- semantic light tokens in `:root`
|
|
19
|
-
- semantic dark overrides in `:root[data-theme="dark"]`
|
|
20
|
-
|
|
21
|
-
## Install
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
pnpm install
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Build
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
pnpm run build
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Consume in CSS projects
|
|
34
|
-
|
|
35
|
-
```css
|
|
36
|
-
@import "design-system/css";
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
Or via JS:
|
|
40
|
-
|
|
41
|
-
```js
|
|
42
|
-
import "design-system/css";
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
Semantic layers:
|
|
46
|
-
The single CSS entry already includes both light and dark semantic layers.
|
|
47
|
-
The sample semantic token is `--semantic-color-background-brand`.
|
|
48
|
-
|
|
49
|
-
## Consume JSON tokens
|
|
50
|
-
|
|
51
|
-
```js
|
|
52
|
-
import tokens from "design-system/tokens";
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## Publish checklist
|
|
56
|
-
|
|
57
|
-
1. Run `pnpm run build`
|
|
58
|
-
2. Bump version in `package.json`
|
|
59
|
-
3. Publish with `pnpm publish`
|
|
60
|
-
|
|
61
|
-
## Notes
|
|
62
|
-
|
|
63
|
-
- The package uses Style Dictionary to generate platform outputs.
|
|
64
|
-
- Keep editing tokens in `tokens/primitives.tokens.json` rather than editing `dist/*` files directly.
|