@cascivo/tokens 0.1.0 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cascivo/tokens",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "private": false,
5
5
  "description": "Three-level CSS design tokens (primitive → semantic → component)",
6
6
  "keywords": [
@@ -25,11 +25,16 @@
25
25
  "files": [
26
26
  "src/**/*.css",
27
27
  "src/**/*.ts",
28
+ "tokens.json",
28
29
  "!src/**/*.test.ts"
29
30
  ],
30
31
  "exports": {
31
32
  ".": "./src/index.css",
32
- "./screens": "./src/screens.ts"
33
+ "./screens": "./src/screens.ts",
34
+ "./tokens.json": "./tokens.json",
35
+ "./tokens": {
36
+ "types": "./src/tokens.d.ts"
37
+ }
33
38
  },
34
39
  "publishConfig": {
35
40
  "access": "public",
package/src/functions.css CHANGED
@@ -15,7 +15,7 @@
15
15
  * - No variable-spreading (not yet supported).
16
16
  */
17
17
 
18
- @layer cascade.functions {
18
+ @layer cascivo.functions {
19
19
  @function --cascivo-step(--n <number>, --base: 0.25rem) {
20
20
  result: calc(var(--base) * var(--n));
21
21
  }
package/src/index.css CHANGED
@@ -1,8 +1,8 @@
1
1
  /* packages/tokens/src/index.css */
2
- /* Cascade Design System — Primitive Tokens */
2
+ /* cascivo Design System — Primitive Tokens */
3
3
  /* These are raw values. Never use directly in components. Use semantic tokens. */
4
4
 
5
- @layer cascade.tokens {
5
+ @layer cascivo.tokens {
6
6
  :root {
7
7
  /* ── Color Primitives ─────────────────────────────── */
8
8
 
@@ -0,0 +1,366 @@
1
+ // AUTO-GENERATED by scripts/tokens/generate-manifest.mjs — do not edit by hand.
2
+ // Run `pnpm tokens:generate` (or `pnpm regen`) to refresh.
3
+
4
+ /** Every `--cascivo-*` custom property cascivo ships (primitive + semantic). */
5
+ export type CascivoToken =
6
+ | '--cascivo-blue-100'
7
+ | '--cascivo-blue-200'
8
+ | '--cascivo-blue-300'
9
+ | '--cascivo-blue-400'
10
+ | '--cascivo-blue-50'
11
+ | '--cascivo-blue-500'
12
+ | '--cascivo-blue-600'
13
+ | '--cascivo-blue-700'
14
+ | '--cascivo-blue-800'
15
+ | '--cascivo-blue-900'
16
+ | '--cascivo-blue-950'
17
+ | '--cascivo-border-default'
18
+ | '--cascivo-border-strong'
19
+ | '--cascivo-border-subtle'
20
+ | '--cascivo-brand-accent'
21
+ | '--cascivo-brand-gradient-end'
22
+ | '--cascivo-brand-gradient-start'
23
+ | '--cascivo-brand-ink'
24
+ | '--cascivo-brand-paper'
25
+ | '--cascivo-brand-primary'
26
+ | '--cascivo-chart-1'
27
+ | '--cascivo-chart-2'
28
+ | '--cascivo-chart-3'
29
+ | '--cascivo-chart-4'
30
+ | '--cascivo-chart-5'
31
+ | '--cascivo-chart-6'
32
+ | '--cascivo-chart-7'
33
+ | '--cascivo-chart-8'
34
+ | '--cascivo-chart-axis'
35
+ | '--cascivo-chart-grid'
36
+ | '--cascivo-color-accent'
37
+ | '--cascivo-color-accent-active'
38
+ | '--cascivo-color-accent-content'
39
+ | '--cascivo-color-accent-foreground'
40
+ | '--cascivo-color-accent-hover'
41
+ | '--cascivo-color-accent-muted'
42
+ | '--cascivo-color-accent-subtle'
43
+ | '--cascivo-color-active-bg'
44
+ | '--cascivo-color-background'
45
+ | '--cascivo-color-bg'
46
+ | '--cascivo-color-bg-subtle'
47
+ | '--cascivo-color-border'
48
+ | '--cascivo-color-border-strong'
49
+ | '--cascivo-color-destructive'
50
+ | '--cascivo-color-destructive-content'
51
+ | '--cascivo-color-destructive-foreground'
52
+ | '--cascivo-color-destructive-hover'
53
+ | '--cascivo-color-destructive-subtle'
54
+ | '--cascivo-color-error'
55
+ | '--cascivo-color-error-content'
56
+ | '--cascivo-color-focus-ring'
57
+ | '--cascivo-color-foreground'
58
+ | '--cascivo-color-foreground-muted'
59
+ | '--cascivo-color-info'
60
+ | '--cascivo-color-info-content'
61
+ | '--cascivo-color-info-subtle'
62
+ | '--cascivo-color-primary'
63
+ | '--cascivo-color-primary-active'
64
+ | '--cascivo-color-primary-content'
65
+ | '--cascivo-color-primary-fg'
66
+ | '--cascivo-color-primary-hover'
67
+ | '--cascivo-color-secondary'
68
+ | '--cascivo-color-secondary-content'
69
+ | '--cascivo-color-secondary-hover'
70
+ | '--cascivo-color-secondary-subtle'
71
+ | '--cascivo-color-success'
72
+ | '--cascivo-color-success-content'
73
+ | '--cascivo-color-success-foreground'
74
+ | '--cascivo-color-success-subtle'
75
+ | '--cascivo-color-surface'
76
+ | '--cascivo-color-surface-2'
77
+ | '--cascivo-color-surface-overlay'
78
+ | '--cascivo-color-surface-raised'
79
+ | '--cascivo-color-text'
80
+ | '--cascivo-color-text-muted'
81
+ | '--cascivo-color-text-on-accent'
82
+ | '--cascivo-color-text-on-destructive'
83
+ | '--cascivo-color-text-subtle'
84
+ | '--cascivo-color-warning'
85
+ | '--cascivo-color-warning-content'
86
+ | '--cascivo-color-warning-foreground'
87
+ | '--cascivo-color-warning-subtle'
88
+ | '--cascivo-control-height-lg'
89
+ | '--cascivo-control-height-md'
90
+ | '--cascivo-control-height-sm'
91
+ | '--cascivo-duration-100'
92
+ | '--cascivo-duration-150'
93
+ | '--cascivo-duration-200'
94
+ | '--cascivo-duration-300'
95
+ | '--cascivo-duration-500'
96
+ | '--cascivo-duration-75'
97
+ | '--cascivo-ease-in'
98
+ | '--cascivo-ease-in-out'
99
+ | '--cascivo-ease-out'
100
+ | '--cascivo-focus-ring'
101
+ | '--cascivo-font-bold'
102
+ | '--cascivo-font-medium'
103
+ | '--cascivo-font-mono'
104
+ | '--cascivo-font-normal'
105
+ | '--cascivo-font-sans'
106
+ | '--cascivo-font-semibold'
107
+ | '--cascivo-gray-0'
108
+ | '--cascivo-gray-100'
109
+ | '--cascivo-gray-200'
110
+ | '--cascivo-gray-300'
111
+ | '--cascivo-gray-400'
112
+ | '--cascivo-gray-50'
113
+ | '--cascivo-gray-500'
114
+ | '--cascivo-gray-600'
115
+ | '--cascivo-gray-700'
116
+ | '--cascivo-gray-800'
117
+ | '--cascivo-gray-900'
118
+ | '--cascivo-gray-950'
119
+ | '--cascivo-green-100'
120
+ | '--cascivo-green-200'
121
+ | '--cascivo-green-400'
122
+ | '--cascivo-green-50'
123
+ | '--cascivo-green-500'
124
+ | '--cascivo-green-600'
125
+ | '--cascivo-green-700'
126
+ | '--cascivo-green-900'
127
+ | '--cascivo-leading-none'
128
+ | '--cascivo-leading-normal'
129
+ | '--cascivo-leading-relaxed'
130
+ | '--cascivo-leading-snug'
131
+ | '--cascivo-leading-tight'
132
+ | '--cascivo-motion-emphasis'
133
+ | '--cascivo-motion-enter'
134
+ | '--cascivo-motion-exit'
135
+ | '--cascivo-orange-100'
136
+ | '--cascivo-orange-400'
137
+ | '--cascivo-orange-50'
138
+ | '--cascivo-orange-500'
139
+ | '--cascivo-orange-600'
140
+ | '--cascivo-radius-2xl'
141
+ | '--cascivo-radius-badge'
142
+ | '--cascivo-radius-base'
143
+ | '--cascivo-radius-button'
144
+ | '--cascivo-radius-card'
145
+ | '--cascivo-radius-component'
146
+ | '--cascivo-radius-control'
147
+ | '--cascivo-radius-field'
148
+ | '--cascivo-radius-full'
149
+ | '--cascivo-radius-indicator'
150
+ | '--cascivo-radius-input'
151
+ | '--cascivo-radius-item'
152
+ | '--cascivo-radius-lg'
153
+ | '--cascivo-radius-md'
154
+ | '--cascivo-radius-modal'
155
+ | '--cascivo-radius-none'
156
+ | '--cascivo-radius-overlay'
157
+ | '--cascivo-radius-sm'
158
+ | '--cascivo-radius-surface'
159
+ | '--cascivo-radius-xl'
160
+ | '--cascivo-red-100'
161
+ | '--cascivo-red-200'
162
+ | '--cascivo-red-400'
163
+ | '--cascivo-red-50'
164
+ | '--cascivo-red-500'
165
+ | '--cascivo-red-600'
166
+ | '--cascivo-red-700'
167
+ | '--cascivo-red-900'
168
+ | '--cascivo-ring-color'
169
+ | '--cascivo-ring-offset'
170
+ | '--cascivo-ring-width'
171
+ | '--cascivo-screen-lg'
172
+ | '--cascivo-screen-md'
173
+ | '--cascivo-screen-sm'
174
+ | '--cascivo-screen-xl'
175
+ | '--cascivo-shadow-lg'
176
+ | '--cascivo-shadow-md'
177
+ | '--cascivo-shadow-overlay'
178
+ | '--cascivo-shadow-sm'
179
+ | '--cascivo-shadow-xl'
180
+ | '--cascivo-shadow-xs'
181
+ | '--cascivo-shell-aside-inline-size'
182
+ | '--cascivo-shell-header-block-size'
183
+ | '--cascivo-shell-panel-inline-size'
184
+ | '--cascivo-space-0'
185
+ | '--cascivo-space-1'
186
+ | '--cascivo-space-10'
187
+ | '--cascivo-space-12'
188
+ | '--cascivo-space-16'
189
+ | '--cascivo-space-2'
190
+ | '--cascivo-space-20'
191
+ | '--cascivo-space-24'
192
+ | '--cascivo-space-3'
193
+ | '--cascivo-space-4'
194
+ | '--cascivo-space-5'
195
+ | '--cascivo-space-6'
196
+ | '--cascivo-space-8'
197
+ | '--cascivo-target-min-coarse'
198
+ | '--cascivo-text-2xl'
199
+ | '--cascivo-text-2xl-fluid'
200
+ | '--cascivo-text-3xl'
201
+ | '--cascivo-text-3xl-fluid'
202
+ | '--cascivo-text-base'
203
+ | '--cascivo-text-lg'
204
+ | '--cascivo-text-sm'
205
+ | '--cascivo-text-xl'
206
+ | '--cascivo-text-xs'
207
+ | '--cascivo-tracking-normal'
208
+ | '--cascivo-tracking-tight'
209
+ | '--cascivo-tracking-wide'
210
+ | '--cascivo-warm-100'
211
+ | '--cascivo-warm-200'
212
+ | '--cascivo-warm-300'
213
+ | '--cascivo-warm-400'
214
+ | '--cascivo-warm-50'
215
+ | '--cascivo-warm-500'
216
+ | '--cascivo-warm-600'
217
+ | '--cascivo-warm-700'
218
+ | '--cascivo-warm-800'
219
+ | '--cascivo-warm-900'
220
+ | '--cascivo-yellow-100'
221
+ | '--cascivo-yellow-400'
222
+ | '--cascivo-yellow-50'
223
+ | '--cascivo-yellow-500'
224
+ | '--cascivo-z-base'
225
+ | '--cascivo-z-dropdown'
226
+ | '--cascivo-z-modal'
227
+ | '--cascivo-z-overlay'
228
+ | '--cascivo-z-raised'
229
+ | '--cascivo-z-toast'
230
+ | '--cascivo-z-tooltip'
231
+
232
+ /** The subset of {@link CascivoToken} in the color category. */
233
+ export type CascivoColorToken =
234
+ | '--cascivo-blue-100'
235
+ | '--cascivo-blue-200'
236
+ | '--cascivo-blue-300'
237
+ | '--cascivo-blue-400'
238
+ | '--cascivo-blue-50'
239
+ | '--cascivo-blue-500'
240
+ | '--cascivo-blue-600'
241
+ | '--cascivo-blue-700'
242
+ | '--cascivo-blue-800'
243
+ | '--cascivo-blue-900'
244
+ | '--cascivo-blue-950'
245
+ | '--cascivo-border-default'
246
+ | '--cascivo-border-strong'
247
+ | '--cascivo-border-subtle'
248
+ | '--cascivo-brand-accent'
249
+ | '--cascivo-brand-gradient-end'
250
+ | '--cascivo-brand-gradient-start'
251
+ | '--cascivo-brand-ink'
252
+ | '--cascivo-brand-paper'
253
+ | '--cascivo-brand-primary'
254
+ | '--cascivo-chart-1'
255
+ | '--cascivo-chart-2'
256
+ | '--cascivo-chart-3'
257
+ | '--cascivo-chart-4'
258
+ | '--cascivo-chart-5'
259
+ | '--cascivo-chart-6'
260
+ | '--cascivo-chart-7'
261
+ | '--cascivo-chart-8'
262
+ | '--cascivo-chart-axis'
263
+ | '--cascivo-chart-grid'
264
+ | '--cascivo-color-accent'
265
+ | '--cascivo-color-accent-active'
266
+ | '--cascivo-color-accent-content'
267
+ | '--cascivo-color-accent-foreground'
268
+ | '--cascivo-color-accent-hover'
269
+ | '--cascivo-color-accent-muted'
270
+ | '--cascivo-color-accent-subtle'
271
+ | '--cascivo-color-active-bg'
272
+ | '--cascivo-color-background'
273
+ | '--cascivo-color-bg'
274
+ | '--cascivo-color-bg-subtle'
275
+ | '--cascivo-color-border'
276
+ | '--cascivo-color-border-strong'
277
+ | '--cascivo-color-destructive'
278
+ | '--cascivo-color-destructive-content'
279
+ | '--cascivo-color-destructive-foreground'
280
+ | '--cascivo-color-destructive-hover'
281
+ | '--cascivo-color-destructive-subtle'
282
+ | '--cascivo-color-error'
283
+ | '--cascivo-color-error-content'
284
+ | '--cascivo-color-focus-ring'
285
+ | '--cascivo-color-foreground'
286
+ | '--cascivo-color-foreground-muted'
287
+ | '--cascivo-color-info'
288
+ | '--cascivo-color-info-content'
289
+ | '--cascivo-color-info-subtle'
290
+ | '--cascivo-color-primary'
291
+ | '--cascivo-color-primary-active'
292
+ | '--cascivo-color-primary-content'
293
+ | '--cascivo-color-primary-fg'
294
+ | '--cascivo-color-primary-hover'
295
+ | '--cascivo-color-secondary'
296
+ | '--cascivo-color-secondary-content'
297
+ | '--cascivo-color-secondary-hover'
298
+ | '--cascivo-color-secondary-subtle'
299
+ | '--cascivo-color-success'
300
+ | '--cascivo-color-success-content'
301
+ | '--cascivo-color-success-foreground'
302
+ | '--cascivo-color-success-subtle'
303
+ | '--cascivo-color-surface'
304
+ | '--cascivo-color-surface-2'
305
+ | '--cascivo-color-surface-overlay'
306
+ | '--cascivo-color-surface-raised'
307
+ | '--cascivo-color-text'
308
+ | '--cascivo-color-text-muted'
309
+ | '--cascivo-color-text-on-accent'
310
+ | '--cascivo-color-text-on-destructive'
311
+ | '--cascivo-color-text-subtle'
312
+ | '--cascivo-color-warning'
313
+ | '--cascivo-color-warning-content'
314
+ | '--cascivo-color-warning-foreground'
315
+ | '--cascivo-color-warning-subtle'
316
+ | '--cascivo-focus-ring'
317
+ | '--cascivo-gray-0'
318
+ | '--cascivo-gray-100'
319
+ | '--cascivo-gray-200'
320
+ | '--cascivo-gray-300'
321
+ | '--cascivo-gray-400'
322
+ | '--cascivo-gray-50'
323
+ | '--cascivo-gray-500'
324
+ | '--cascivo-gray-600'
325
+ | '--cascivo-gray-700'
326
+ | '--cascivo-gray-800'
327
+ | '--cascivo-gray-900'
328
+ | '--cascivo-gray-950'
329
+ | '--cascivo-green-100'
330
+ | '--cascivo-green-200'
331
+ | '--cascivo-green-400'
332
+ | '--cascivo-green-50'
333
+ | '--cascivo-green-500'
334
+ | '--cascivo-green-600'
335
+ | '--cascivo-green-700'
336
+ | '--cascivo-green-900'
337
+ | '--cascivo-orange-100'
338
+ | '--cascivo-orange-400'
339
+ | '--cascivo-orange-50'
340
+ | '--cascivo-orange-500'
341
+ | '--cascivo-orange-600'
342
+ | '--cascivo-red-100'
343
+ | '--cascivo-red-200'
344
+ | '--cascivo-red-400'
345
+ | '--cascivo-red-50'
346
+ | '--cascivo-red-500'
347
+ | '--cascivo-red-600'
348
+ | '--cascivo-red-700'
349
+ | '--cascivo-red-900'
350
+ | '--cascivo-ring-color'
351
+ | '--cascivo-ring-offset'
352
+ | '--cascivo-ring-width'
353
+ | '--cascivo-warm-100'
354
+ | '--cascivo-warm-200'
355
+ | '--cascivo-warm-300'
356
+ | '--cascivo-warm-400'
357
+ | '--cascivo-warm-50'
358
+ | '--cascivo-warm-500'
359
+ | '--cascivo-warm-600'
360
+ | '--cascivo-warm-700'
361
+ | '--cascivo-warm-800'
362
+ | '--cascivo-warm-900'
363
+ | '--cascivo-yellow-100'
364
+ | '--cascivo-yellow-400'
365
+ | '--cascivo-yellow-50'
366
+ | '--cascivo-yellow-500'