@krizaka/tokens 3.55.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.
- package/dist/appearance.css +215 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +43 -0
- package/dist/native.d.ts +26 -0
- package/dist/native.js +382 -0
- package/dist/tokens.css +38 -0
- package/package.json +7 -6
|
@@ -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
|
@@ -38,6 +38,18 @@ export declare const tokens: {
|
|
|
38
38
|
readonly dangerSoft: "var(--kz-danger-soft)";
|
|
39
39
|
readonly info: "var(--kz-info)";
|
|
40
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)";
|
|
41
53
|
readonly scrim: "var(--kz-scrim)";
|
|
42
54
|
readonly scrimStrong: "var(--kz-scrim-strong)";
|
|
43
55
|
readonly overlay: "var(--kz-overlay)";
|
|
@@ -187,3 +199,18 @@ export declare const brands: { readonly [B in BrandId]: { readonly dark: { reado
|
|
|
187
199
|
export type MarkStop = readonly [offset: string, color: string];
|
|
188
200
|
/** The marks' emblem gradients: [offset, colour] stops, the same in both themes (raw CSS). */
|
|
189
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
|
@@ -38,6 +38,18 @@ export const tokens = /* @__PURE__ */ Object.freeze({
|
|
|
38
38
|
"dangerSoft": "var(--kz-danger-soft)",
|
|
39
39
|
"info": "var(--kz-info)",
|
|
40
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)",
|
|
41
53
|
"scrim": "var(--kz-scrim)",
|
|
42
54
|
"scrimStrong": "var(--kz-scrim-strong)",
|
|
43
55
|
"overlay": "var(--kz-overlay)",
|
|
@@ -192,6 +204,18 @@ export const values = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Obje
|
|
|
192
204
|
"dangerSoft": "hsl(0 84% 60% / 0.14)",
|
|
193
205
|
"info": "hsl(208 46% 45%)",
|
|
194
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%)",
|
|
195
219
|
"scrim": "hsl(0 0% 0% / 0.60)",
|
|
196
220
|
"scrimStrong": "hsl(0 0% 0% / 0.80)",
|
|
197
221
|
"overlay": "hsl(0 0% 0% / 0.70)",
|
|
@@ -343,6 +367,18 @@ export const values = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Obje
|
|
|
343
367
|
"dangerSoft": "hsl(0 84% 60% / 0.1)",
|
|
344
368
|
"info": "hsl(208 54% 36%)",
|
|
345
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%)",
|
|
346
382
|
"scrim": "hsl(0 0% 0% / 0.60)",
|
|
347
383
|
"scrimStrong": "hsl(0 0% 0% / 0.80)",
|
|
348
384
|
"overlay": "hsl(0 0% 0% / 0.70)",
|
|
@@ -919,3 +955,10 @@ export const marks = /* @__PURE__ */ Object.freeze({
|
|
|
919
955
|
]
|
|
920
956
|
]
|
|
921
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
|
@@ -38,6 +38,18 @@ export type Theme = {
|
|
|
38
38
|
readonly dangerSoft: string;
|
|
39
39
|
readonly info: string;
|
|
40
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;
|
|
41
53
|
readonly scrim: string;
|
|
42
54
|
readonly scrimStrong: string;
|
|
43
55
|
readonly overlay: string;
|
|
@@ -123,3 +135,17 @@ export declare const brands: { readonly [B in BrandId]: BrandTheme };
|
|
|
123
135
|
export type MarkStop = readonly [offset: string, color: string];
|
|
124
136
|
/** The marks' emblem gradients: [offset, #rrggbb] stops, the same in both themes. */
|
|
125
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
|
@@ -38,6 +38,18 @@ export const themes = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Obje
|
|
|
38
38
|
"dangerSoft": "rgba(239,67,67,0.14)",
|
|
39
39
|
"info": "#3e76a8",
|
|
40
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",
|
|
41
53
|
"scrim": "rgba(0,0,0,0.6)",
|
|
42
54
|
"scrimStrong": "rgba(0,0,0,0.8)",
|
|
43
55
|
"overlay": "rgba(0,0,0,0.7)",
|
|
@@ -91,6 +103,18 @@ export const themes = /* @__PURE__ */ Object.freeze({ dark: /* @__PURE__ */ Obje
|
|
|
91
103
|
"dangerSoft": "rgba(239,67,67,0.1)",
|
|
92
104
|
"info": "#2a5f8d",
|
|
93
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",
|
|
94
118
|
"scrim": "rgba(0,0,0,0.6)",
|
|
95
119
|
"scrimStrong": "rgba(0,0,0,0.8)",
|
|
96
120
|
"overlay": "rgba(0,0,0,0.7)",
|
|
@@ -599,3 +623,361 @@ export const marks = /* @__PURE__ */ Object.freeze({
|
|
|
599
623
|
]
|
|
600
624
|
]
|
|
601
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
|
@@ -46,6 +46,20 @@
|
|
|
46
46
|
--kz-info: var(--kz-accent); /* Statut : information */
|
|
47
47
|
--kz-info-text: var(--kz-accent-text); /* Statut information en texte : l'accent en texte par défaut (≥ 4.5:1) */
|
|
48
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
|
+
|
|
49
63
|
/* Le cahier (ADR-004) : la réglure Seyès, la marge rouge, l'étiquette de spécimen */
|
|
50
64
|
--kz-paper-rule-major: hsl(140 25% 88% / 0.09); /* Réglure : la ligne forte (tous les 32 px) */
|
|
51
65
|
--kz-paper-rule-minor: hsl(140 25% 88% / 0.045); /* Réglure : les lignes fines (tous les 8 px) */
|
|
@@ -100,6 +114,18 @@ html.light {
|
|
|
100
114
|
--kz-warning-soft: hsl(38 92% 50% / 0.12); /* Fond teinté warning (texte primaire ≥ 4.5:1) */
|
|
101
115
|
--kz-danger-text: hsl(0 72% 40%); /* Statut erreur en texte (message d'erreur, compte à rebours urgent) : ≥ 4.5:1 sur chaque surface */
|
|
102
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 */
|
|
103
129
|
--kz-paper-rule-major: hsl(214 40% 45% / 0.24); /* Réglure : la ligne forte (tous les 32 px) */
|
|
104
130
|
--kz-paper-rule-minor: hsl(214 40% 45% / 0.10); /* Réglure : les lignes fines (tous les 8 px) */
|
|
105
131
|
--kz-paper-rule-margin: hsl(5 62% 40%); /* La marge rouge, et les repères de la marge (§, fig., p.) */
|
|
@@ -155,6 +181,18 @@ html.light {
|
|
|
155
181
|
--kz-danger-soft: hsl(0 84% 60% / 0.1); /* Fond teinté danger (texte primaire ≥ 4.5:1) */
|
|
156
182
|
--kz-info: var(--kz-accent); /* Statut : information */
|
|
157
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 */
|
|
158
196
|
--kz-paper-rule-major: hsl(214 40% 45% / 0.24); /* Réglure : la ligne forte (tous les 32 px) */
|
|
159
197
|
--kz-paper-rule-minor: hsl(214 40% 45% / 0.10); /* Réglure : les lignes fines (tous les 8 px) */
|
|
160
198
|
--kz-paper-rule-margin: hsl(5 62% 40%); /* La marge rouge, et les repères de la marge (§, fig., p.) */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krizaka/tokens",
|
|
3
|
-
"version": "3.
|
|
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,7 +67,7 @@
|
|
|
66
67
|
"publint": "^0.3.25",
|
|
67
68
|
"size-limit": "^14.2.0",
|
|
68
69
|
"typescript": "^5.9.0",
|
|
69
|
-
"vitest": "^
|
|
70
|
+
"vitest": "^5.0.5",
|
|
70
71
|
"@krizaka/config": "0.8.0"
|
|
71
72
|
},
|
|
72
73
|
"engines": {
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
{
|
|
80
81
|
"name": "./tokens.css",
|
|
81
82
|
"path": "dist/tokens.css",
|
|
82
|
-
"limit": "5.
|
|
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": "
|
|
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": "
|
|
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
|
}
|