minka-ds 0.3.6 → 0.3.8
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/package.json +1 -1
- package/tokens/semantic.css +303 -0
package/package.json
CHANGED
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Minka DS — Semantic tokens (source of truth)
|
|
3
|
+
*
|
|
4
|
+
* Requires primitives.css to be imported first.
|
|
5
|
+
*
|
|
6
|
+
* Usage in your app's globals.css:
|
|
7
|
+
* @import "minka-ds/tokens/primitives.css";
|
|
8
|
+
* @import "minka-ds/tokens/semantic.css";
|
|
9
|
+
*
|
|
10
|
+
* Your existing globals.css definitions will override these if kept —
|
|
11
|
+
* compare and remove your local copy when ready to migrate.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/* ── Light mode ──────────────────────────────────────────────────── */
|
|
15
|
+
:root {
|
|
16
|
+
/* shadcn surface slots */
|
|
17
|
+
--background: var(--color-bg-base);
|
|
18
|
+
--foreground: var(--color-text-default);
|
|
19
|
+
--card: var(--color-bg-raised);
|
|
20
|
+
--card-foreground: var(--color-text-default);
|
|
21
|
+
--popover: var(--color-bg-overlay);
|
|
22
|
+
--popover-foreground: var(--color-text-default);
|
|
23
|
+
|
|
24
|
+
/* interactive */
|
|
25
|
+
--primary: var(--color-action-primary-default);
|
|
26
|
+
--primary-foreground: var(--color-action-primary-foreground);
|
|
27
|
+
--secondary: var(--color-action-secondary-default);
|
|
28
|
+
--secondary-foreground: var(--color-action-secondary-foreground);
|
|
29
|
+
--accent: var(--color-action-ghost-hover);
|
|
30
|
+
--accent-foreground: var(--color-action-ghost-foreground);
|
|
31
|
+
|
|
32
|
+
/* muted */
|
|
33
|
+
--muted: var(--color-bg-disabled);
|
|
34
|
+
--muted-foreground: var(--color-text-muted);
|
|
35
|
+
|
|
36
|
+
/* status */
|
|
37
|
+
--destructive: var(--color-action-destructive-default);
|
|
38
|
+
--destructive-foreground: var(--color-action-destructive-foreground);
|
|
39
|
+
|
|
40
|
+
/* borders & inputs */
|
|
41
|
+
--border: var(--color-border-default);
|
|
42
|
+
--input: var(--color-border-default);
|
|
43
|
+
--ring: var(--color-border-focus);
|
|
44
|
+
|
|
45
|
+
/* radius */
|
|
46
|
+
--radius: var(--primitive-radius-lg);
|
|
47
|
+
|
|
48
|
+
/* component radius aliases */
|
|
49
|
+
--radius-button: var(--primitive-radius-md);
|
|
50
|
+
--radius-input: var(--primitive-radius-md);
|
|
51
|
+
--radius-card: var(--primitive-radius-lg);
|
|
52
|
+
--radius-modal: var(--primitive-radius-xl);
|
|
53
|
+
--radius-popover: var(--primitive-radius-lg);
|
|
54
|
+
--radius-tooltip: var(--primitive-radius-xs);
|
|
55
|
+
--radius-badge: var(--primitive-radius-full);
|
|
56
|
+
--radius-tag: var(--primitive-radius-sm);
|
|
57
|
+
--radius-avatar: var(--primitive-radius-full);
|
|
58
|
+
|
|
59
|
+
/* charts */
|
|
60
|
+
--chart-1: var(--primitive-neutral-300);
|
|
61
|
+
--chart-2: var(--primitive-neutral-500);
|
|
62
|
+
--chart-3: var(--primitive-neutral-600);
|
|
63
|
+
--chart-4: var(--primitive-neutral-700);
|
|
64
|
+
--chart-5: var(--primitive-neutral-800);
|
|
65
|
+
|
|
66
|
+
/* sidebar */
|
|
67
|
+
--sidebar: var(--color-bg-base);
|
|
68
|
+
--sidebar-foreground: var(--color-text-default);
|
|
69
|
+
--sidebar-primary: var(--color-action-primary-default);
|
|
70
|
+
--sidebar-primary-foreground: var(--color-action-primary-foreground);
|
|
71
|
+
--sidebar-accent: var(--color-action-ghost-hover);
|
|
72
|
+
--sidebar-accent-foreground: var(--color-action-ghost-foreground);
|
|
73
|
+
--sidebar-border: var(--color-border-subtle);
|
|
74
|
+
--sidebar-ring: var(--color-border-focus);
|
|
75
|
+
|
|
76
|
+
/* product backgrounds */
|
|
77
|
+
--color-bg-canvas: var(--primitive-neutral-100);
|
|
78
|
+
--color-bg-base: var(--primitive-neutral-50);
|
|
79
|
+
--color-bg-table-hover: color-mix(in srgb, var(--primitive-neutral-50) 50%, transparent);
|
|
80
|
+
--color-bg-table-selected: var(--primitive-slate-50);
|
|
81
|
+
--color-bg-raised: var(--primitive-neutral-0);
|
|
82
|
+
--color-bg-overlay: var(--primitive-neutral-0);
|
|
83
|
+
--color-bg-inverted: var(--primitive-neutral-900);
|
|
84
|
+
--color-bg-disabled: var(--primitive-neutral-100);
|
|
85
|
+
--color-bg-success: var(--primitive-green-50);
|
|
86
|
+
--color-bg-error: var(--primitive-red-50);
|
|
87
|
+
--color-bg-warning: var(--primitive-yellow-50);
|
|
88
|
+
--color-bg-info: var(--primitive-slate-50);
|
|
89
|
+
--color-bg-backdrop: oklch(0 0 0 / 50%);
|
|
90
|
+
--color-bg-backdrop-heavy: oklch(0 0 0 / 70%);
|
|
91
|
+
--color-bg-glass: oklch(1 0 0 / 80%);
|
|
92
|
+
--color-bg-glass-subtle: oklch(1 0 0 / 60%);
|
|
93
|
+
|
|
94
|
+
/* product text */
|
|
95
|
+
--color-text-default: var(--primitive-neutral-950);
|
|
96
|
+
--color-text-muted: var(--primitive-neutral-600);
|
|
97
|
+
--color-text-hint: var(--primitive-neutral-400);
|
|
98
|
+
--color-text-disabled: var(--primitive-neutral-300);
|
|
99
|
+
--color-text-inverse: var(--primitive-neutral-0);
|
|
100
|
+
--color-text-inverse-muted: var(--primitive-neutral-500);
|
|
101
|
+
--color-text-link: var(--primitive-blue-600);
|
|
102
|
+
--color-text-link-hover: var(--primitive-blue-700);
|
|
103
|
+
--color-text-link-active: var(--primitive-blue-800);
|
|
104
|
+
--color-text-link-visited: var(--primitive-purple-600);
|
|
105
|
+
--color-text-success: var(--primitive-green-700);
|
|
106
|
+
--color-text-error: var(--primitive-red-600);
|
|
107
|
+
--color-text-warning: var(--primitive-yellow-700);
|
|
108
|
+
--color-text-info: var(--primitive-slate-600);
|
|
109
|
+
|
|
110
|
+
/* product borders */
|
|
111
|
+
--color-border-subtle: var(--primitive-neutral-100);
|
|
112
|
+
--color-border-default: var(--primitive-neutral-200);
|
|
113
|
+
--color-border-strong: var(--primitive-neutral-300);
|
|
114
|
+
--color-border-inverse: var(--primitive-neutral-900);
|
|
115
|
+
--color-border-focus: var(--primitive-slate-500);
|
|
116
|
+
--color-border-disabled: var(--primitive-neutral-200);
|
|
117
|
+
--color-border-success: var(--primitive-green-500);
|
|
118
|
+
--color-border-error: var(--primitive-red-500);
|
|
119
|
+
--color-border-warning: var(--primitive-yellow-500);
|
|
120
|
+
--color-border-info: var(--primitive-slate-500);
|
|
121
|
+
|
|
122
|
+
/* product actions */
|
|
123
|
+
--color-action-primary-default: var(--primitive-slate-700);
|
|
124
|
+
--color-action-primary-hover: var(--primitive-slate-800);
|
|
125
|
+
--color-action-primary-pressed: var(--primitive-slate-900);
|
|
126
|
+
--color-action-primary-disabled: var(--primitive-neutral-200);
|
|
127
|
+
--color-action-primary-foreground: var(--primitive-neutral-0);
|
|
128
|
+
|
|
129
|
+
--color-action-secondary-default: var(--primitive-neutral-100);
|
|
130
|
+
--color-action-secondary-hover: var(--primitive-neutral-200);
|
|
131
|
+
--color-action-secondary-pressed: var(--primitive-neutral-300);
|
|
132
|
+
--color-action-secondary-disabled: var(--primitive-neutral-100);
|
|
133
|
+
--color-action-secondary-foreground: var(--primitive-neutral-900);
|
|
134
|
+
|
|
135
|
+
--color-action-ghost-default: transparent;
|
|
136
|
+
--color-action-ghost-hover: var(--primitive-neutral-100);
|
|
137
|
+
--color-action-ghost-pressed: var(--primitive-neutral-200);
|
|
138
|
+
--color-action-ghost-disabled: transparent;
|
|
139
|
+
--color-action-ghost-foreground: var(--primitive-neutral-900);
|
|
140
|
+
|
|
141
|
+
--color-action-destructive-default: var(--primitive-red-500);
|
|
142
|
+
--color-action-destructive-hover: var(--primitive-red-600);
|
|
143
|
+
--color-action-destructive-pressed: var(--primitive-red-700);
|
|
144
|
+
--color-action-destructive-disabled: var(--primitive-neutral-200);
|
|
145
|
+
--color-action-destructive-foreground: var(--primitive-neutral-0);
|
|
146
|
+
|
|
147
|
+
/* product feedback */
|
|
148
|
+
--color-feedback-success: var(--primitive-green-700);
|
|
149
|
+
--color-feedback-error: var(--primitive-red-600);
|
|
150
|
+
--color-feedback-warning: var(--primitive-yellow-400);
|
|
151
|
+
--color-feedback-info: var(--primitive-slate-600);
|
|
152
|
+
|
|
153
|
+
/* brand colors */
|
|
154
|
+
--color-brand-beige: var(--primitive-beige-100);
|
|
155
|
+
--color-brand-yellow: var(--primitive-lulo-50);
|
|
156
|
+
--color-brand-rose: var(--primitive-red-100);
|
|
157
|
+
--color-brand-red: var(--primitive-red-500);
|
|
158
|
+
--color-brand-blue: var(--primitive-slate-500);
|
|
159
|
+
|
|
160
|
+
/* z-index aliases */
|
|
161
|
+
--z-sticky: var(--primitive-z-raised);
|
|
162
|
+
--z-dropdown: var(--primitive-z-dropdown);
|
|
163
|
+
--z-popover: var(--primitive-z-overlay);
|
|
164
|
+
--z-backdrop: var(--primitive-z-overlay);
|
|
165
|
+
--z-modal: var(--primitive-z-modal);
|
|
166
|
+
--z-floating: var(--primitive-z-floating);
|
|
167
|
+
--z-toast: var(--primitive-z-toast);
|
|
168
|
+
--z-tooltip: var(--primitive-z-tooltip);
|
|
169
|
+
|
|
170
|
+
/* shadows */
|
|
171
|
+
--shadow-card: var(--primitive-shadow-xs);
|
|
172
|
+
--shadow-popover: var(--primitive-shadow-md);
|
|
173
|
+
--shadow-modal: var(--primitive-shadow-lg);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* ── Dark mode ───────────────────────────────────────────────────── */
|
|
177
|
+
.dark {
|
|
178
|
+
/* shadcn surface slots */
|
|
179
|
+
--background: var(--color-bg-canvas);
|
|
180
|
+
--foreground: var(--color-text-default);
|
|
181
|
+
--card: var(--color-bg-raised);
|
|
182
|
+
--card-foreground: var(--color-text-default);
|
|
183
|
+
--popover: var(--color-bg-overlay);
|
|
184
|
+
--popover-foreground: var(--color-text-default);
|
|
185
|
+
|
|
186
|
+
/* interactive */
|
|
187
|
+
--primary: var(--color-action-primary-default);
|
|
188
|
+
--primary-foreground: var(--color-action-primary-foreground);
|
|
189
|
+
--secondary: var(--color-action-secondary-default);
|
|
190
|
+
--secondary-foreground: var(--color-action-secondary-foreground);
|
|
191
|
+
--accent: var(--color-action-ghost-hover);
|
|
192
|
+
--accent-foreground: var(--color-action-ghost-foreground);
|
|
193
|
+
|
|
194
|
+
/* muted */
|
|
195
|
+
--muted: var(--color-bg-disabled);
|
|
196
|
+
--muted-foreground: var(--color-text-muted);
|
|
197
|
+
|
|
198
|
+
/* status */
|
|
199
|
+
--destructive: var(--color-action-destructive-default);
|
|
200
|
+
--destructive-foreground: var(--color-action-destructive-foreground);
|
|
201
|
+
|
|
202
|
+
/* borders & inputs */
|
|
203
|
+
--border: var(--color-border-default);
|
|
204
|
+
--input: var(--color-border-default);
|
|
205
|
+
--ring: var(--color-border-focus);
|
|
206
|
+
|
|
207
|
+
/* charts */
|
|
208
|
+
--chart-1: var(--primitive-neutral-300);
|
|
209
|
+
--chart-2: var(--primitive-neutral-500);
|
|
210
|
+
--chart-3: var(--primitive-neutral-600);
|
|
211
|
+
--chart-4: var(--primitive-neutral-700);
|
|
212
|
+
--chart-5: var(--primitive-neutral-800);
|
|
213
|
+
|
|
214
|
+
/* sidebar */
|
|
215
|
+
--sidebar: var(--color-bg-base);
|
|
216
|
+
--sidebar-foreground: var(--color-text-default);
|
|
217
|
+
--sidebar-primary: var(--color-action-primary-default);
|
|
218
|
+
--sidebar-primary-foreground: var(--color-action-primary-foreground);
|
|
219
|
+
--sidebar-accent: var(--color-action-ghost-hover);
|
|
220
|
+
--sidebar-accent-foreground: var(--color-action-ghost-foreground);
|
|
221
|
+
--sidebar-border: var(--color-border-subtle);
|
|
222
|
+
--sidebar-ring: var(--color-border-focus);
|
|
223
|
+
|
|
224
|
+
/* product backgrounds */
|
|
225
|
+
--color-bg-canvas: var(--primitive-neutral-950);
|
|
226
|
+
--color-bg-base: var(--primitive-neutral-900);
|
|
227
|
+
--color-bg-raised: var(--primitive-neutral-800);
|
|
228
|
+
--color-bg-overlay: var(--primitive-neutral-700);
|
|
229
|
+
--color-bg-inverted: var(--primitive-neutral-50);
|
|
230
|
+
--color-bg-disabled: var(--primitive-neutral-800);
|
|
231
|
+
--color-bg-success: var(--primitive-green-900);
|
|
232
|
+
--color-bg-error: var(--primitive-red-900);
|
|
233
|
+
--color-bg-warning: var(--primitive-yellow-900);
|
|
234
|
+
--color-bg-info: var(--primitive-slate-900);
|
|
235
|
+
--color-bg-backdrop: oklch(0 0 0 / 50%);
|
|
236
|
+
--color-bg-backdrop-heavy: oklch(0 0 0 / 70%);
|
|
237
|
+
--color-bg-glass: oklch(0 0 0 / 80%);
|
|
238
|
+
--color-bg-glass-subtle: oklch(0 0 0 / 60%);
|
|
239
|
+
|
|
240
|
+
/* product text */
|
|
241
|
+
--color-text-default: var(--primitive-neutral-50);
|
|
242
|
+
--color-text-muted: var(--primitive-neutral-400);
|
|
243
|
+
--color-text-hint: var(--primitive-neutral-600);
|
|
244
|
+
--color-text-disabled: var(--primitive-neutral-700);
|
|
245
|
+
--color-text-inverse: var(--primitive-neutral-950);
|
|
246
|
+
--color-text-inverse-muted: var(--primitive-neutral-600);
|
|
247
|
+
--color-text-link: var(--primitive-blue-300);
|
|
248
|
+
--color-text-link-hover: var(--primitive-blue-200);
|
|
249
|
+
--color-text-link-active: var(--primitive-blue-100);
|
|
250
|
+
--color-text-link-visited: var(--primitive-purple-300);
|
|
251
|
+
--color-text-success: var(--primitive-green-400);
|
|
252
|
+
--color-text-error: var(--primitive-red-400);
|
|
253
|
+
--color-text-warning: var(--primitive-yellow-400);
|
|
254
|
+
--color-text-info: var(--primitive-slate-400);
|
|
255
|
+
|
|
256
|
+
/* product borders */
|
|
257
|
+
--color-border-subtle: var(--primitive-neutral-800);
|
|
258
|
+
--color-border-default: var(--primitive-neutral-700);
|
|
259
|
+
--color-border-strong: var(--primitive-neutral-500);
|
|
260
|
+
--color-border-inverse: var(--primitive-neutral-100);
|
|
261
|
+
--color-border-focus: var(--primitive-slate-400);
|
|
262
|
+
--color-border-disabled: var(--primitive-neutral-700);
|
|
263
|
+
--color-border-success: var(--primitive-green-500);
|
|
264
|
+
--color-border-error: var(--primitive-red-500);
|
|
265
|
+
--color-border-warning: var(--primitive-yellow-500);
|
|
266
|
+
--color-border-info: var(--primitive-slate-400);
|
|
267
|
+
|
|
268
|
+
/* product actions */
|
|
269
|
+
--color-action-primary-default: var(--primitive-slate-100);
|
|
270
|
+
--color-action-primary-hover: var(--primitive-slate-50);
|
|
271
|
+
--color-action-primary-pressed: var(--primitive-slate-200);
|
|
272
|
+
--color-action-primary-disabled: var(--primitive-neutral-700);
|
|
273
|
+
--color-action-primary-foreground: var(--primitive-slate-900);
|
|
274
|
+
|
|
275
|
+
--color-action-secondary-default: var(--primitive-neutral-800);
|
|
276
|
+
--color-action-secondary-hover: var(--primitive-neutral-700);
|
|
277
|
+
--color-action-secondary-pressed: var(--primitive-neutral-600);
|
|
278
|
+
--color-action-secondary-disabled: var(--primitive-neutral-800);
|
|
279
|
+
--color-action-secondary-foreground: var(--primitive-neutral-50);
|
|
280
|
+
|
|
281
|
+
--color-action-ghost-default: transparent;
|
|
282
|
+
--color-action-ghost-hover: var(--primitive-neutral-800);
|
|
283
|
+
--color-action-ghost-pressed: var(--primitive-neutral-700);
|
|
284
|
+
--color-action-ghost-disabled: transparent;
|
|
285
|
+
--color-action-ghost-foreground: var(--primitive-neutral-50);
|
|
286
|
+
|
|
287
|
+
--color-action-destructive-default: var(--primitive-red-500);
|
|
288
|
+
--color-action-destructive-hover: var(--primitive-red-400);
|
|
289
|
+
--color-action-destructive-pressed: var(--primitive-red-600);
|
|
290
|
+
--color-action-destructive-disabled: var(--primitive-neutral-700);
|
|
291
|
+
--color-action-destructive-foreground: var(--primitive-neutral-0);
|
|
292
|
+
|
|
293
|
+
/* product feedback */
|
|
294
|
+
--color-feedback-success: var(--primitive-green-400);
|
|
295
|
+
--color-feedback-error: var(--primitive-red-400);
|
|
296
|
+
--color-feedback-warning: var(--primitive-yellow-300);
|
|
297
|
+
--color-feedback-info: var(--primitive-slate-400);
|
|
298
|
+
|
|
299
|
+
/* shadows */
|
|
300
|
+
--shadow-card: none;
|
|
301
|
+
--shadow-popover: var(--primitive-shadow-lg);
|
|
302
|
+
--shadow-modal: var(--primitive-shadow-xl);
|
|
303
|
+
}
|