@krizaka/tokens 3.54.0 → 3.59.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.
@@ -0,0 +1,215 @@
1
+ /* @krizaka/tokens — GÉNÉRÉ depuis src/appearance/appearance.json par scripts/build.mjs : ne pas éditer.
2
+ Apparence (ADR-006 §4, krizaka-ui#657) : les jeux de surfaces optionnels (Blueprint, Carbone — sombres) et l'accent choisi
3
+ (`html[data-accent="<marque>"]`). `html.theme-<jeu>` est posé par ThemeProvider (setTheme) ; le clair l'ignore. */
4
+
5
+ /* Marine : la nuit du plan. Sombre uniquement. */
6
+ html.theme-blueprint:not(.light), html.theme-blueprint:not(.light) .theme-dark {
7
+ color-scheme: dark;
8
+ --kz-surface-0: hsl(222 40% 9%);
9
+ --kz-surface-1: hsl(222 38% 12%);
10
+ --kz-surface-2: hsl(222 36% 15%);
11
+ --kz-surface-3: hsl(222 32% 20%);
12
+ --kz-text-title: hsl(215 45% 96%);
13
+ --kz-text-primary: hsl(215 40% 93%);
14
+ --kz-text-secondary: hsl(215 24% 76%);
15
+ --kz-text-muted: hsl(215 18% 69%);
16
+ --kz-border-subtle: hsl(215 60% 90% / 0.05);
17
+ --kz-border-default: hsl(215 60% 90% / 0.10);
18
+ --kz-border-strong: hsl(215 60% 90% / 0.20);
19
+ --kz-border-control: hsl(222 16% 46%);
20
+ }
21
+
22
+ /* Presque noir, neutre. Sombre uniquement. Le vert d'un accent y garde un texte sombre dessus (on-accent), jamais du blanc (2,3:1). */
23
+ html.theme-carbone:not(.light), html.theme-carbone:not(.light) .theme-dark {
24
+ color-scheme: dark;
25
+ --kz-surface-0: hsl(0 0% 5.5%);
26
+ --kz-surface-1: hsl(0 0% 8.5%);
27
+ --kz-surface-2: hsl(0 0% 11.5%);
28
+ --kz-surface-3: hsl(0 0% 16%);
29
+ --kz-text-title: hsl(0 0% 96%);
30
+ --kz-text-primary: hsl(0 0% 93%);
31
+ --kz-text-secondary: hsl(0 0% 75%);
32
+ --kz-text-muted: hsl(0 0% 66%);
33
+ --kz-border-subtle: hsl(0 0% 100% / 0.05);
34
+ --kz-border-default: hsl(0 0% 100% / 0.10);
35
+ --kz-border-strong: hsl(0 0% 100% / 0.20);
36
+ --kz-border-control: hsl(0 0% 42%);
37
+ }
38
+
39
+ /* L'accent choisi, par marque et par thème (la valeur d'un produit qui n'en choisit pas est la sienne). */
40
+ html[data-accent="krizaka"]:not(.light) {
41
+ --kz-accent: hsl(208 46% 45%);
42
+ --kz-accent-hover: hsl(208 48% 39%);
43
+ --kz-accent-soft: hsl(208 46% 45% / 0.12);
44
+ --kz-accent-text: hsl(206 58% 72%);
45
+ --kz-accent-2: hsl(208 46% 45%);
46
+ --kz-on-accent: hsl(0 0% 100%);
47
+ --kz-ring: hsl(208 46% 45%);
48
+ --kz-info: hsl(208 46% 45%);
49
+ --kz-info-text: hsl(206 58% 72%);
50
+ }
51
+ html.light[data-accent="krizaka"] {
52
+ --kz-accent: hsl(208 54% 36%);
53
+ --kz-accent-hover: hsl(208 58% 29%);
54
+ --kz-accent-soft: hsl(208 54% 36% / 0.08);
55
+ --kz-accent-text: hsl(208 54% 33%);
56
+ --kz-accent-2: hsl(208 54% 36%);
57
+ --kz-on-accent: hsl(0 0% 100%);
58
+ --kz-ring: hsl(208 54% 36%);
59
+ --kz-info: hsl(208 54% 36%);
60
+ --kz-info-text: hsl(208 54% 33%);
61
+ }
62
+ html[data-accent="orazaka"]:not(.light) {
63
+ --kz-accent: hsl(26 92% 55%);
64
+ --kz-accent-hover: hsl(26 92% 62%);
65
+ --kz-accent-soft: hsl(26 92% 55% / 0.12);
66
+ --kz-accent-text: hsl(26 92% 60%);
67
+ --kz-accent-2: hsl(37.7 92.1% 50.2%);
68
+ --kz-on-accent: hsl(240 6% 5%);
69
+ --kz-ring: hsl(26 92% 55%);
70
+ --kz-info: hsl(207 50% 58%);
71
+ --kz-info-text: hsl(206 58% 72%);
72
+ }
73
+ html.light[data-accent="orazaka"] {
74
+ --kz-accent: hsl(26 90.5% 37.1%);
75
+ --kz-accent-hover: hsl(26 90% 31%);
76
+ --kz-accent-soft: hsl(26 90.5% 37.1% / 0.08);
77
+ --kz-accent-text: hsl(26 90% 32%);
78
+ --kz-accent-2: hsl(32 95% 33%);
79
+ --kz-on-accent: hsl(0 0% 100%);
80
+ --kz-ring: hsl(26 90.5% 37.1%);
81
+ --kz-info: hsl(208 54% 36%);
82
+ --kz-info-text: hsl(208 54% 33%);
83
+ }
84
+ html[data-accent="orochia"]:not(.light) {
85
+ --kz-accent: hsl(262.1 83.3% 57.8%);
86
+ --kz-accent-hover: hsl(263.4 70% 50.4%);
87
+ --kz-accent-soft: hsl(258.3 89.5% 66.3% / 0.12);
88
+ --kz-accent-text: hsl(255.1 91.7% 76.3%);
89
+ --kz-accent-2: hsl(333.3 71.4% 50.6%);
90
+ --kz-on-accent: hsl(0 0% 100%);
91
+ --kz-ring: hsl(255.1 91.7% 76.3%);
92
+ --kz-info: hsl(262.1 83.3% 57.8%);
93
+ --kz-info-text: hsl(255.1 91.7% 76.3%);
94
+ }
95
+ html.light[data-accent="orochia"] {
96
+ --kz-accent: hsl(262.1 83.3% 57.8%);
97
+ --kz-accent-hover: hsl(263.4 70% 50.4%);
98
+ --kz-accent-soft: hsl(262.1 83.3% 57.8% / 0.08);
99
+ --kz-accent-text: hsl(263.4 70% 50.4%);
100
+ --kz-accent-2: hsl(333.3 71.4% 50.6%);
101
+ --kz-on-accent: hsl(0 0% 100%);
102
+ --kz-ring: hsl(262.1 83.3% 57.8%);
103
+ --kz-info: hsl(262.1 83.3% 57.8%);
104
+ --kz-info-text: hsl(263.4 70% 50.4%);
105
+ }
106
+ html[data-accent="yasakia"]:not(.light) {
107
+ --kz-accent: hsl(174 72% 50%);
108
+ --kz-accent-hover: hsl(174 72% 58%);
109
+ --kz-accent-soft: hsl(174 72% 50% / 0.12);
110
+ --kz-accent-text: hsl(174 72% 56%);
111
+ --kz-accent-2: hsl(152 70% 45%);
112
+ --kz-on-accent: hsl(240 6% 5%);
113
+ --kz-ring: hsl(174 72% 50%);
114
+ --kz-info: hsl(207 50% 58%);
115
+ --kz-info-text: hsl(206 58% 72%);
116
+ }
117
+ html.light[data-accent="yasakia"] {
118
+ --kz-accent: hsl(175 85% 24%);
119
+ --kz-accent-hover: hsl(175 85% 20%);
120
+ --kz-accent-soft: hsl(175 85% 24% / 0.08);
121
+ --kz-accent-text: hsl(175 85% 23%);
122
+ --kz-accent-2: hsl(152 76% 26%);
123
+ --kz-on-accent: hsl(0 0% 100%);
124
+ --kz-ring: hsl(175 85% 24%);
125
+ --kz-info: hsl(208 54% 36%);
126
+ --kz-info-text: hsl(208 54% 33%);
127
+ }
128
+ html[data-accent="yororis"]:not(.light) {
129
+ --kz-accent: hsl(98 24% 62%);
130
+ --kz-accent-hover: hsl(98 26% 70%);
131
+ --kz-accent-soft: hsl(98 24% 62% / 0.12);
132
+ --kz-accent-text: hsl(98 28% 68%);
133
+ --kz-accent-2: hsl(36 38% 62%);
134
+ --kz-on-accent: hsl(240 6% 5%);
135
+ --kz-ring: hsl(98 24% 62%);
136
+ --kz-info: hsl(207 50% 58%);
137
+ --kz-info-text: hsl(206 58% 72%);
138
+ }
139
+ html.light[data-accent="yororis"] {
140
+ --kz-accent: hsl(100 28% 30%);
141
+ --kz-accent-hover: hsl(100 30% 25%);
142
+ --kz-accent-soft: hsl(100 28% 30% / 0.08);
143
+ --kz-accent-text: hsl(100 28% 28%);
144
+ --kz-accent-2: hsl(34 38% 33%);
145
+ --kz-on-accent: hsl(0 0% 100%);
146
+ --kz-ring: hsl(100 28% 30%);
147
+ --kz-info: hsl(208 54% 36%);
148
+ --kz-info-text: hsl(208 54% 33%);
149
+ }
150
+ html[data-accent="yomizaka"]:not(.light) {
151
+ --kz-accent: hsl(240 80% 74%);
152
+ --kz-accent-hover: hsl(240 82% 80%);
153
+ --kz-accent-soft: hsl(240 80% 74% / 0.12);
154
+ --kz-accent-text: hsl(240 85% 78%);
155
+ --kz-accent-2: hsl(232 72% 74%);
156
+ --kz-on-accent: hsl(240 6% 5%);
157
+ --kz-ring: hsl(240 80% 74%);
158
+ --kz-info: hsl(207 50% 58%);
159
+ --kz-info-text: hsl(206 58% 72%);
160
+ }
161
+ html.light[data-accent="yomizaka"] {
162
+ --kz-accent: hsl(242 52% 46%);
163
+ --kz-accent-hover: hsl(242 55% 40%);
164
+ --kz-accent-soft: hsl(242 52% 46% / 0.08);
165
+ --kz-accent-text: hsl(242 52% 44%);
166
+ --kz-accent-2: hsl(232 56% 40%);
167
+ --kz-on-accent: hsl(0 0% 100%);
168
+ --kz-ring: hsl(242 52% 46%);
169
+ --kz-info: hsl(208 54% 36%);
170
+ --kz-info-text: hsl(208 54% 33%);
171
+ }
172
+ html[data-accent="kachizaka"]:not(.light) {
173
+ --kz-accent: hsl(48 96% 56%);
174
+ --kz-accent-hover: hsl(48 98% 66%);
175
+ --kz-accent-soft: hsl(48 96% 56% / 0.12);
176
+ --kz-accent-text: hsl(48 96% 64%);
177
+ --kz-accent-2: hsl(226 92% 72%);
178
+ --kz-on-accent: hsl(230 30% 7%);
179
+ --kz-ring: hsl(48 96% 56%);
180
+ --kz-info: hsl(207 50% 58%);
181
+ --kz-info-text: hsl(206 58% 72%);
182
+ }
183
+ html.light[data-accent="kachizaka"] {
184
+ --kz-accent: hsl(48 96% 50%);
185
+ --kz-accent-hover: hsl(48 96% 44%);
186
+ --kz-accent-soft: hsl(46 96% 50% / 0.14);
187
+ --kz-accent-text: hsl(226 72% 40%);
188
+ --kz-accent-2: hsl(226 92% 68%);
189
+ --kz-on-accent: hsl(230 30% 7%);
190
+ --kz-ring: hsl(226 80% 46%);
191
+ --kz-info: hsl(208 54% 36%);
192
+ --kz-info-text: hsl(208 54% 33%);
193
+ }
194
+ html[data-accent="akinaza"]:not(.light) {
195
+ --kz-accent: hsl(130 44% 58%);
196
+ --kz-accent-hover: hsl(130 48% 66%);
197
+ --kz-accent-soft: hsl(130 44% 58% / 0.12);
198
+ --kz-accent-text: hsl(130 50% 66%);
199
+ --kz-accent-2: hsl(22 62% 64%);
200
+ --kz-on-accent: hsl(140 20% 5%);
201
+ --kz-ring: hsl(130 44% 58%);
202
+ --kz-info: hsl(207 50% 58%);
203
+ --kz-info-text: hsl(206 58% 72%);
204
+ }
205
+ html.light[data-accent="akinaza"] {
206
+ --kz-accent: hsl(132 52% 27%);
207
+ --kz-accent-hover: hsl(132 55% 22%);
208
+ --kz-accent-soft: hsl(132 52% 27% / 0.08);
209
+ --kz-accent-text: hsl(132 52% 26%);
210
+ --kz-accent-2: hsl(20 62% 36%);
211
+ --kz-on-accent: hsl(0 0% 100%);
212
+ --kz-ring: hsl(132 52% 27%);
213
+ --kz-info: hsl(208 54% 36%);
214
+ --kz-info-text: hsl(208 54% 33%);
215
+ }
package/dist/index.d.ts CHANGED
@@ -10,10 +10,13 @@ export declare const tokens: {
10
10
  readonly borderSubtle: "var(--kz-border-subtle)";
11
11
  readonly borderDefault: "var(--kz-border-default)";
12
12
  readonly borderStrong: "var(--kz-border-strong)";
13
+ readonly borderControl: "var(--kz-border-control)";
14
+ readonly borderHover: "var(--kz-border-hover)";
13
15
  readonly textPrimary: "var(--kz-text-primary)";
14
16
  readonly textSecondary: "var(--kz-text-secondary)";
15
17
  readonly textMuted: "var(--kz-text-muted)";
16
18
  readonly textOnMedia: "var(--kz-text-on-media)";
19
+ readonly textTitle: "var(--kz-text-title)";
17
20
  readonly accent: "var(--kz-accent)";
18
21
  readonly accentHover: "var(--kz-accent-hover)";
19
22
  readonly accentSoft: "var(--kz-accent-soft)";
@@ -35,6 +38,18 @@ export declare const tokens: {
35
38
  readonly dangerSoft: "var(--kz-danger-soft)";
36
39
  readonly info: "var(--kz-info)";
37
40
  readonly infoText: "var(--kz-info-text)";
41
+ readonly tagBlue: "var(--kz-tag-blue)";
42
+ readonly tagBlueText: "var(--kz-tag-blue-text)";
43
+ readonly tagGreen: "var(--kz-tag-green)";
44
+ readonly tagGreenText: "var(--kz-tag-green-text)";
45
+ readonly tagAmber: "var(--kz-tag-amber)";
46
+ readonly tagAmberText: "var(--kz-tag-amber-text)";
47
+ readonly tagRed: "var(--kz-tag-red)";
48
+ readonly tagRedText: "var(--kz-tag-red-text)";
49
+ readonly tagViolet: "var(--kz-tag-violet)";
50
+ readonly tagVioletText: "var(--kz-tag-violet-text)";
51
+ readonly tagGray: "var(--kz-tag-gray)";
52
+ readonly tagGrayText: "var(--kz-tag-gray-text)";
38
53
  readonly scrim: "var(--kz-scrim)";
39
54
  readonly scrimStrong: "var(--kz-scrim-strong)";
40
55
  readonly overlay: "var(--kz-overlay)";
@@ -57,6 +72,7 @@ export declare const tokens: {
57
72
  readonly shadowRaised: "var(--kz-shadow-raised)";
58
73
  readonly shadowFloating: "var(--kz-shadow-floating)";
59
74
  readonly shadowOverlay: "var(--kz-shadow-overlay)";
75
+ readonly shadowHover: "var(--kz-shadow-hover)";
60
76
  readonly surfaceSheen: "var(--kz-surface-sheen)";
61
77
  readonly fillShade: "var(--kz-fill-shade)";
62
78
  readonly edgeLight: "var(--kz-edge-light)";
@@ -72,10 +88,13 @@ export declare const tokens: {
72
88
  readonly controlMd: "var(--kz-control-md)";
73
89
  readonly controlLg: "var(--kz-control-lg)";
74
90
  readonly controlField: "var(--kz-control-field)";
91
+ readonly controlRow: "var(--kz-control-row)";
75
92
  readonly cutShape: "var(--kz-cut-shape)";
76
93
  readonly cutSize: "var(--kz-cut-size)";
77
94
  readonly paperModule: "var(--kz-paper-module)";
78
95
  readonly paperLine: "var(--kz-paper-line)";
96
+ readonly densityGap: "var(--kz-density-gap)";
97
+ readonly densityPad: "var(--kz-density-pad)";
79
98
  readonly ease: "var(--kz-ease)";
80
99
  readonly easeSpring: "var(--kz-ease-spring)";
81
100
  readonly durationInstant: "var(--kz-duration-instant)";
@@ -86,6 +105,8 @@ export declare const tokens: {
86
105
  readonly fontDisplay: "var(--kz-font-display)";
87
106
  readonly fontMono: "var(--kz-font-mono)";
88
107
  readonly fontCahier: "var(--kz-font-cahier)";
108
+ readonly fontProductDisplay: "var(--kz-font-product-display)";
109
+ readonly fontMonoMeta: "var(--kz-font-mono-meta)";
89
110
  readonly typeDisplay2xlSize: "var(--kz-type-display-2xl-size)";
90
111
  readonly typeDisplay2xlLineHeight: "var(--kz-type-display-2xl-line-height)";
91
112
  readonly typeDisplay2xlWeight: "var(--kz-type-display-2xl-weight)";
@@ -178,3 +199,18 @@ export declare const brands: { readonly [B in BrandId]: { readonly dark: { reado
178
199
  export type MarkStop = readonly [offset: string, color: string];
179
200
  /** The marks' emblem gradients: [offset, colour] stops, the same in both themes (raw CSS). */
180
201
  export declare const marks: { readonly [B in BrandId]: readonly MarkStop[] };
202
+
203
+ export type AppearanceThemeId = "system" | "light" | "dark" | "blueprint" | "carbone";
204
+ export type AppearanceDensity = "standard" | "compact";
205
+ /** The colours a theme's miniature is drawn with. */
206
+ export interface AppearancePreview { readonly surface0: string; readonly surface1: string; readonly surface2: string; readonly text: string; readonly muted: string }
207
+ export interface AppearanceTheme { readonly id: AppearanceThemeId; readonly base: "system" | "light" | "dark"; readonly required?: true; readonly preview: AppearancePreview | null }
208
+ export interface AppearanceAccent { readonly id: BrandId; readonly dark: { readonly [R in BrandRole]: string }; readonly light: { readonly [R in BrandRole]: string } }
209
+ /** The themes a user chooses, the accents and the themes each reads on, the densities (ADR-006 §4). */
210
+ export declare const appearance: {
211
+ readonly themes: readonly AppearanceTheme[];
212
+ readonly accents: readonly AppearanceAccent[];
213
+ /** For each brand's accent, the themes it reads on (text ≥ 4.5:1, fill ≥ 3:1, its label ≥ 4.5:1). */
214
+ readonly passes: { readonly [B in BrandId]: readonly AppearanceThemeId[] };
215
+ readonly densities: readonly AppearanceDensity[];
216
+ };
package/dist/index.js CHANGED
@@ -10,10 +10,13 @@ export const tokens = /* @__PURE__ */ Object.freeze({
10
10
  "borderSubtle": "var(--kz-border-subtle)",
11
11
  "borderDefault": "var(--kz-border-default)",
12
12
  "borderStrong": "var(--kz-border-strong)",
13
+ "borderControl": "var(--kz-border-control)",
14
+ "borderHover": "var(--kz-border-hover)",
13
15
  "textPrimary": "var(--kz-text-primary)",
14
16
  "textSecondary": "var(--kz-text-secondary)",
15
17
  "textMuted": "var(--kz-text-muted)",
16
18
  "textOnMedia": "var(--kz-text-on-media)",
19
+ "textTitle": "var(--kz-text-title)",
17
20
  "accent": "var(--kz-accent)",
18
21
  "accentHover": "var(--kz-accent-hover)",
19
22
  "accentSoft": "var(--kz-accent-soft)",
@@ -35,6 +38,18 @@ export const tokens = /* @__PURE__ */ Object.freeze({
35
38
  "dangerSoft": "var(--kz-danger-soft)",
36
39
  "info": "var(--kz-info)",
37
40
  "infoText": "var(--kz-info-text)",
41
+ "tagBlue": "var(--kz-tag-blue)",
42
+ "tagBlueText": "var(--kz-tag-blue-text)",
43
+ "tagGreen": "var(--kz-tag-green)",
44
+ "tagGreenText": "var(--kz-tag-green-text)",
45
+ "tagAmber": "var(--kz-tag-amber)",
46
+ "tagAmberText": "var(--kz-tag-amber-text)",
47
+ "tagRed": "var(--kz-tag-red)",
48
+ "tagRedText": "var(--kz-tag-red-text)",
49
+ "tagViolet": "var(--kz-tag-violet)",
50
+ "tagVioletText": "var(--kz-tag-violet-text)",
51
+ "tagGray": "var(--kz-tag-gray)",
52
+ "tagGrayText": "var(--kz-tag-gray-text)",
38
53
  "scrim": "var(--kz-scrim)",
39
54
  "scrimStrong": "var(--kz-scrim-strong)",
40
55
  "overlay": "var(--kz-overlay)",
@@ -57,6 +72,7 @@ export const tokens = /* @__PURE__ */ Object.freeze({
57
72
  "shadowRaised": "var(--kz-shadow-raised)",
58
73
  "shadowFloating": "var(--kz-shadow-floating)",
59
74
  "shadowOverlay": "var(--kz-shadow-overlay)",
75
+ "shadowHover": "var(--kz-shadow-hover)",
60
76
  "surfaceSheen": "var(--kz-surface-sheen)",
61
77
  "fillShade": "var(--kz-fill-shade)",
62
78
  "edgeLight": "var(--kz-edge-light)",
@@ -72,10 +88,13 @@ export const tokens = /* @__PURE__ */ Object.freeze({
72
88
  "controlMd": "var(--kz-control-md)",
73
89
  "controlLg": "var(--kz-control-lg)",
74
90
  "controlField": "var(--kz-control-field)",
91
+ "controlRow": "var(--kz-control-row)",
75
92
  "cutShape": "var(--kz-cut-shape)",
76
93
  "cutSize": "var(--kz-cut-size)",
77
94
  "paperModule": "var(--kz-paper-module)",
78
95
  "paperLine": "var(--kz-paper-line)",
96
+ "densityGap": "var(--kz-density-gap)",
97
+ "densityPad": "var(--kz-density-pad)",
79
98
  "ease": "var(--kz-ease)",
80
99
  "easeSpring": "var(--kz-ease-spring)",
81
100
  "durationInstant": "var(--kz-duration-instant)",
@@ -86,6 +105,8 @@ export const tokens = /* @__PURE__ */ Object.freeze({
86
105
  "fontDisplay": "var(--kz-font-display)",
87
106
  "fontMono": "var(--kz-font-mono)",
88
107
  "fontCahier": "var(--kz-font-cahier)",
108
+ "fontProductDisplay": "var(--kz-font-product-display)",
109
+ "fontMonoMeta": "var(--kz-font-mono-meta)",
89
110
  "typeDisplay2xlSize": "var(--kz-type-display-2xl-size)",
90
111
  "typeDisplay2xlLineHeight": "var(--kz-type-display-2xl-line-height)",
91
112
  "typeDisplay2xlWeight": "var(--kz-type-display-2xl-weight)",
@@ -155,10 +176,13 @@ export const values = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Obje
155
176
  "borderSubtle": "hsl(110 25% 92% / 0.07)",
156
177
  "borderDefault": "hsl(110 25% 92% / 0.12)",
157
178
  "borderStrong": "hsl(110 25% 92% / 0.20)",
179
+ "borderControl": "hsl(110 25% 92% / 0.20)",
180
+ "borderHover": "hsl(110 25% 92% / 0.20)",
158
181
  "textPrimary": "hsl(105 17% 93%)",
159
182
  "textSecondary": "hsl(140 10% 76%)",
160
183
  "textMuted": "hsl(140 8% 68%)",
161
184
  "textOnMedia": "hsl(0 0% 100%)",
185
+ "textTitle": "hsl(105 17% 93%)",
162
186
  "accent": "hsl(208 46% 45%)",
163
187
  "accentHover": "hsl(208 48% 39%)",
164
188
  "accentSoft": "hsl(208 46% 45% / 0.12)",
@@ -180,6 +204,18 @@ export const values = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Obje
180
204
  "dangerSoft": "hsl(0 84% 60% / 0.14)",
181
205
  "info": "hsl(208 46% 45%)",
182
206
  "infoText": "hsl(206 58% 72%)",
207
+ "tagBlue": "hsl(224 65% 57.5%)",
208
+ "tagBlueText": "hsl(224 65% 68%)",
209
+ "tagGreen": "hsl(142 50% 35.5%)",
210
+ "tagGreenText": "hsl(142 50% 44.5%)",
211
+ "tagAmber": "hsl(34 85% 36.5%)",
212
+ "tagAmberText": "hsl(34 85% 46%)",
213
+ "tagRed": "hsl(345 65% 54%)",
214
+ "tagRedText": "hsl(345 65% 67%)",
215
+ "tagViolet": "hsl(283 55% 55.5%)",
216
+ "tagVioletText": "hsl(283 55% 67%)",
217
+ "tagGray": "hsl(220 8% 48%)",
218
+ "tagGrayText": "hsl(220 8% 60.5%)",
183
219
  "scrim": "hsl(0 0% 0% / 0.60)",
184
220
  "scrimStrong": "hsl(0 0% 0% / 0.80)",
185
221
  "overlay": "hsl(0 0% 0% / 0.70)",
@@ -202,6 +238,7 @@ export const values = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Obje
202
238
  "shadowRaised": "0 1px 0 hsl(150 30% 3% / 0.6)",
203
239
  "shadowFloating": "0 1px 0 hsl(150 30% 3% / 0.6), 4px 5px 0 -2px hsl(150 30% 4% / 0.55)",
204
240
  "shadowOverlay": "0 1px 0 hsl(150 30% 3% / 0.6), 8px 10px 0 -3px hsl(150 30% 4% / 0.55)",
241
+ "shadowHover": "0 1px 0 hsl(150 30% 3% / 0.6)",
205
242
  "surfaceSheen": "hsl(0 0% 100% / 0)",
206
243
  "fillShade": "hsl(0 0% 0% / 0.12)",
207
244
  "edgeLight": "hsl(0 0% 100% / 0)",
@@ -217,10 +254,13 @@ export const values = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Obje
217
254
  "controlMd": "40px",
218
255
  "controlLg": "48px",
219
256
  "controlField": "44px",
257
+ "controlRow": "48px",
220
258
  "cutShape": "bevel",
221
259
  "cutSize": "10px",
222
260
  "paperModule": "32px",
223
261
  "paperLine": "8px",
262
+ "densityGap": "16px",
263
+ "densityPad": "20px",
224
264
  "ease": "cubic-bezier(0.45, 0, 0.2, 1)",
225
265
  "easeSpring": "cubic-bezier(0.34, 1.36, 0.64, 1)",
226
266
  "durationInstant": "90ms",
@@ -231,6 +271,8 @@ export const values = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Obje
231
271
  "fontDisplay": "\"Young Serif\", \"Young Serif Fallback\", Georgia, \"Times New Roman\", serif",
232
272
  "fontMono": "\"Courier Prime\", \"Courier Prime Fallback\", \"Courier New\", ui-monospace, Menlo, Consolas, monospace",
233
273
  "fontCahier": "\"Krizaka Cahier\", \"Krizaka Cahier Fallback\", \"Marker Felt\", \"Bradley Hand\", cursive",
274
+ "fontProductDisplay": "\"Plus Jakarta Sans\", \"Plus Jakarta Sans Fallback\", system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif",
275
+ "fontMonoMeta": "\"Courier Prime\", \"Courier Prime Fallback\", \"Courier New\", ui-monospace, Menlo, Consolas, monospace",
234
276
  "typeDisplay2xlSize": "72px",
235
277
  "typeDisplay2xlLineHeight": "1.11",
236
278
  "typeDisplay2xlWeight": "400",
@@ -297,10 +339,13 @@ export const values = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Obje
297
339
  "borderSubtle": "hsl(212 49% 24% / 0.10)",
298
340
  "borderDefault": "hsl(212 49% 24% / 0.17)",
299
341
  "borderStrong": "hsl(212 49% 24% / 0.28)",
342
+ "borderControl": "hsl(212 49% 24% / 0.28)",
343
+ "borderHover": "hsl(212 49% 24% / 0.28)",
300
344
  "textPrimary": "hsl(212 49% 22%)",
301
345
  "textSecondary": "hsl(212 22% 32%)",
302
346
  "textMuted": "hsl(212 14% 36%)",
303
347
  "textOnMedia": "hsl(0 0% 100%)",
348
+ "textTitle": "hsl(212 49% 22%)",
304
349
  "accent": "hsl(208 54% 36%)",
305
350
  "accentHover": "hsl(208 58% 29%)",
306
351
  "accentSoft": "hsl(208 54% 36% / 0.08)",
@@ -322,6 +367,18 @@ export const values = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Obje
322
367
  "dangerSoft": "hsl(0 84% 60% / 0.1)",
323
368
  "info": "hsl(208 54% 36%)",
324
369
  "infoText": "hsl(208 54% 33%)",
370
+ "tagBlue": "hsl(224 65% 60%)",
371
+ "tagBlueText": "hsl(224 65% 49.5%)",
372
+ "tagGreen": "hsl(142 50% 37.5%)",
373
+ "tagGreenText": "hsl(142 50% 29%)",
374
+ "tagAmber": "hsl(34 85% 38.5%)",
375
+ "tagAmberText": "hsl(34 85% 29.5%)",
376
+ "tagRed": "hsl(345 65% 57.5%)",
377
+ "tagRedText": "hsl(345 65% 43.5%)",
378
+ "tagViolet": "hsl(283 55% 58.5%)",
379
+ "tagVioletText": "hsl(283 55% 46.5%)",
380
+ "tagGray": "hsl(220 8% 51%)",
381
+ "tagGrayText": "hsl(220 8% 39.5%)",
325
382
  "scrim": "hsl(0 0% 0% / 0.60)",
326
383
  "scrimStrong": "hsl(0 0% 0% / 0.80)",
327
384
  "overlay": "hsl(0 0% 0% / 0.70)",
@@ -344,6 +401,7 @@ export const values = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Obje
344
401
  "shadowRaised": "0 1px 0 hsl(212 49% 24% / 0.12)",
345
402
  "shadowFloating": "0 1px 0 hsl(212 49% 24% / 0.12), 4px 5px 0 -2px hsl(212 40% 30% / 0.14)",
346
403
  "shadowOverlay": "0 1px 0 hsl(212 49% 24% / 0.12), 8px 10px 0 -3px hsl(212 40% 30% / 0.14)",
404
+ "shadowHover": "0 1px 0 hsl(212 49% 24% / 0.12)",
347
405
  "surfaceSheen": "hsl(0 0% 100% / 0)",
348
406
  "fillShade": "hsl(0 0% 0% / 0.12)",
349
407
  "edgeLight": "hsl(0 0% 100% / 0)",
@@ -359,10 +417,13 @@ export const values = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Obje
359
417
  "controlMd": "40px",
360
418
  "controlLg": "48px",
361
419
  "controlField": "44px",
420
+ "controlRow": "48px",
362
421
  "cutShape": "bevel",
363
422
  "cutSize": "10px",
364
423
  "paperModule": "32px",
365
424
  "paperLine": "8px",
425
+ "densityGap": "16px",
426
+ "densityPad": "20px",
366
427
  "ease": "cubic-bezier(0.45, 0, 0.2, 1)",
367
428
  "easeSpring": "cubic-bezier(0.34, 1.36, 0.64, 1)",
368
429
  "durationInstant": "90ms",
@@ -373,6 +434,8 @@ export const values = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Obje
373
434
  "fontDisplay": "\"Young Serif\", \"Young Serif Fallback\", Georgia, \"Times New Roman\", serif",
374
435
  "fontMono": "\"Courier Prime\", \"Courier Prime Fallback\", \"Courier New\", ui-monospace, Menlo, Consolas, monospace",
375
436
  "fontCahier": "\"Krizaka Cahier\", \"Krizaka Cahier Fallback\", \"Marker Felt\", \"Bradley Hand\", cursive",
437
+ "fontProductDisplay": "\"Plus Jakarta Sans\", \"Plus Jakarta Sans Fallback\", system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif",
438
+ "fontMonoMeta": "\"Courier Prime\", \"Courier Prime Fallback\", \"Courier New\", ui-monospace, Menlo, Consolas, monospace",
376
439
  "typeDisplay2xlSize": "72px",
377
440
  "typeDisplay2xlLineHeight": "1.11",
378
441
  "typeDisplay2xlWeight": "400",
@@ -892,3 +955,10 @@ export const marks = /* @__PURE__ */ Object.freeze({
892
955
  ]
893
956
  ]
894
957
  });
958
+
959
+ /**
960
+ * Appearance (ADR-006 §4): the themes a product's user chooses (`system`, `light`, `dark` — required —, `blueprint`, `carbone`), the colours of
961
+ * each one's miniature, the accents (every brand's family per theme) with the themes each one reads on (`passes`, WCAG 2), the densities.
962
+ * `appearance.css` applies the surface sets (`html.theme-<id>`) and the accent (`html[data-accent]`).
963
+ */
964
+ export const appearance = /* @__PURE__ */ Object.freeze({"themes":[{"id":"system","base":"system","required":true,"preview":null},{"id":"light","base":"light","required":true,"preview":{"surface0":"#fbfbfa","surface1":"#ffffff","surface2":"#f4f4f2","text":"#242c3d","muted":"#646d80"}},{"id":"dark","base":"dark","required":true,"preview":{"surface0":"#111318","surface1":"#171a21","surface2":"#1e222b","text":"#e8ebf1","muted":"#959eae"}},{"id":"blueprint","base":"dark","preview":{"surface0":"hsl(222 40% 9%)","surface1":"hsl(222 38% 12%)","surface2":"hsl(222 36% 15%)","text":"hsl(215 40% 93%)","muted":"hsl(215 18% 69%)"}},{"id":"carbone","base":"dark","preview":{"surface0":"hsl(0 0% 5.5%)","surface1":"hsl(0 0% 8.5%)","surface2":"hsl(0 0% 11.5%)","text":"hsl(0 0% 93%)","muted":"hsl(0 0% 66%)"}}],"accents":[{"id":"krizaka","dark":{"accent":"hsl(208 46% 45%)","accentHover":"hsl(208 48% 39%)","accentSoft":"hsl(208 46% 45% / 0.12)","accentText":"hsl(206 58% 72%)","accent2":"hsl(208 46% 45%)","onAccent":"hsl(0 0% 100%)","ring":"hsl(208 46% 45%)","info":"hsl(208 46% 45%)","infoText":"hsl(206 58% 72%)"},"light":{"accent":"hsl(208 54% 36%)","accentHover":"hsl(208 58% 29%)","accentSoft":"hsl(208 54% 36% / 0.08)","accentText":"hsl(208 54% 33%)","accent2":"hsl(208 54% 36%)","onAccent":"hsl(0 0% 100%)","ring":"hsl(208 54% 36%)","info":"hsl(208 54% 36%)","infoText":"hsl(208 54% 33%)"}},{"id":"orazaka","dark":{"accent":"hsl(26 92% 55%)","accentHover":"hsl(26 92% 62%)","accentSoft":"hsl(26 92% 55% / 0.12)","accentText":"hsl(26 92% 60%)","accent2":"hsl(37.7 92.1% 50.2%)","onAccent":"hsl(240 6% 5%)","ring":"hsl(26 92% 55%)","info":"hsl(207 50% 58%)","infoText":"hsl(206 58% 72%)"},"light":{"accent":"hsl(26 90.5% 37.1%)","accentHover":"hsl(26 90% 31%)","accentSoft":"hsl(26 90.5% 37.1% / 0.08)","accentText":"hsl(26 90% 32%)","accent2":"hsl(32 95% 33%)","onAccent":"hsl(0 0% 100%)","ring":"hsl(26 90.5% 37.1%)","info":"hsl(208 54% 36%)","infoText":"hsl(208 54% 33%)"}},{"id":"orochia","dark":{"accent":"hsl(262.1 83.3% 57.8%)","accentHover":"hsl(263.4 70% 50.4%)","accentSoft":"hsl(258.3 89.5% 66.3% / 0.12)","accentText":"hsl(255.1 91.7% 76.3%)","accent2":"hsl(333.3 71.4% 50.6%)","onAccent":"hsl(0 0% 100%)","ring":"hsl(255.1 91.7% 76.3%)","info":"hsl(262.1 83.3% 57.8%)","infoText":"hsl(255.1 91.7% 76.3%)"},"light":{"accent":"hsl(262.1 83.3% 57.8%)","accentHover":"hsl(263.4 70% 50.4%)","accentSoft":"hsl(262.1 83.3% 57.8% / 0.08)","accentText":"hsl(263.4 70% 50.4%)","accent2":"hsl(333.3 71.4% 50.6%)","onAccent":"hsl(0 0% 100%)","ring":"hsl(262.1 83.3% 57.8%)","info":"hsl(262.1 83.3% 57.8%)","infoText":"hsl(263.4 70% 50.4%)"}},{"id":"yasakia","dark":{"accent":"hsl(174 72% 50%)","accentHover":"hsl(174 72% 58%)","accentSoft":"hsl(174 72% 50% / 0.12)","accentText":"hsl(174 72% 56%)","accent2":"hsl(152 70% 45%)","onAccent":"hsl(240 6% 5%)","ring":"hsl(174 72% 50%)","info":"hsl(207 50% 58%)","infoText":"hsl(206 58% 72%)"},"light":{"accent":"hsl(175 85% 24%)","accentHover":"hsl(175 85% 20%)","accentSoft":"hsl(175 85% 24% / 0.08)","accentText":"hsl(175 85% 23%)","accent2":"hsl(152 76% 26%)","onAccent":"hsl(0 0% 100%)","ring":"hsl(175 85% 24%)","info":"hsl(208 54% 36%)","infoText":"hsl(208 54% 33%)"}},{"id":"yororis","dark":{"accent":"hsl(98 24% 62%)","accentHover":"hsl(98 26% 70%)","accentSoft":"hsl(98 24% 62% / 0.12)","accentText":"hsl(98 28% 68%)","accent2":"hsl(36 38% 62%)","onAccent":"hsl(240 6% 5%)","ring":"hsl(98 24% 62%)","info":"hsl(207 50% 58%)","infoText":"hsl(206 58% 72%)"},"light":{"accent":"hsl(100 28% 30%)","accentHover":"hsl(100 30% 25%)","accentSoft":"hsl(100 28% 30% / 0.08)","accentText":"hsl(100 28% 28%)","accent2":"hsl(34 38% 33%)","onAccent":"hsl(0 0% 100%)","ring":"hsl(100 28% 30%)","info":"hsl(208 54% 36%)","infoText":"hsl(208 54% 33%)"}},{"id":"yomizaka","dark":{"accent":"hsl(240 80% 74%)","accentHover":"hsl(240 82% 80%)","accentSoft":"hsl(240 80% 74% / 0.12)","accentText":"hsl(240 85% 78%)","accent2":"hsl(232 72% 74%)","onAccent":"hsl(240 6% 5%)","ring":"hsl(240 80% 74%)","info":"hsl(207 50% 58%)","infoText":"hsl(206 58% 72%)"},"light":{"accent":"hsl(242 52% 46%)","accentHover":"hsl(242 55% 40%)","accentSoft":"hsl(242 52% 46% / 0.08)","accentText":"hsl(242 52% 44%)","accent2":"hsl(232 56% 40%)","onAccent":"hsl(0 0% 100%)","ring":"hsl(242 52% 46%)","info":"hsl(208 54% 36%)","infoText":"hsl(208 54% 33%)"}},{"id":"kachizaka","dark":{"accent":"hsl(48 96% 56%)","accentHover":"hsl(48 98% 66%)","accentSoft":"hsl(48 96% 56% / 0.12)","accentText":"hsl(48 96% 64%)","accent2":"hsl(226 92% 72%)","onAccent":"hsl(230 30% 7%)","ring":"hsl(48 96% 56%)","info":"hsl(207 50% 58%)","infoText":"hsl(206 58% 72%)"},"light":{"accent":"hsl(48 96% 50%)","accentHover":"hsl(48 96% 44%)","accentSoft":"hsl(46 96% 50% / 0.14)","accentText":"hsl(226 72% 40%)","accent2":"hsl(226 92% 68%)","onAccent":"hsl(230 30% 7%)","ring":"hsl(226 80% 46%)","info":"hsl(208 54% 36%)","infoText":"hsl(208 54% 33%)"}},{"id":"akinaza","dark":{"accent":"hsl(130 44% 58%)","accentHover":"hsl(130 48% 66%)","accentSoft":"hsl(130 44% 58% / 0.12)","accentText":"hsl(130 50% 66%)","accent2":"hsl(22 62% 64%)","onAccent":"hsl(140 20% 5%)","ring":"hsl(130 44% 58%)","info":"hsl(207 50% 58%)","infoText":"hsl(206 58% 72%)"},"light":{"accent":"hsl(132 52% 27%)","accentHover":"hsl(132 55% 22%)","accentSoft":"hsl(132 52% 27% / 0.08)","accentText":"hsl(132 52% 26%)","accent2":"hsl(20 62% 36%)","onAccent":"hsl(0 0% 100%)","ring":"hsl(132 52% 27%)","info":"hsl(208 54% 36%)","infoText":"hsl(208 54% 33%)"}}],"passes":{"krizaka":["light","dark","blueprint","carbone"],"orazaka":["light","dark","blueprint","carbone"],"orochia":["light"],"yasakia":["light","dark","blueprint","carbone"],"yororis":["light","dark","blueprint","carbone"],"yomizaka":["light","dark","blueprint","carbone"],"kachizaka":["dark","blueprint","carbone"],"akinaza":["light","dark","blueprint","carbone"]},"densities":["standard","compact"]});
package/dist/native.d.ts CHANGED
@@ -10,10 +10,13 @@ export type Theme = {
10
10
  readonly borderSubtle: string;
11
11
  readonly borderDefault: string;
12
12
  readonly borderStrong: string;
13
+ readonly borderControl: string;
14
+ readonly borderHover: string;
13
15
  readonly textPrimary: string;
14
16
  readonly textSecondary: string;
15
17
  readonly textMuted: string;
16
18
  readonly textOnMedia: string;
19
+ readonly textTitle: string;
17
20
  readonly accent: string;
18
21
  readonly accentHover: string;
19
22
  readonly accentSoft: string;
@@ -35,6 +38,18 @@ export type Theme = {
35
38
  readonly dangerSoft: string;
36
39
  readonly info: string;
37
40
  readonly infoText: string;
41
+ readonly tagBlue: string;
42
+ readonly tagBlueText: string;
43
+ readonly tagGreen: string;
44
+ readonly tagGreenText: string;
45
+ readonly tagAmber: string;
46
+ readonly tagAmberText: string;
47
+ readonly tagRed: string;
48
+ readonly tagRedText: string;
49
+ readonly tagViolet: string;
50
+ readonly tagVioletText: string;
51
+ readonly tagGray: string;
52
+ readonly tagGrayText: string;
38
53
  readonly scrim: string;
39
54
  readonly scrimStrong: string;
40
55
  readonly overlay: string;
@@ -72,6 +87,8 @@ export declare const typography: {
72
87
  readonly display: "Young Serif";
73
88
  readonly mono: "Courier Prime";
74
89
  readonly cahier: "Krizaka Cahier";
90
+ readonly productDisplay: "Plus Jakarta Sans";
91
+ readonly monoMeta: "Courier Prime";
75
92
  };
76
93
  /** Motion: the ease and the spring (cubic-bezier control points) and the micro-interaction durations, in ms. */
77
94
  export declare const motion: {
@@ -101,6 +118,7 @@ export type Shadows = {
101
118
  readonly raised: string;
102
119
  readonly floating: string;
103
120
  readonly overlay: string;
121
+ readonly hover: string;
104
122
  };
105
123
  /** The shadows per theme as React Native `boxShadow` strings (RN ≥ 0.76). */
106
124
  export declare const shadows: { readonly dark: Shadows; readonly light: Shadows };
@@ -117,3 +135,17 @@ export declare const brands: { readonly [B in BrandId]: BrandTheme };
117
135
  export type MarkStop = readonly [offset: string, color: string];
118
136
  /** The marks' emblem gradients: [offset, #rrggbb] stops, the same in both themes. */
119
137
  export declare const marks: { readonly [B in BrandId]: readonly MarkStop[] };
138
+
139
+
140
+ export type AppearanceThemeId = "system" | "light" | "dark" | "blueprint" | "carbone";
141
+ export type AppearanceDensity = "standard" | "compact";
142
+ export interface AppearancePreview { readonly surface0: string; readonly surface1: string; readonly surface2: string; readonly text: string; readonly muted: string }
143
+ export interface AppearanceTheme { readonly id: AppearanceThemeId; readonly base: "system" | "light" | "dark"; readonly required?: true; readonly preview: AppearancePreview | null }
144
+ export interface AppearanceAccent extends BrandTheme { readonly id: BrandId }
145
+ /** Appearance (ADR-006 §4): the themes with their miniature's colours, the accents per theme, what each reads on, the densities. */
146
+ export declare const appearance: {
147
+ readonly themes: readonly AppearanceTheme[];
148
+ readonly accents: readonly AppearanceAccent[];
149
+ readonly passes: { readonly [B in BrandId]: readonly AppearanceThemeId[] };
150
+ readonly densities: readonly AppearanceDensity[];
151
+ };
package/dist/native.js CHANGED
@@ -10,10 +10,13 @@ export const themes = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Obje
10
10
  "borderSubtle": "rgba(231,240,230,0.07)",
11
11
  "borderDefault": "rgba(231,240,230,0.12)",
12
12
  "borderStrong": "rgba(231,240,230,0.2)",
13
+ "borderControl": "rgba(231,240,230,0.2)",
14
+ "borderHover": "rgba(231,240,230,0.2)",
13
15
  "textPrimary": "#ecf0ea",
14
16
  "textSecondary": "#bcc8c0",
15
17
  "textMuted": "#a7b4ab",
16
18
  "textOnMedia": "#ffffff",
19
+ "textTitle": "#ecf0ea",
17
20
  "accent": "#3e76a8",
18
21
  "accentHover": "#346793",
19
22
  "accentSoft": "rgba(62,118,168,0.12)",
@@ -35,6 +38,18 @@ export const themes = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Obje
35
38
  "dangerSoft": "rgba(239,67,67,0.14)",
36
39
  "info": "#3e76a8",
37
40
  "infoText": "#8ebde1",
41
+ "tagBlue": "#4c72d9",
42
+ "tagBlueText": "#7895e2",
43
+ "tagGreen": "#2d884e",
44
+ "tagGreenText": "#39aa62",
45
+ "tagAmber": "#ac680e",
46
+ "tagAmberText": "#d98312",
47
+ "tagRed": "#d63d64",
48
+ "tagRedText": "#e27490",
49
+ "tagViolet": "#a94fcc",
50
+ "tagVioletText": "#bf7dd9",
51
+ "tagGray": "#717784",
52
+ "tagGrayText": "#9298a2",
38
53
  "scrim": "rgba(0,0,0,0.6)",
39
54
  "scrimStrong": "rgba(0,0,0,0.8)",
40
55
  "overlay": "rgba(0,0,0,0.7)",
@@ -60,10 +75,13 @@ export const themes = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Obje
60
75
  "borderSubtle": "rgba(31,59,91,0.1)",
61
76
  "borderDefault": "rgba(31,59,91,0.17)",
62
77
  "borderStrong": "rgba(31,59,91,0.28)",
78
+ "borderControl": "rgba(31,59,91,0.28)",
79
+ "borderHover": "rgba(31,59,91,0.28)",
63
80
  "textPrimary": "#1d3654",
64
81
  "textSecondary": "#405064",
65
82
  "textMuted": "#4f5b69",
66
83
  "textOnMedia": "#ffffff",
84
+ "textTitle": "#1d3654",
67
85
  "accent": "#2a5f8d",
68
86
  "accentHover": "#1f4d75",
69
87
  "accentSoft": "rgba(42,95,141,0.08)",
@@ -85,6 +103,18 @@ export const themes = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Obje
85
103
  "dangerSoft": "rgba(239,67,67,0.1)",
86
104
  "info": "#2a5f8d",
87
105
  "infoText": "#275782",
106
+ "tagBlue": "#577adb",
107
+ "tagBlueText": "#2c58d0",
108
+ "tagGreen": "#308f53",
109
+ "tagGreenText": "#256f40",
110
+ "tagAmber": "#b66d0f",
111
+ "tagAmberText": "#8b540b",
112
+ "tagRed": "#d94c6f",
113
+ "tagRedText": "#b7274b",
114
+ "tagViolet": "#ae5bcf",
115
+ "tagVioletText": "#9335b8",
116
+ "tagGray": "#787f8c",
117
+ "tagGrayText": "#5d626d",
88
118
  "scrim": "rgba(0,0,0,0.6)",
89
119
  "scrimStrong": "rgba(0,0,0,0.8)",
90
120
  "overlay": "rgba(0,0,0,0.7)",
@@ -120,7 +150,9 @@ export const typography = /* @__PURE__ */ Object.freeze({
120
150
  "text": "Atkinson Hyperlegible Next",
121
151
  "display": "Young Serif",
122
152
  "mono": "Courier Prime",
123
- "cahier": "Krizaka Cahier"
153
+ "cahier": "Krizaka Cahier",
154
+ "productDisplay": "Plus Jakarta Sans",
155
+ "monoMeta": "Courier Prime"
124
156
  });
125
157
 
126
158
  /**
@@ -244,14 +276,16 @@ export const shadows = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Obj
244
276
  "lg": "0 1px 0 0 rgba(5,10,8,0.6), 6px 8px 0 -2px rgba(7,13,10,0.55)",
245
277
  "raised": "0 1px 0 0 rgba(5,10,8,0.6)",
246
278
  "floating": "0 1px 0 0 rgba(5,10,8,0.6), 4px 5px 0 -2px rgba(7,13,10,0.55)",
247
- "overlay": "0 1px 0 0 rgba(5,10,8,0.6), 8px 10px 0 -3px rgba(7,13,10,0.55)"
279
+ "overlay": "0 1px 0 0 rgba(5,10,8,0.6), 8px 10px 0 -3px rgba(7,13,10,0.55)",
280
+ "hover": "0 1px 0 0 rgba(5,10,8,0.6)"
248
281
  }), light: /* @__PURE__ */ Object.freeze({
249
282
  "sm": "0 1px 0 0 rgba(31,59,91,0.12)",
250
283
  "md": "0 1px 0 0 rgba(31,59,91,0.12), 4px 5px 0 -2px rgba(46,74,107,0.14)",
251
284
  "lg": "0 1px 0 0 rgba(31,59,91,0.12), 6px 8px 0 -2px rgba(46,74,107,0.14)",
252
285
  "raised": "0 1px 0 0 rgba(31,59,91,0.12)",
253
286
  "floating": "0 1px 0 0 rgba(31,59,91,0.12), 4px 5px 0 -2px rgba(46,74,107,0.14)",
254
- "overlay": "0 1px 0 0 rgba(31,59,91,0.12), 8px 10px 0 -3px rgba(46,74,107,0.14)"
287
+ "overlay": "0 1px 0 0 rgba(31,59,91,0.12), 8px 10px 0 -3px rgba(46,74,107,0.14)",
288
+ "hover": "0 1px 0 0 rgba(31,59,91,0.12)"
255
289
  }) });
256
290
 
257
291
  /** The griffe (BRAND.md §6.1): the size of the 45° cut corner of a control, in dp. */
@@ -589,3 +623,361 @@ export const marks = /* @__PURE__ */ Object.freeze({
589
623
  ]
590
624
  ]
591
625
  });
626
+
627
+ /** Appearance (ADR-006 §4): the themes with their miniature's colours, the accents per theme, what each reads on, the densities. */
628
+ export const appearance = /* @__PURE__ */ Object.freeze({
629
+ "themes": [
630
+ {
631
+ "id": "system",
632
+ "base": "system",
633
+ "required": true,
634
+ "preview": null
635
+ },
636
+ {
637
+ "id": "light",
638
+ "base": "light",
639
+ "required": true,
640
+ "preview": {
641
+ "surface0": "#fbfbfa",
642
+ "surface1": "#ffffff",
643
+ "surface2": "#f4f4f2",
644
+ "text": "#242c3d",
645
+ "muted": "#646d80"
646
+ }
647
+ },
648
+ {
649
+ "id": "dark",
650
+ "base": "dark",
651
+ "required": true,
652
+ "preview": {
653
+ "surface0": "#111318",
654
+ "surface1": "#171a21",
655
+ "surface2": "#1e222b",
656
+ "text": "#e8ebf1",
657
+ "muted": "#959eae"
658
+ }
659
+ },
660
+ {
661
+ "id": "blueprint",
662
+ "base": "dark",
663
+ "preview": {
664
+ "surface0": "#0e1320",
665
+ "surface1": "#131a2a",
666
+ "surface2": "#182134",
667
+ "text": "#e6ecf4",
668
+ "muted": "#a2aebe"
669
+ }
670
+ },
671
+ {
672
+ "id": "carbone",
673
+ "base": "dark",
674
+ "preview": {
675
+ "surface0": "#0e0e0e",
676
+ "surface1": "#161616",
677
+ "surface2": "#1d1d1d",
678
+ "text": "#ededed",
679
+ "muted": "#a8a8a8"
680
+ }
681
+ }
682
+ ],
683
+ "accents": [
684
+ {
685
+ "id": "krizaka",
686
+ "dark": {
687
+ "accent": "#3e76a8",
688
+ "accentHover": "#346793",
689
+ "accentSoft": "rgba(62,118,168,0.12)",
690
+ "accentText": "#8ebde1",
691
+ "accent2": "#3e76a8",
692
+ "onAccent": "#ffffff",
693
+ "ring": "#3e76a8",
694
+ "info": "#3e76a8",
695
+ "infoText": "#8ebde1",
696
+ "brandGradientFrom": "#151b18",
697
+ "brandGradientVia": "#151b18",
698
+ "brandGradientTo": "#151b18"
699
+ },
700
+ "light": {
701
+ "accent": "#2a5f8d",
702
+ "accentHover": "#1f4d75",
703
+ "accentSoft": "rgba(42,95,141,0.08)",
704
+ "accentText": "#275782",
705
+ "accent2": "#2a5f8d",
706
+ "onAccent": "#ffffff",
707
+ "ring": "#2a5f8d",
708
+ "info": "#2a5f8d",
709
+ "infoText": "#275782",
710
+ "brandGradientFrom": "#f4f6f3",
711
+ "brandGradientVia": "#f4f6f3",
712
+ "brandGradientTo": "#f4f6f3"
713
+ }
714
+ },
715
+ {
716
+ "id": "orazaka",
717
+ "dark": {
718
+ "accent": "#f67e23",
719
+ "accentHover": "#f79245",
720
+ "accentSoft": "rgba(246,126,35,0.12)",
721
+ "accentText": "#f78c3b",
722
+ "accent2": "#f59e0b",
723
+ "onAccent": "#0c0c0e",
724
+ "ring": "#f67e23",
725
+ "info": "#5e99c9",
726
+ "infoText": "#8ebde1",
727
+ "brandGradientFrom": "#151b18",
728
+ "brandGradientVia": "#151b18",
729
+ "brandGradientTo": "#151b18"
730
+ },
731
+ "light": {
732
+ "accent": "#b45309",
733
+ "accentHover": "#964608",
734
+ "accentSoft": "rgba(180,83,9,0.08)",
735
+ "accentText": "#9b4808",
736
+ "accent2": "#a45904",
737
+ "onAccent": "#ffffff",
738
+ "ring": "#b45309",
739
+ "info": "#2a5f8d",
740
+ "infoText": "#275782",
741
+ "brandGradientFrom": "#f4f6f3",
742
+ "brandGradientVia": "#f4f6f3",
743
+ "brandGradientTo": "#f4f6f3"
744
+ }
745
+ },
746
+ {
747
+ "id": "orochia",
748
+ "dark": {
749
+ "accent": "#7c3aed",
750
+ "accentHover": "#6d28d9",
751
+ "accentSoft": "rgba(139,92,246,0.12)",
752
+ "accentText": "#a78bfa",
753
+ "accent2": "#db2777",
754
+ "onAccent": "#ffffff",
755
+ "ring": "#a78bfa",
756
+ "info": "#7c3aed",
757
+ "infoText": "#a78bfa",
758
+ "brandGradientFrom": "#151b18",
759
+ "brandGradientVia": "#151b18",
760
+ "brandGradientTo": "#151b18"
761
+ },
762
+ "light": {
763
+ "accent": "#7c3aed",
764
+ "accentHover": "#6d28d9",
765
+ "accentSoft": "rgba(124,58,237,0.08)",
766
+ "accentText": "#6d28d9",
767
+ "accent2": "#db2777",
768
+ "onAccent": "#ffffff",
769
+ "ring": "#7c3aed",
770
+ "info": "#7c3aed",
771
+ "infoText": "#6d28d9",
772
+ "brandGradientFrom": "#f4f6f3",
773
+ "brandGradientVia": "#f4f6f3",
774
+ "brandGradientTo": "#f4f6f3"
775
+ }
776
+ },
777
+ {
778
+ "id": "yasakia",
779
+ "dark": {
780
+ "accent": "#24dbc9",
781
+ "accentHover": "#47e1d2",
782
+ "accentSoft": "rgba(36,219,201,0.12)",
783
+ "accentText": "#3ee0cf",
784
+ "accent2": "#22c378",
785
+ "onAccent": "#0c0c0e",
786
+ "ring": "#24dbc9",
787
+ "info": "#5e99c9",
788
+ "infoText": "#8ebde1",
789
+ "brandGradientFrom": "#151b18",
790
+ "brandGradientVia": "#151b18",
791
+ "brandGradientTo": "#151b18"
792
+ },
793
+ "light": {
794
+ "accent": "#097169",
795
+ "accentHover": "#085e57",
796
+ "accentSoft": "rgba(9,113,105,0.08)",
797
+ "accentText": "#096d64",
798
+ "accent2": "#107546",
799
+ "onAccent": "#ffffff",
800
+ "ring": "#097169",
801
+ "info": "#2a5f8d",
802
+ "infoText": "#275782",
803
+ "brandGradientFrom": "#f4f6f3",
804
+ "brandGradientVia": "#f4f6f3",
805
+ "brandGradientTo": "#f4f6f3"
806
+ }
807
+ },
808
+ {
809
+ "id": "yororis",
810
+ "dark": {
811
+ "accent": "#98b587",
812
+ "accentHover": "#adc69f",
813
+ "accentSoft": "rgba(152,181,135,0.12)",
814
+ "accentText": "#a7c497",
815
+ "accent2": "#c3a579",
816
+ "onAccent": "#0c0c0e",
817
+ "ring": "#98b587",
818
+ "info": "#5e99c9",
819
+ "infoText": "#8ebde1",
820
+ "brandGradientFrom": "#151b18",
821
+ "brandGradientVia": "#151b18",
822
+ "brandGradientTo": "#151b18"
823
+ },
824
+ "light": {
825
+ "accent": "#456237",
826
+ "accentHover": "#39532d",
827
+ "accentSoft": "rgba(69,98,55,0.08)",
828
+ "accentText": "#415b33",
829
+ "accent2": "#745834",
830
+ "onAccent": "#ffffff",
831
+ "ring": "#456237",
832
+ "info": "#2a5f8d",
833
+ "infoText": "#275782",
834
+ "brandGradientFrom": "#f4f6f3",
835
+ "brandGradientVia": "#f4f6f3",
836
+ "brandGradientTo": "#f4f6f3"
837
+ }
838
+ },
839
+ {
840
+ "id": "yomizaka",
841
+ "dark": {
842
+ "accent": "#8888f2",
843
+ "accentHover": "#a2a2f6",
844
+ "accentSoft": "rgba(136,136,242,0.12)",
845
+ "accentText": "#9797f7",
846
+ "accent2": "#8d9aec",
847
+ "onAccent": "#0c0c0e",
848
+ "ring": "#8888f2",
849
+ "info": "#5e99c9",
850
+ "infoText": "#8ebde1",
851
+ "brandGradientFrom": "#151b18",
852
+ "brandGradientVia": "#151b18",
853
+ "brandGradientTo": "#151b18"
854
+ },
855
+ "light": {
856
+ "accent": "#3c38b2",
857
+ "accentHover": "#322e9e",
858
+ "accentSoft": "rgba(60,56,178,0.08)",
859
+ "accentText": "#3a36ab",
860
+ "accent2": "#2d3c9f",
861
+ "onAccent": "#ffffff",
862
+ "ring": "#3c38b2",
863
+ "info": "#2a5f8d",
864
+ "infoText": "#275782",
865
+ "brandGradientFrom": "#f4f6f3",
866
+ "brandGradientVia": "#f4f6f3",
867
+ "brandGradientTo": "#f4f6f3"
868
+ }
869
+ },
870
+ {
871
+ "id": "kachizaka",
872
+ "dark": {
873
+ "accent": "#fbcf23",
874
+ "accentHover": "#fddb53",
875
+ "accentSoft": "rgba(251,207,35,0.12)",
876
+ "accentText": "#fbd84b",
877
+ "accent2": "#7695f9",
878
+ "onAccent": "#0c0e17",
879
+ "ring": "#fbcf23",
880
+ "info": "#5e99c9",
881
+ "infoText": "#8ebde1",
882
+ "brandGradientFrom": "#151b18",
883
+ "brandGradientVia": "#151b18",
884
+ "brandGradientTo": "#151b18"
885
+ },
886
+ "light": {
887
+ "accent": "#fac905",
888
+ "accentHover": "#dcb104",
889
+ "accentSoft": "rgba(250,193,5,0.14)",
890
+ "accentText": "#1d3faf",
891
+ "accent2": "#6285f8",
892
+ "onAccent": "#0c0e17",
893
+ "ring": "#1743d3",
894
+ "info": "#2a5f8d",
895
+ "infoText": "#275782",
896
+ "brandGradientFrom": "#f4f6f3",
897
+ "brandGradientVia": "#f4f6f3",
898
+ "brandGradientTo": "#f4f6f3"
899
+ }
900
+ },
901
+ {
902
+ "id": "akinaza",
903
+ "dark": {
904
+ "accent": "#65c374",
905
+ "accentHover": "#7fd28d",
906
+ "accentSoft": "rgba(101,195,116,0.12)",
907
+ "accentText": "#7dd48b",
908
+ "accent2": "#dc946a",
909
+ "onAccent": "#0a0f0c",
910
+ "ring": "#65c374",
911
+ "info": "#5e99c9",
912
+ "infoText": "#8ebde1",
913
+ "brandGradientFrom": "#151b18",
914
+ "brandGradientVia": "#151b18",
915
+ "brandGradientTo": "#151b18"
916
+ },
917
+ "light": {
918
+ "accent": "#21692f",
919
+ "accentHover": "#195726",
920
+ "accentSoft": "rgba(33,105,47,0.08)",
921
+ "accentText": "#20652e",
922
+ "accent2": "#954923",
923
+ "onAccent": "#ffffff",
924
+ "ring": "#21692f",
925
+ "info": "#2a5f8d",
926
+ "infoText": "#275782",
927
+ "brandGradientFrom": "#f4f6f3",
928
+ "brandGradientVia": "#f4f6f3",
929
+ "brandGradientTo": "#f4f6f3"
930
+ }
931
+ }
932
+ ],
933
+ "passes": {
934
+ "krizaka": [
935
+ "light",
936
+ "dark",
937
+ "blueprint",
938
+ "carbone"
939
+ ],
940
+ "orazaka": [
941
+ "light",
942
+ "dark",
943
+ "blueprint",
944
+ "carbone"
945
+ ],
946
+ "orochia": [
947
+ "light"
948
+ ],
949
+ "yasakia": [
950
+ "light",
951
+ "dark",
952
+ "blueprint",
953
+ "carbone"
954
+ ],
955
+ "yororis": [
956
+ "light",
957
+ "dark",
958
+ "blueprint",
959
+ "carbone"
960
+ ],
961
+ "yomizaka": [
962
+ "light",
963
+ "dark",
964
+ "blueprint",
965
+ "carbone"
966
+ ],
967
+ "kachizaka": [
968
+ "dark",
969
+ "blueprint",
970
+ "carbone"
971
+ ],
972
+ "akinaza": [
973
+ "light",
974
+ "dark",
975
+ "blueprint",
976
+ "carbone"
977
+ ]
978
+ },
979
+ "densities": [
980
+ "standard",
981
+ "compact"
982
+ ]
983
+ });
package/dist/tokens.css CHANGED
@@ -16,11 +16,14 @@
16
16
  --kz-border-subtle: hsl(110 25% 92% / 0.07); /* Séparateur discret */
17
17
  --kz-border-default: hsl(110 25% 92% / 0.12); /* Contour de carte, de champ */
18
18
  --kz-border-strong: hsl(110 25% 92% / 0.20); /* Contour au survol, focus non clavier */
19
+ --kz-border-control: var(--kz-border-strong); /* Contour d'un champ, d'une case, d'un interrupteur. Cahier : le contour fort. Registre produit : ≥ 3:1 sur les surfaces 0–2 (WCAG 1.4.11), car son filet de carte (1,16:1) ne suffit jamais à un champ */
20
+ --kz-border-hover: var(--kz-border-strong); /* Contour d'une carte interactive au survol (le registre produit le passe à l'accent, 22 %) */
19
21
 
20
22
  /* Texte */
21
23
  --kz-text-primary: hsl(105 17% 93%); /* La craie (sombre), l'encre bleue (clair) */
22
24
  --kz-text-secondary: hsl(140 10% 76%); /* Texte d'appui, libellés */
23
25
  --kz-text-muted: hsl(140 8% 68%); /* Métadonnées, placeholders, désactivé (≥ 4.5:1 sur chaque surface, texte courant inclus) */
26
+ --kz-text-title: var(--kz-text-primary); /* Titre de page, valeur d'une statistique (le registre produit l'encre ardoise) */
24
27
 
25
28
  /* Accent : l'identité de la marque (Krizaka par défaut ; Orazaka, Orochia, Yasakia, Yororis dans src/brands). Surchargé par un thème de marque, jamais par un composant. */
26
29
  --kz-accent: hsl(208 46% 45%); /* Action principale, lien, sélection */
@@ -43,6 +46,20 @@
43
46
  --kz-info: var(--kz-accent); /* Statut : information */
44
47
  --kz-info-text: var(--kz-accent-text); /* Statut information en texte : l'accent en texte par défaut (≥ 4.5:1) */
45
48
 
49
+ /* Marqueurs de tags (ADR-006, krizaka-ui#627 ; krizaka-ts#89 : @krizaka/organize MARKERS) : six noms, un point (--kz-tag-<nom>, ≥ 3:1 sur les surfaces 0–3) et le texte voisin (--kz-tag-<nom>-text, ≥ 4.5:1). Jamais les tons de statut ni l'accent d'une marque (un test : ΔE ≥ 10). Un marqueur accompagne le nom du tag, il ne remplit jamais la puce. */
50
+ --kz-tag-blue: hsl(224 65% 57.5%); /* Marqueur blue : le point, la pastille (≥ 3:1) */
51
+ --kz-tag-blue-text: hsl(224 65% 68%); /* Marqueur blue en texte : ≥ 4.5:1 sur chaque surface */
52
+ --kz-tag-green: hsl(142 50% 35.5%); /* Marqueur green : le point, la pastille (≥ 3:1) */
53
+ --kz-tag-green-text: hsl(142 50% 44.5%); /* Marqueur green en texte : ≥ 4.5:1 sur chaque surface */
54
+ --kz-tag-amber: hsl(34 85% 36.5%); /* Marqueur amber : le point, la pastille (≥ 3:1) */
55
+ --kz-tag-amber-text: hsl(34 85% 46%); /* Marqueur amber en texte : ≥ 4.5:1 sur chaque surface */
56
+ --kz-tag-red: hsl(345 65% 54%); /* Marqueur red : le point, la pastille (≥ 3:1) */
57
+ --kz-tag-red-text: hsl(345 65% 67%); /* Marqueur red en texte : ≥ 4.5:1 sur chaque surface */
58
+ --kz-tag-violet: hsl(283 55% 55.5%); /* Marqueur violet : le point, la pastille (≥ 3:1) */
59
+ --kz-tag-violet-text: hsl(283 55% 67%); /* Marqueur violet en texte : ≥ 4.5:1 sur chaque surface */
60
+ --kz-tag-gray: hsl(220 8% 48%); /* Marqueur gray : le point, la pastille (≥ 3:1) */
61
+ --kz-tag-gray-text: hsl(220 8% 60.5%); /* Marqueur gray en texte : ≥ 4.5:1 sur chaque surface */
62
+
46
63
  /* Le cahier (ADR-004) : la réglure Seyès, la marge rouge, l'étiquette de spécimen */
47
64
  --kz-paper-rule-major: hsl(140 25% 88% / 0.09); /* Réglure : la ligne forte (tous les 32 px) */
48
65
  --kz-paper-rule-minor: hsl(140 25% 88% / 0.045); /* Réglure : les lignes fines (tous les 8 px) */
@@ -58,6 +75,7 @@
58
75
  --kz-shadow-raised: 0 1px 0 hsl(150 30% 3% / 0.6); /* Surélevé : bouton, carte */
59
76
  --kz-shadow-floating: 0 1px 0 hsl(150 30% 3% / 0.6), 4px 5px 0 -2px hsl(150 30% 4% / 0.55); /* Flottant : menu, popover, info-bulle */
60
77
  --kz-shadow-overlay: 0 1px 0 hsl(150 30% 3% / 0.6), 8px 10px 0 -3px hsl(150 30% 4% / 0.55); /* Au-dessus : dialogue, toast, palette */
78
+ --kz-shadow-hover: 0 1px 0 hsl(150 30% 3% / 0.6); /* Carte interactive au survol (le registre produit : 0 10px 25px -5px) */
61
79
  --kz-surface-sheen: hsl(0 0% 100% / 0); /* Plus de reflet (Cahier, ADR-004) : le papier est mat */
62
80
 
63
81
  /* Arêtes : un filet intérieur d'1 px */
@@ -96,6 +114,18 @@ html.light {
96
114
  --kz-warning-soft: hsl(38 92% 50% / 0.12); /* Fond teinté warning (texte primaire ≥ 4.5:1) */
97
115
  --kz-danger-text: hsl(0 72% 40%); /* Statut erreur en texte (message d'erreur, compte à rebours urgent) : ≥ 4.5:1 sur chaque surface */
98
116
  --kz-danger-soft: hsl(0 84% 60% / 0.1); /* Fond teinté danger (texte primaire ≥ 4.5:1) */
117
+ --kz-tag-blue: hsl(224 65% 60%); /* Marqueur blue : le point, la pastille (≥ 3:1) */
118
+ --kz-tag-blue-text: hsl(224 65% 49.5%); /* Marqueur blue en texte : ≥ 4.5:1 sur chaque surface */
119
+ --kz-tag-green: hsl(142 50% 37.5%); /* Marqueur green : le point, la pastille (≥ 3:1) */
120
+ --kz-tag-green-text: hsl(142 50% 29%); /* Marqueur green en texte : ≥ 4.5:1 sur chaque surface */
121
+ --kz-tag-amber: hsl(34 85% 38.5%); /* Marqueur amber : le point, la pastille (≥ 3:1) */
122
+ --kz-tag-amber-text: hsl(34 85% 29.5%); /* Marqueur amber en texte : ≥ 4.5:1 sur chaque surface */
123
+ --kz-tag-red: hsl(345 65% 57.5%); /* Marqueur red : le point, la pastille (≥ 3:1) */
124
+ --kz-tag-red-text: hsl(345 65% 43.5%); /* Marqueur red en texte : ≥ 4.5:1 sur chaque surface */
125
+ --kz-tag-violet: hsl(283 55% 58.5%); /* Marqueur violet : le point, la pastille (≥ 3:1) */
126
+ --kz-tag-violet-text: hsl(283 55% 46.5%); /* Marqueur violet en texte : ≥ 4.5:1 sur chaque surface */
127
+ --kz-tag-gray: hsl(220 8% 51%); /* Marqueur gray : le point, la pastille (≥ 3:1) */
128
+ --kz-tag-gray-text: hsl(220 8% 39.5%); /* Marqueur gray en texte : ≥ 4.5:1 sur chaque surface */
99
129
  --kz-paper-rule-major: hsl(214 40% 45% / 0.24); /* Réglure : la ligne forte (tous les 32 px) */
100
130
  --kz-paper-rule-minor: hsl(214 40% 45% / 0.10); /* Réglure : les lignes fines (tous les 8 px) */
101
131
  --kz-paper-rule-margin: hsl(5 62% 40%); /* La marge rouge, et les repères de la marge (§, fig., p.) */
@@ -108,6 +138,7 @@ html.light {
108
138
  --kz-shadow-raised: 0 1px 0 hsl(212 49% 24% / 0.12); /* Surélevé : bouton, carte */
109
139
  --kz-shadow-floating: 0 1px 0 hsl(212 49% 24% / 0.12), 4px 5px 0 -2px hsl(212 40% 30% / 0.14); /* Flottant : menu, popover, info-bulle */
110
140
  --kz-shadow-overlay: 0 1px 0 hsl(212 49% 24% / 0.12), 8px 10px 0 -3px hsl(212 40% 30% / 0.14); /* Au-dessus : dialogue, toast, palette */
141
+ --kz-shadow-hover: 0 1px 0 hsl(212 49% 24% / 0.12); /* Carte interactive au survol (le registre produit : 0 10px 25px -5px) */
111
142
  --kz-surface-sheen: hsl(0 0% 100% / 0); /* Plus de reflet (Cahier, ADR-004) : le papier est mat */
112
143
  --kz-edge-light: hsl(0 0% 100% / 0); /* Plus d'arête lumineuse : le papier est mat */
113
144
  --kz-edge-well: hsl(232 25% 25% / 0.08); /* Ombre intérieure d'un puits : champ, piste (inset-shadow-well) */
@@ -127,9 +158,12 @@ html.light {
127
158
  --kz-border-subtle: hsl(212 49% 24% / 0.10); /* Séparateur discret */
128
159
  --kz-border-default: hsl(212 49% 24% / 0.17); /* Contour de carte, de champ */
129
160
  --kz-border-strong: hsl(212 49% 24% / 0.28); /* Contour au survol, focus non clavier */
161
+ --kz-border-control: var(--kz-border-strong); /* Contour d'un champ, d'une case, d'un interrupteur. Cahier : le contour fort. Registre produit : ≥ 3:1 sur les surfaces 0–2 (WCAG 1.4.11), car son filet de carte (1,16:1) ne suffit jamais à un champ */
162
+ --kz-border-hover: var(--kz-border-strong); /* Contour d'une carte interactive au survol (le registre produit le passe à l'accent, 22 %) */
130
163
  --kz-text-primary: hsl(212 49% 22%); /* La craie (sombre), l'encre bleue (clair) */
131
164
  --kz-text-secondary: hsl(212 22% 32%); /* Texte d'appui, libellés */
132
165
  --kz-text-muted: hsl(212 14% 36%); /* Métadonnées, placeholders, désactivé (≥ 4.5:1 sur chaque surface, texte courant inclus) */
166
+ --kz-text-title: var(--kz-text-primary); /* Titre de page, valeur d'une statistique (le registre produit l'encre ardoise) */
133
167
  --kz-accent: hsl(208 54% 36%); /* Action principale, lien, sélection */
134
168
  --kz-accent-hover: hsl(208 58% 29%); /* Accent au survol */
135
169
  --kz-accent-soft: hsl(208 54% 36% / 0.08); /* Fond teinté (sélection, badge) */
@@ -147,6 +181,18 @@ html.light {
147
181
  --kz-danger-soft: hsl(0 84% 60% / 0.1); /* Fond teinté danger (texte primaire ≥ 4.5:1) */
148
182
  --kz-info: var(--kz-accent); /* Statut : information */
149
183
  --kz-info-text: var(--kz-accent-text); /* Statut information en texte : l'accent en texte par défaut (≥ 4.5:1) */
184
+ --kz-tag-blue: hsl(224 65% 60%); /* Marqueur blue : le point, la pastille (≥ 3:1) */
185
+ --kz-tag-blue-text: hsl(224 65% 49.5%); /* Marqueur blue en texte : ≥ 4.5:1 sur chaque surface */
186
+ --kz-tag-green: hsl(142 50% 37.5%); /* Marqueur green : le point, la pastille (≥ 3:1) */
187
+ --kz-tag-green-text: hsl(142 50% 29%); /* Marqueur green en texte : ≥ 4.5:1 sur chaque surface */
188
+ --kz-tag-amber: hsl(34 85% 38.5%); /* Marqueur amber : le point, la pastille (≥ 3:1) */
189
+ --kz-tag-amber-text: hsl(34 85% 29.5%); /* Marqueur amber en texte : ≥ 4.5:1 sur chaque surface */
190
+ --kz-tag-red: hsl(345 65% 57.5%); /* Marqueur red : le point, la pastille (≥ 3:1) */
191
+ --kz-tag-red-text: hsl(345 65% 43.5%); /* Marqueur red en texte : ≥ 4.5:1 sur chaque surface */
192
+ --kz-tag-violet: hsl(283 55% 58.5%); /* Marqueur violet : le point, la pastille (≥ 3:1) */
193
+ --kz-tag-violet-text: hsl(283 55% 46.5%); /* Marqueur violet en texte : ≥ 4.5:1 sur chaque surface */
194
+ --kz-tag-gray: hsl(220 8% 51%); /* Marqueur gray : le point, la pastille (≥ 3:1) */
195
+ --kz-tag-gray-text: hsl(220 8% 39.5%); /* Marqueur gray en texte : ≥ 4.5:1 sur chaque surface */
150
196
  --kz-paper-rule-major: hsl(214 40% 45% / 0.24); /* Réglure : la ligne forte (tous les 32 px) */
151
197
  --kz-paper-rule-minor: hsl(214 40% 45% / 0.10); /* Réglure : les lignes fines (tous les 8 px) */
152
198
  --kz-paper-rule-margin: hsl(5 62% 40%); /* La marge rouge, et les repères de la marge (§, fig., p.) */
@@ -159,6 +205,7 @@ html.light {
159
205
  --kz-shadow-raised: 0 1px 0 hsl(212 49% 24% / 0.12); /* Surélevé : bouton, carte */
160
206
  --kz-shadow-floating: 0 1px 0 hsl(212 49% 24% / 0.12), 4px 5px 0 -2px hsl(212 40% 30% / 0.14); /* Flottant : menu, popover, info-bulle */
161
207
  --kz-shadow-overlay: 0 1px 0 hsl(212 49% 24% / 0.12), 8px 10px 0 -3px hsl(212 40% 30% / 0.14); /* Au-dessus : dialogue, toast, palette */
208
+ --kz-shadow-hover: 0 1px 0 hsl(212 49% 24% / 0.12); /* Carte interactive au survol (le registre produit : 0 10px 25px -5px) */
162
209
  --kz-surface-sheen: hsl(0 0% 100% / 0); /* Plus de reflet (Cahier, ADR-004) : le papier est mat */
163
210
  --kz-edge-light: hsl(0 0% 100% / 0); /* Plus d'arête lumineuse : le papier est mat */
164
211
  --kz-edge-well: hsl(232 25% 25% / 0.08); /* Ombre intérieure d'un puits : champ, piste (inset-shadow-well) */
@@ -207,6 +254,7 @@ html.light {
207
254
  --kz-control-md: 40px; /* Bouton */
208
255
  --kz-control-lg: 48px; /* Grand bouton */
209
256
  --kz-control-field: 44px; /* Champ de saisie, sélecteur */
257
+ --kz-control-row: 48px; /* Ligne de liste ou de tableau */
210
258
 
211
259
  /* La griffe : le coin coupé à 45° (BRAND.md §6.1) ; --kz-cut-shape: round l'éteint pour une app */
212
260
  --kz-cut-shape: bevel; /* La forme des coins signés : bevel (coupé) ou round */
@@ -215,6 +263,10 @@ html.light {
215
263
  /* La réglure Seyès (ADR-004) : le grand carreau et la ligne fine ; les interlignages tombent sur la ligne */
216
264
  --kz-paper-module: 32px; /* Le grand carreau (8 mm) : le pas de la grille et de la marge */
217
265
  --kz-paper-line: 8px; /* La ligne fine : trois par carreau */
266
+
267
+ /* Densité : l'écart entre éléments et le remplissage d'une carte ; resserrés sous [data-density=compact] */
268
+ --kz-density-gap: 16px; /* Écart entre les éléments d'un groupe */
269
+ --kz-density-pad: 20px; /* Remplissage d'une carte, d'un panneau */
218
270
  --kz-ease: cubic-bezier(0.45, 0, 0.2, 1); /* Le trait d'encre (Cahier, ADR-004) : part doucement, se pose net ; plus de dépassement */
219
271
  --kz-ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1); /* Le tampon : pression, bascule, sélection */
220
272
 
@@ -228,6 +280,8 @@ html.light {
228
280
  --kz-font-display: "Young Serif", "Young Serif Fallback", Georgia, "Times New Roman", serif; /* Affichage : titres, noms, chiffres (Young Serif, une seule graisse) ; surchargé par le thème produit */
229
281
  --kz-font-mono: "Courier Prime", "Courier Prime Fallback", "Courier New", ui-monospace, Menlo, Consolas, monospace; /* La machine à écrire : étiquettes, légendes, notes, code (Courier Prime) */
230
282
  --kz-font-cahier: "Krizaka Cahier", "Krizaka Cahier Fallback", "Marker Felt", "Bradley Hand", cursive; /* Le stylo du cahier : § 4, numéros de règle, folios, notes à la main, l'ardoise du café (Krizaka Cahier) ; parcimonieux, jamais du texte courant */
283
+ --kz-font-product-display: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Titres d'un produit (Plus Jakarta Sans, 550 à 700) : le registre produit en fait son affichage ; les sites gardent Young Serif (ADR-006) */
284
+ --kz-font-mono-meta: "Courier Prime", "Courier Prime Fallback", "Courier New", ui-monospace, Menlo, Consolas, monospace; /* Identifiants et métadonnées tabulaires d'un produit (« KZ-03 », une référence, une heure) : Courier Prime, quand le code garde la mono système (ADR-006) */
231
285
 
232
286
  /* The hero of a home page */
233
287
  --kz-type-display-2xl-size: 72px;
@@ -321,6 +375,9 @@ html.light {
321
375
  --kz-control-md: 34px;
322
376
  --kz-control-lg: 40px;
323
377
  --kz-control-field: 36px;
378
+ --kz-control-row: 40px;
379
+ --kz-density-gap: 12px;
380
+ --kz-density-pad: 16px;
324
381
  }
325
382
 
326
383
  /* Mouvement réduit : les micro-interactions deviennent instantanées. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krizaka/tokens",
3
- "version": "3.54.0",
3
+ "version": "3.59.0",
4
4
  "description": "The Krizaka semantic design tokens (--kz-*) and the brand themes (Krizaka, Orazaka, Orochia, Yasakia, Yororis, Yomizaka, Kachizaka, Akinaza): one DTCG source compiled to CSS (dark, light, media invariants), typed constants and React Native themes.",
5
5
  "keywords": [
6
6
  "krizaka",
@@ -33,6 +33,7 @@
33
33
  "import": "./dist/index.js"
34
34
  },
35
35
  "./tokens.css": "./dist/tokens.css",
36
+ "./appearance.css": "./dist/appearance.css",
36
37
  "./brands/krizaka.css": "./dist/brands/krizaka.css",
37
38
  "./brands/orazaka.css": "./dist/brands/orazaka.css",
38
39
  "./brands/orochia.css": "./dist/brands/orochia.css",
@@ -66,8 +67,8 @@
66
67
  "publint": "^0.3.25",
67
68
  "size-limit": "^14.2.0",
68
69
  "typescript": "^5.9.0",
69
- "vitest": "^4.1.11",
70
- "@krizaka/config": "0.7.0"
70
+ "vitest": "^5.0.5",
71
+ "@krizaka/config": "0.8.0"
71
72
  },
72
73
  "engines": {
73
74
  "node": ">=22"
@@ -79,7 +80,7 @@
79
80
  {
80
81
  "name": "./tokens.css",
81
82
  "path": "dist/tokens.css",
82
- "limit": "5 kB",
83
+ "limit": "5.9 kB",
83
84
  "gzip": true,
84
85
  "rolldown": false
85
86
  },
@@ -100,13 +101,13 @@
100
101
  {
101
102
  "name": ".",
102
103
  "path": "dist/index.js",
103
- "limit": "4.2 kB",
104
+ "limit": "5.2 kB",
104
105
  "gzip": true
105
106
  },
106
107
  {
107
108
  "name": "./native",
108
109
  "path": "dist/native.js",
109
- "limit": "2.5 kB",
110
+ "limit": "3 kB",
110
111
  "gzip": true
111
112
  }
112
113
  ],
@@ -116,6 +117,6 @@
116
117
  "typecheck": "tsc --noEmit",
117
118
  "test": "vitest run",
118
119
  "size": "size-limit",
119
- "publint": "publint && attw --pack . --profile esm-only --exclude-entrypoints ./tokens.css ./brands/krizaka.css ./brands/orazaka.css ./brands/orochia.css ./brands/yasakia.css ./brands/yazakia.css ./brands/yororis.css ./brands/yomizaka.css ./brands/kachizaka.css ./brands/akinaza.css ./brands/scoped.css"
120
+ "publint": "publint && attw --pack . --profile esm-only --exclude-entrypoints ./tokens.css ./appearance.css ./brands/krizaka.css ./brands/orazaka.css ./brands/orochia.css ./brands/yasakia.css ./brands/yazakia.css ./brands/yororis.css ./brands/yomizaka.css ./brands/kachizaka.css ./brands/akinaza.css ./brands/scoped.css"
120
121
  }
121
122
  }