@irisui/tokens 0.1.2 → 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/README.md +4 -3
- package/package.json +1 -1
- package/src/tokens.css +33 -0
package/README.md
CHANGED
|
@@ -26,6 +26,7 @@ body {
|
|
|
26
26
|
|
|
27
27
|
Pick the palette and mode with attributes on `<html>`:
|
|
28
28
|
|
|
29
|
+
<!-- prettier-ignore -->
|
|
29
30
|
```html
|
|
30
31
|
<html data-palette="nacre" data-mode="system">
|
|
31
32
|
```
|
|
@@ -51,10 +52,10 @@ palette, so only iris-ui colors are available.
|
|
|
51
52
|
|
|
52
53
|
## Exports
|
|
53
54
|
|
|
54
|
-
| Path
|
|
55
|
-
|
|
|
55
|
+
| Path | Content |
|
|
56
|
+
| ---------------------------------------------- | ----------------------------------- |
|
|
56
57
|
| `@irisui/tokens` / `@irisui/tokens/tokens.css` | All tokens as CSS custom properties |
|
|
57
|
-
| `@irisui/tokens/tailwind.css`
|
|
58
|
+
| `@irisui/tokens/tailwind.css` | Tokens + Tailwind v4 theme bridge |
|
|
58
59
|
|
|
59
60
|
## License
|
|
60
61
|
|
package/package.json
CHANGED
package/src/tokens.css
CHANGED
|
@@ -292,6 +292,9 @@
|
|
|
292
292
|
--blur: 28px;
|
|
293
293
|
--blur-small: 14px;
|
|
294
294
|
|
|
295
|
+
/* film holographique : reste clair dans les deux modes */
|
|
296
|
+
--look-holo-border: rgb(255 255 255 / 0.95);
|
|
297
|
+
|
|
295
298
|
/* états */
|
|
296
299
|
--disabled-opacity: 0.45;
|
|
297
300
|
--pressed-shift: 1px;
|
|
@@ -347,6 +350,19 @@
|
|
|
347
350
|
--track: rgb(21 19 42 / 0.1);
|
|
348
351
|
--overlay: rgb(21 19 42 / 0.3);
|
|
349
352
|
--surface-holo-shadow: 0 0 0 1px rgb(110 90 170 / 0.22), 0 8px 22px rgb(120 100 190 / 0.3);
|
|
353
|
+
|
|
354
|
+
/* Niveau 3 — composants (looks, contrôles) */
|
|
355
|
+
--is-dark: 0;
|
|
356
|
+
--look-glass-tint: 40%;
|
|
357
|
+
--look-glass-wash: rgb(255 255 255 / 0.3);
|
|
358
|
+
--look-glass-text: var(--ink);
|
|
359
|
+
--look-glass-border: rgb(255 255 255 / 0.8);
|
|
360
|
+
--look-glass-highlight: rgb(255 255 255 / 0.85);
|
|
361
|
+
--look-outline-bg: var(--white);
|
|
362
|
+
--text-on-danger: var(--white);
|
|
363
|
+
--control-border: rgb(21 19 42 / 0.3);
|
|
364
|
+
--track-border: rgb(255 255 255 / 0.7);
|
|
365
|
+
--menu-hover: linear-gradient(90deg, color-mix(in srgb, var(--holo-1) 50%, transparent), color-mix(in srgb, var(--holo-2) 50%, transparent), color-mix(in srgb, var(--holo-3) 50%, transparent));
|
|
350
366
|
}
|
|
351
367
|
|
|
352
368
|
/* ---------- Niveau 2 — Sémantique, mode sombre ---------- */
|
|
@@ -392,6 +408,19 @@
|
|
|
392
408
|
--track: rgb(255 255 255 / 0.08);
|
|
393
409
|
--overlay: rgb(0 0 0 / 0.35);
|
|
394
410
|
--surface-holo-shadow: 0 0 0 1px rgb(255 255 255 / 0.2), 0 8px 22px rgb(0 0 0 / 0.45);
|
|
411
|
+
|
|
412
|
+
/* Niveau 3 — composants (looks, contrôles) */
|
|
413
|
+
--is-dark: 1;
|
|
414
|
+
--look-glass-tint: 26%;
|
|
415
|
+
--look-glass-wash: rgb(255 255 255 / 0.04);
|
|
416
|
+
--look-glass-text: var(--white);
|
|
417
|
+
--look-glass-border: rgb(255 255 255 / 0.25);
|
|
418
|
+
--look-glass-highlight: rgb(255 255 255 / 0.35);
|
|
419
|
+
--look-outline-bg: #1A1733;
|
|
420
|
+
--text-on-danger: var(--night);
|
|
421
|
+
--control-border: rgb(255 255 255 / 0.3);
|
|
422
|
+
--track-border: rgb(255 255 255 / 0.12);
|
|
423
|
+
--menu-hover: color-mix(in srgb, var(--accent) 16%, transparent);
|
|
395
424
|
}
|
|
396
425
|
|
|
397
426
|
/* data-mode="system" : suit le réglage du système */
|
|
@@ -417,6 +446,10 @@
|
|
|
417
446
|
--selected-bg: #F1EEF8; --selected-text: var(--ink);
|
|
418
447
|
--track: rgb(255 255 255 / 0.08); --overlay: rgb(0 0 0 / 0.35);
|
|
419
448
|
--surface-holo-shadow: 0 0 0 1px rgb(255 255 255 / 0.2), 0 8px 22px rgb(0 0 0 / 0.45);
|
|
449
|
+
--is-dark: 1; --look-glass-tint: 26%; --look-glass-wash: rgb(255 255 255 / 0.04); --look-glass-text: var(--white);
|
|
450
|
+
--look-glass-border: rgb(255 255 255 / 0.25); --look-glass-highlight: rgb(255 255 255 / 0.35); --look-outline-bg: #1A1733;
|
|
451
|
+
--text-on-danger: var(--night); --control-border: rgb(255 255 255 / 0.3); --track-border: rgb(255 255 255 / 0.12);
|
|
452
|
+
--menu-hover: color-mix(in srgb, var(--accent) 16%, transparent);
|
|
420
453
|
}
|
|
421
454
|
}
|
|
422
455
|
|