@krizaka/tokens 2.0.0-beta.1 → 2.0.0-beta.2

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 CHANGED
@@ -51,6 +51,7 @@ const t: Theme = scheme === "light" ? themes.light : themes.dark;
51
51
  | :-- | :-- |
52
52
  | `:root`, `.theme-dark` | Dark — the default. `.theme-dark` re-declares the dark values, so a player, an editor or a media stays dark inside a light page without one `light:` class in its subtree. |
53
53
  | `html.light` | Light. Toggle the `light` class on `<html>`. |
54
+ | `.theme-light` | Light on a subtree (a theme preview inside a dark page): the light values and the aliases, the counterpart of `.theme-dark`. |
54
55
  | `:root` (invariants) | Identical in both themes: what sits **on** a media (scrims, text on media, dialog overlay), statuses, `on-accent`, radii, easing, font stacks. |
55
56
 
56
57
  `color-scheme` follows the theme, so scrollbars and native controls match.
package/dist/tokens.css CHANGED
@@ -61,6 +61,33 @@ html.light {
61
61
  --kz-shadow-lg: 0 8px 24px hsl(240 6% 0% / 0.10), 0 4px 8px hsl(240 6% 0% / 0.05); /* Dialogue, feuille */
62
62
  }
63
63
 
64
+ /* `.theme-light` : les valeurs claires, alias compris, sur un sous-arbre — un aperçu reste clair dans une page
65
+ sombre (pendant de `.theme-dark`). */
66
+ .theme-light {
67
+ color-scheme: light;
68
+ --kz-surface-0: hsl(0 0% 98%); /* Fond de page */
69
+ --kz-surface-1: hsl(0 0% 100%); /* Carte, panneau */
70
+ --kz-surface-2: hsl(240 6% 95%); /* Élément surélevé, champ, survol */
71
+ --kz-surface-3: hsl(240 5% 90%); /* Élément actif, puce, piste */
72
+ --kz-media: hsl(240 6% 92%); /* fond d'un média avant chargement */
73
+ --kz-border-subtle: hsl(240 6% 0% / 0.06); /* Séparateur discret */
74
+ --kz-border-default: hsl(240 6% 0% / 0.10); /* Contour de carte, de champ */
75
+ --kz-border-strong: hsl(240 6% 0% / 0.16); /* Contour au survol, focus non clavier */
76
+ --kz-text-primary: hsl(240 6% 10%); /* Titres, corps de texte */
77
+ --kz-text-secondary: hsl(240 4% 41%); /* Texte d'appui, libellés */
78
+ --kz-text-muted: hsl(240 4% 52%); /* Métadonnées, placeholders, désactivé (≥ 3:1) */
79
+ --kz-accent: hsl(217 92% 50%); /* Action principale, lien, sélection */
80
+ --kz-accent-hover: hsl(217 88% 42%); /* Accent au survol */
81
+ --kz-accent-soft: hsl(217 92% 50% / 0.08); /* Fond teinté (sélection, badge) */
82
+ --kz-accent-2: var(--kz-accent); /* 2e accent (dégradés) ; égal à l'accent par défaut */
83
+ --kz-ring: var(--kz-accent); /* Anneau de focus clavier */
84
+ --kz-info: var(--kz-accent); /* Statut : information */
85
+ --kz-shadow-sm: 0 1px 3px hsl(240 6% 0% / 0.06), 0 1px 2px hsl(240 6% 0% / 0.04); /* Champ, bouton au repos */
86
+ --kz-shadow-md: 0 4px 12px hsl(240 6% 0% / 0.08), 0 2px 4px hsl(240 6% 0% / 0.04); /* Menu, popover, carte au survol */
87
+ --kz-shadow-lg: 0 8px 24px hsl(240 6% 0% / 0.10), 0 4px 8px hsl(240 6% 0% / 0.05); /* Dialogue, feuille */
88
+ --kz-font-display: var(--kz-font-sans); /* Titres ; égal à sans par défaut, surchargé par le thème produit */
89
+ }
90
+
64
91
  /* Invariants : identiques dans les deux thèmes. Tout ce qui se pose SUR un média les utilise. */
65
92
  :root {
66
93
  /* Texte */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krizaka/tokens",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.2",
4
4
  "description": "The Krizaka semantic design tokens (--kz-*): one DTCG source compiled to CSS (dark, light, media invariants), typed constants and React Native themes.",
5
5
  "keywords": [
6
6
  "krizaka",