@nomosui/react 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/SKILL.md +42 -0
- package/dist/index.js +1361 -143
- package/dist/mcp/bin.js +10856 -7346
- package/dist/types/components/accordion/accordion.d.ts +14 -0
- package/dist/types/components/accordion/manifest.d.ts +7 -0
- package/dist/types/components/alert-dialog/alert-dialog.d.ts +26 -0
- package/dist/types/components/alert-dialog/manifest.d.ts +7 -0
- package/dist/types/components/avatar/avatar.d.ts +17 -0
- package/dist/types/components/avatar/manifest.d.ts +6 -0
- package/dist/types/components/badge/badge.d.ts +1 -1
- package/dist/types/components/button/button.d.ts +1 -1
- package/dist/types/components/collapsible/collapsible.d.ts +11 -0
- package/dist/types/components/collapsible/manifest.d.ts +7 -0
- package/dist/types/components/dialog/dialog.d.ts +30 -0
- package/dist/types/components/dialog/manifest.d.ts +7 -0
- package/dist/types/{internal → components/dropdown-menu}/dropdown-menu.d.ts +5 -0
- package/dist/types/components/dropdown-menu/manifest.d.ts +7 -0
- package/dist/types/components/popover/manifest.d.ts +7 -0
- package/dist/types/components/popover/popover.d.ts +12 -0
- package/dist/types/components/scroll-area/manifest.d.ts +6 -0
- package/dist/types/components/scroll-area/scroll-area.d.ts +10 -0
- package/dist/types/components/select/manifest.d.ts +7 -0
- package/dist/types/{internal → components/select}/select.d.ts +5 -0
- package/dist/types/components/sheet/manifest.d.ts +7 -0
- package/dist/types/{internal → components/sheet}/sheet.d.ts +23 -0
- package/dist/types/components/tabs/manifest.d.ts +6 -0
- package/dist/types/components/tabs/tabs.d.ts +12 -0
- package/dist/types/components/tooltip/manifest.d.ts +7 -0
- package/dist/types/{internal → components/tooltip}/tooltip.d.ts +6 -0
- package/dist/types/index.d.ts +26 -3
- package/package.json +8 -2
- package/tokens/theme.css +205 -0
- package/tokens/tokens.generated.css +44 -0
- package/tokens/tokens.json +46 -0
- package/tokens/tokens.resource.json +22 -0
package/tokens/theme.css
CHANGED
|
@@ -5,7 +5,14 @@
|
|
|
5
5
|
*
|
|
6
6
|
* L'app l'importe (`src/styles/globals.css`) et le build des vues l'inline
|
|
7
7
|
* (`src/mcp/view.css`) : une seule définition du raccord, deux rendus.
|
|
8
|
+
*
|
|
9
|
+
* Le paquet est consommé compilé : les classes des composants vivent dans `dist`, que le
|
|
10
|
+
* Tailwind du consommateur ne scanne pas (il ignore `node_modules`). Cette source déclare
|
|
11
|
+
* le paquet à lui-même — sans elle, un consommateur qui ne scanne que son propre code perd
|
|
12
|
+
* `bg-popover`, `z-popover`, `shadow-md`… et la surcouche se rend transparente (ADR 0027).
|
|
8
13
|
*/
|
|
14
|
+
@source '../dist/index.js';
|
|
15
|
+
|
|
9
16
|
@theme {
|
|
10
17
|
/*
|
|
11
18
|
La densité (ADR 0008) multiplie l'échelle d'espacement : toutes les marges, tous les
|
|
@@ -43,6 +50,7 @@
|
|
|
43
50
|
--color-card-foreground: hsl(var(--nomos-color-card-foreground));
|
|
44
51
|
|
|
45
52
|
--color-brand: var(--nomos-color-brand);
|
|
53
|
+
--color-scrim: hsl(var(--nomos-color-scrim));
|
|
46
54
|
|
|
47
55
|
--color-status-info: hsl(var(--nomos-color-status-info));
|
|
48
56
|
--color-status-info-ink: hsl(var(--nomos-color-status-info-ink));
|
|
@@ -61,3 +69,200 @@
|
|
|
61
69
|
--radius-md: var(--nomos-radius-field);
|
|
62
70
|
--radius-sm: var(--nomos-radius-chip);
|
|
63
71
|
}
|
|
72
|
+
|
|
73
|
+
/*
|
|
74
|
+
L'empilement et le mouvement (ADR 0027). Les noms sont ceux du cœur, les valeurs sont
|
|
75
|
+
des tokens : `z-overlay` lit `--nomos-z-overlay`, chaque animation lit une durée et une
|
|
76
|
+
courbe. Aucune valeur de temps n'est écrite ici — une app les remplace par le skin.
|
|
77
|
+
`prefers-reduced-motion` neutralise les animations sans toucher au reste.
|
|
78
|
+
*/
|
|
79
|
+
@utility z-overlay {
|
|
80
|
+
z-index: var(--nomos-z-overlay);
|
|
81
|
+
}
|
|
82
|
+
@utility z-popover {
|
|
83
|
+
z-index: var(--nomos-z-popover);
|
|
84
|
+
}
|
|
85
|
+
@utility z-tooltip {
|
|
86
|
+
z-index: var(--nomos-z-tooltip);
|
|
87
|
+
}
|
|
88
|
+
@utility z-toast {
|
|
89
|
+
z-index: var(--nomos-z-toast);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@keyframes nomos-fade-in {
|
|
93
|
+
from {
|
|
94
|
+
opacity: 0;
|
|
95
|
+
}
|
|
96
|
+
to {
|
|
97
|
+
opacity: 1;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
@keyframes nomos-fade-out {
|
|
101
|
+
from {
|
|
102
|
+
opacity: 1;
|
|
103
|
+
}
|
|
104
|
+
to {
|
|
105
|
+
opacity: 0;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
@keyframes nomos-content-in {
|
|
109
|
+
from {
|
|
110
|
+
opacity: 0;
|
|
111
|
+
transform: scale(0.95);
|
|
112
|
+
}
|
|
113
|
+
to {
|
|
114
|
+
opacity: 1;
|
|
115
|
+
transform: none;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
@keyframes nomos-content-out {
|
|
119
|
+
from {
|
|
120
|
+
opacity: 1;
|
|
121
|
+
transform: none;
|
|
122
|
+
}
|
|
123
|
+
to {
|
|
124
|
+
opacity: 0;
|
|
125
|
+
transform: scale(0.95);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
@keyframes nomos-slide-in-right {
|
|
129
|
+
from {
|
|
130
|
+
transform: translateX(100%);
|
|
131
|
+
}
|
|
132
|
+
to {
|
|
133
|
+
transform: translateX(0);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
@keyframes nomos-slide-in-left {
|
|
137
|
+
from {
|
|
138
|
+
transform: translateX(-100%);
|
|
139
|
+
}
|
|
140
|
+
to {
|
|
141
|
+
transform: translateX(0);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
@keyframes nomos-slide-in-top {
|
|
145
|
+
from {
|
|
146
|
+
transform: translateY(-100%);
|
|
147
|
+
}
|
|
148
|
+
to {
|
|
149
|
+
transform: translateY(0);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
@keyframes nomos-slide-in-bottom {
|
|
153
|
+
from {
|
|
154
|
+
transform: translateY(100%);
|
|
155
|
+
}
|
|
156
|
+
to {
|
|
157
|
+
transform: translateY(0);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
@keyframes nomos-slide-out-right {
|
|
161
|
+
from {
|
|
162
|
+
transform: translateX(0);
|
|
163
|
+
}
|
|
164
|
+
to {
|
|
165
|
+
transform: translateX(100%);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
@keyframes nomos-slide-out-left {
|
|
169
|
+
from {
|
|
170
|
+
transform: translateX(0);
|
|
171
|
+
}
|
|
172
|
+
to {
|
|
173
|
+
transform: translateX(-100%);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
@keyframes nomos-slide-out-top {
|
|
177
|
+
from {
|
|
178
|
+
transform: translateY(0);
|
|
179
|
+
}
|
|
180
|
+
to {
|
|
181
|
+
transform: translateY(-100%);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
@keyframes nomos-slide-out-bottom {
|
|
185
|
+
from {
|
|
186
|
+
transform: translateY(0);
|
|
187
|
+
}
|
|
188
|
+
to {
|
|
189
|
+
transform: translateY(100%);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@utility animate-overlay-in {
|
|
194
|
+
animation: nomos-fade-in var(--nomos-motion-duration-base) var(--nomos-motion-ease-out) both;
|
|
195
|
+
}
|
|
196
|
+
@utility animate-overlay-out {
|
|
197
|
+
animation: nomos-fade-out var(--nomos-motion-duration-fast) var(--nomos-motion-ease-in) both;
|
|
198
|
+
}
|
|
199
|
+
@utility animate-content-in {
|
|
200
|
+
animation: nomos-content-in var(--nomos-motion-duration-base) var(--nomos-motion-ease-out) both;
|
|
201
|
+
}
|
|
202
|
+
@utility animate-content-out {
|
|
203
|
+
animation: nomos-content-out var(--nomos-motion-duration-fast) var(--nomos-motion-ease-in) both;
|
|
204
|
+
}
|
|
205
|
+
@utility animate-slide-in-right {
|
|
206
|
+
animation: nomos-slide-in-right var(--nomos-motion-duration-slow) var(--nomos-motion-ease-out) both;
|
|
207
|
+
}
|
|
208
|
+
@utility animate-slide-in-left {
|
|
209
|
+
animation: nomos-slide-in-left var(--nomos-motion-duration-slow) var(--nomos-motion-ease-out) both;
|
|
210
|
+
}
|
|
211
|
+
@utility animate-slide-in-top {
|
|
212
|
+
animation: nomos-slide-in-top var(--nomos-motion-duration-slow) var(--nomos-motion-ease-out) both;
|
|
213
|
+
}
|
|
214
|
+
@utility animate-slide-in-bottom {
|
|
215
|
+
animation: nomos-slide-in-bottom var(--nomos-motion-duration-slow) var(--nomos-motion-ease-out) both;
|
|
216
|
+
}
|
|
217
|
+
@utility animate-slide-out-right {
|
|
218
|
+
animation: nomos-slide-out-right var(--nomos-motion-duration-slow) var(--nomos-motion-ease-in) both;
|
|
219
|
+
}
|
|
220
|
+
@utility animate-slide-out-left {
|
|
221
|
+
animation: nomos-slide-out-left var(--nomos-motion-duration-slow) var(--nomos-motion-ease-in) both;
|
|
222
|
+
}
|
|
223
|
+
@utility animate-slide-out-top {
|
|
224
|
+
animation: nomos-slide-out-top var(--nomos-motion-duration-slow) var(--nomos-motion-ease-in) both;
|
|
225
|
+
}
|
|
226
|
+
@utility animate-slide-out-bottom {
|
|
227
|
+
animation: nomos-slide-out-bottom var(--nomos-motion-duration-slow) var(--nomos-motion-ease-in) both;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/*
|
|
231
|
+
Le repli de hauteur (`Collapsible`, `Accordion`) : la hauteur mesurée par Radix arrive
|
|
232
|
+
par `--nomos-collapse-height`, que le composant relie à sa variable Radix. Le mouvement
|
|
233
|
+
reste celui des tokens (ADR 0027).
|
|
234
|
+
*/
|
|
235
|
+
@keyframes nomos-collapse-down {
|
|
236
|
+
from {
|
|
237
|
+
height: 0;
|
|
238
|
+
}
|
|
239
|
+
to {
|
|
240
|
+
height: var(--nomos-collapse-height);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
@keyframes nomos-collapse-up {
|
|
244
|
+
from {
|
|
245
|
+
height: var(--nomos-collapse-height);
|
|
246
|
+
}
|
|
247
|
+
to {
|
|
248
|
+
height: 0;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
@utility animate-collapse-down {
|
|
252
|
+
animation: nomos-collapse-down var(--nomos-motion-duration-base) var(--nomos-motion-ease-out);
|
|
253
|
+
}
|
|
254
|
+
@utility animate-collapse-up {
|
|
255
|
+
animation: nomos-collapse-up var(--nomos-motion-duration-base) var(--nomos-motion-ease-in);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
@media (prefers-reduced-motion: reduce) {
|
|
259
|
+
.animate-overlay-in,
|
|
260
|
+
.animate-overlay-out,
|
|
261
|
+
.animate-content-in,
|
|
262
|
+
.animate-content-out,
|
|
263
|
+
.animate-collapse-down,
|
|
264
|
+
.animate-collapse-up,
|
|
265
|
+
[class*='animate-slide-'] {
|
|
266
|
+
animation: none;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
--nomos-color-input: 240 8% 19%;
|
|
28
28
|
--nomos-color-ring: 174 100% 39%;
|
|
29
29
|
--nomos-color-brand: #00c9b1;
|
|
30
|
+
--nomos-color-scrim: 0 0% 0% / 0.8;
|
|
30
31
|
--nomos-color-status-info: 199 89% 48%;
|
|
31
32
|
--nomos-color-status-info-ink: 198 93% 74%;
|
|
32
33
|
--nomos-color-status-progress: 258 90% 66%;
|
|
@@ -43,6 +44,16 @@
|
|
|
43
44
|
--nomos-radius-control: 0.625rem;
|
|
44
45
|
--nomos-radius-field: 0.5rem;
|
|
45
46
|
--nomos-radius-chip: 0.375rem;
|
|
47
|
+
--nomos-z-overlay: 50;
|
|
48
|
+
--nomos-z-popover: 60;
|
|
49
|
+
--nomos-z-tooltip: 70;
|
|
50
|
+
--nomos-z-toast: 80;
|
|
51
|
+
--nomos-motion-duration-fast: 150ms;
|
|
52
|
+
--nomos-motion-duration-base: 250ms;
|
|
53
|
+
--nomos-motion-duration-slow: 400ms;
|
|
54
|
+
--nomos-motion-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
|
|
55
|
+
--nomos-motion-ease-in: cubic-bezier(0.4, 0, 1, 1);
|
|
56
|
+
--nomos-motion-ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
46
57
|
--nomos-space-hairline: 2px;
|
|
47
58
|
--nomos-space-tight: 4px;
|
|
48
59
|
--nomos-space-snug: 8px;
|
|
@@ -92,6 +103,7 @@
|
|
|
92
103
|
--nomos-color-input: 240 6% 85%;
|
|
93
104
|
--nomos-color-ring: 174 100% 35%;
|
|
94
105
|
--nomos-color-brand: #00c9b1;
|
|
106
|
+
--nomos-color-scrim: 0 0% 0% / 0.8;
|
|
95
107
|
--nomos-color-status-info: 199 89% 48%;
|
|
96
108
|
--nomos-color-status-info-ink: 201 96% 32%;
|
|
97
109
|
--nomos-color-status-progress: 258 90% 66%;
|
|
@@ -108,6 +120,16 @@
|
|
|
108
120
|
--nomos-radius-control: 0.625rem;
|
|
109
121
|
--nomos-radius-field: 0.5rem;
|
|
110
122
|
--nomos-radius-chip: 0.375rem;
|
|
123
|
+
--nomos-z-overlay: 50;
|
|
124
|
+
--nomos-z-popover: 60;
|
|
125
|
+
--nomos-z-tooltip: 70;
|
|
126
|
+
--nomos-z-toast: 80;
|
|
127
|
+
--nomos-motion-duration-fast: 150ms;
|
|
128
|
+
--nomos-motion-duration-base: 250ms;
|
|
129
|
+
--nomos-motion-duration-slow: 400ms;
|
|
130
|
+
--nomos-motion-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
|
|
131
|
+
--nomos-motion-ease-in: cubic-bezier(0.4, 0, 1, 1);
|
|
132
|
+
--nomos-motion-ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
111
133
|
--nomos-space-hairline: 2px;
|
|
112
134
|
--nomos-space-tight: 4px;
|
|
113
135
|
--nomos-space-snug: 8px;
|
|
@@ -156,6 +178,7 @@
|
|
|
156
178
|
--nomos-color-input: 240 8% 19%;
|
|
157
179
|
--nomos-color-ring: 174 100% 39%;
|
|
158
180
|
--nomos-color-brand: #00c9b1;
|
|
181
|
+
--nomos-color-scrim: 0 0% 0% / 0.8;
|
|
159
182
|
--nomos-color-status-info: 199 89% 48%;
|
|
160
183
|
--nomos-color-status-info-ink: 198 93% 74%;
|
|
161
184
|
--nomos-color-status-progress: 258 90% 66%;
|
|
@@ -172,6 +195,16 @@
|
|
|
172
195
|
--nomos-radius-control: 0.625rem;
|
|
173
196
|
--nomos-radius-field: 0.5rem;
|
|
174
197
|
--nomos-radius-chip: 0.375rem;
|
|
198
|
+
--nomos-z-overlay: 50;
|
|
199
|
+
--nomos-z-popover: 60;
|
|
200
|
+
--nomos-z-tooltip: 70;
|
|
201
|
+
--nomos-z-toast: 80;
|
|
202
|
+
--nomos-motion-duration-fast: 150ms;
|
|
203
|
+
--nomos-motion-duration-base: 250ms;
|
|
204
|
+
--nomos-motion-duration-slow: 400ms;
|
|
205
|
+
--nomos-motion-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
|
|
206
|
+
--nomos-motion-ease-in: cubic-bezier(0.4, 0, 1, 1);
|
|
207
|
+
--nomos-motion-ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
175
208
|
--nomos-space-hairline: 2px;
|
|
176
209
|
--nomos-space-tight: 4px;
|
|
177
210
|
--nomos-space-snug: 8px;
|
|
@@ -219,6 +252,7 @@
|
|
|
219
252
|
--nomos-color-input: 240 6% 85%;
|
|
220
253
|
--nomos-color-ring: 174 100% 35%;
|
|
221
254
|
--nomos-color-brand: #00c9b1;
|
|
255
|
+
--nomos-color-scrim: 0 0% 0% / 0.8;
|
|
222
256
|
--nomos-color-status-info: 199 89% 48%;
|
|
223
257
|
--nomos-color-status-info-ink: 201 96% 32%;
|
|
224
258
|
--nomos-color-status-progress: 258 90% 66%;
|
|
@@ -235,6 +269,16 @@
|
|
|
235
269
|
--nomos-radius-control: 0.625rem;
|
|
236
270
|
--nomos-radius-field: 0.5rem;
|
|
237
271
|
--nomos-radius-chip: 0.375rem;
|
|
272
|
+
--nomos-z-overlay: 50;
|
|
273
|
+
--nomos-z-popover: 60;
|
|
274
|
+
--nomos-z-tooltip: 70;
|
|
275
|
+
--nomos-z-toast: 80;
|
|
276
|
+
--nomos-motion-duration-fast: 150ms;
|
|
277
|
+
--nomos-motion-duration-base: 250ms;
|
|
278
|
+
--nomos-motion-duration-slow: 400ms;
|
|
279
|
+
--nomos-motion-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
|
|
280
|
+
--nomos-motion-ease-in: cubic-bezier(0.4, 0, 1, 1);
|
|
281
|
+
--nomos-motion-ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
238
282
|
--nomos-space-hairline: 2px;
|
|
239
283
|
--nomos-space-tight: 4px;
|
|
240
284
|
--nomos-space-snug: 8px;
|
package/tokens/tokens.json
CHANGED
|
@@ -84,6 +84,11 @@
|
|
|
84
84
|
"brand-teal": {
|
|
85
85
|
"$description": "Le teal de marque, conservé en hexadécimal : il vient d'une identité (ADR 0001) et non d'une rampe calculée.",
|
|
86
86
|
"400": { "$type": "color", "$value": "#00c9b1" }
|
|
87
|
+
},
|
|
88
|
+
"scrim": {
|
|
89
|
+
"$description": "Le voile posé sous une couche flottante. Porté en HSL à quatre composantes (teinte, saturation, clarté, alpha) pour que l'opacité fasse partie du token et non d'une classe (ADR 0027) — `bg-black/80` en dur disparaît.",
|
|
90
|
+
"$type": "color",
|
|
91
|
+
"$value": { "colorSpace": "hsl", "components": [0, 0, 0, 0.8] }
|
|
87
92
|
}
|
|
88
93
|
},
|
|
89
94
|
"space": {
|
|
@@ -103,6 +108,26 @@
|
|
|
103
108
|
"field": { "$type": "dimension", "$value": { "value": 0.5, "unit": "rem" } },
|
|
104
109
|
"chip": { "$type": "dimension", "$value": { "value": 0.375, "unit": "rem" } }
|
|
105
110
|
},
|
|
111
|
+
"z": {
|
|
112
|
+
"$description": "L'ordre d'empilement des couches flottantes, nommé par usage (ADR 0027). L'échelle est en dizaines : de la place reste entre deux paliers pour un besoin local.",
|
|
113
|
+
"overlay": { "$type": "number", "$value": 50 },
|
|
114
|
+
"popover": { "$type": "number", "$value": 60 },
|
|
115
|
+
"tooltip": { "$type": "number", "$value": 70 },
|
|
116
|
+
"toast": { "$type": "number", "$value": 80 }
|
|
117
|
+
},
|
|
118
|
+
"motion": {
|
|
119
|
+
"$description": "Les durées et les courbes des transitions (ADR 0027). Le mouvement est un token : le cœur le règle, une app le remplace, et `prefers-reduced-motion` le neutralise en CSS.",
|
|
120
|
+
"duration": {
|
|
121
|
+
"fast": { "$type": "duration", "$value": { "value": 150, "unit": "ms" } },
|
|
122
|
+
"base": { "$type": "duration", "$value": { "value": 250, "unit": "ms" } },
|
|
123
|
+
"slow": { "$type": "duration", "$value": { "value": 400, "unit": "ms" } }
|
|
124
|
+
},
|
|
125
|
+
"ease": {
|
|
126
|
+
"standard": { "$type": "cubicBezier", "$value": [0.4, 0, 0.2, 1] },
|
|
127
|
+
"in": { "$type": "cubicBezier", "$value": [0.4, 0, 1, 1] },
|
|
128
|
+
"out": { "$type": "cubicBezier", "$value": [0, 0, 0.2, 1] }
|
|
129
|
+
}
|
|
130
|
+
},
|
|
106
131
|
"type": {
|
|
107
132
|
"$description": "L'échelle typographique : des tailles nommées par leur rôle, chacune avec sa hauteur de ligne.",
|
|
108
133
|
"size": {
|
|
@@ -158,6 +183,7 @@
|
|
|
158
183
|
"input": { "$type": "color", "$value": { "dark": "{primitive.color.ink.750}", "light": "{primitive.color.paper.200}" } },
|
|
159
184
|
"ring": { "$type": "color", "$value": { "dark": "{primitive.color.teal.500}", "light": "{primitive.color.teal.600}" } },
|
|
160
185
|
"brand": { "$type": "color", "$value": { "dark": "{primitive.color.brand-teal.400}", "light": "{primitive.color.brand-teal.400}" } },
|
|
186
|
+
"scrim": { "$type": "color", "$value": { "dark": "{primitive.color.scrim}", "light": "{primitive.color.scrim}" } },
|
|
161
187
|
"status-info": { "$type": "color", "$value": { "dark": "{primitive.color.status.info.500}", "light": "{primitive.color.status.info.500}" } },
|
|
162
188
|
"status-info-ink": { "$type": "color", "$value": { "dark": "{primitive.color.status.info.300}", "light": "{primitive.color.status.info.700}" } },
|
|
163
189
|
"status-progress": { "$type": "color", "$value": { "dark": "{primitive.color.status.progress.500}", "light": "{primitive.color.status.progress.500}" } },
|
|
@@ -178,6 +204,26 @@
|
|
|
178
204
|
"field": { "$type": "dimension", "$value": { "dark": "{primitive.radius.field}", "light": "{primitive.radius.field}" } },
|
|
179
205
|
"chip": { "$type": "dimension", "$value": { "dark": "{primitive.radius.chip}", "light": "{primitive.radius.chip}" } }
|
|
180
206
|
},
|
|
207
|
+
"z": {
|
|
208
|
+
"$description": "L'ordre d'empilement tel que les composants le lisent (ADR 0027). Les modes ne le séparent pas ; un skin peut toutefois le remplacer, l'emplacement est sémantique.",
|
|
209
|
+
"overlay": { "$type": "number", "$value": { "dark": "{primitive.z.overlay}", "light": "{primitive.z.overlay}" } },
|
|
210
|
+
"popover": { "$type": "number", "$value": { "dark": "{primitive.z.popover}", "light": "{primitive.z.popover}" } },
|
|
211
|
+
"tooltip": { "$type": "number", "$value": { "dark": "{primitive.z.tooltip}", "light": "{primitive.z.tooltip}" } },
|
|
212
|
+
"toast": { "$type": "number", "$value": { "dark": "{primitive.z.toast}", "light": "{primitive.z.toast}" } }
|
|
213
|
+
},
|
|
214
|
+
"motion": {
|
|
215
|
+
"$description": "Le mouvement sémantique : durées et courbes que les overlays emploient (ADR 0027). Les modes ne le séparent pas.",
|
|
216
|
+
"duration": {
|
|
217
|
+
"fast": { "$type": "duration", "$value": { "dark": "{primitive.motion.duration.fast}", "light": "{primitive.motion.duration.fast}" } },
|
|
218
|
+
"base": { "$type": "duration", "$value": { "dark": "{primitive.motion.duration.base}", "light": "{primitive.motion.duration.base}" } },
|
|
219
|
+
"slow": { "$type": "duration", "$value": { "dark": "{primitive.motion.duration.slow}", "light": "{primitive.motion.duration.slow}" } }
|
|
220
|
+
},
|
|
221
|
+
"ease": {
|
|
222
|
+
"standard": { "$type": "cubicBezier", "$value": { "dark": "{primitive.motion.ease.standard}", "light": "{primitive.motion.ease.standard}" } },
|
|
223
|
+
"in": { "$type": "cubicBezier", "$value": { "dark": "{primitive.motion.ease.in}", "light": "{primitive.motion.ease.in}" } },
|
|
224
|
+
"out": { "$type": "cubicBezier", "$value": { "dark": "{primitive.motion.ease.out}", "light": "{primitive.motion.ease.out}" } }
|
|
225
|
+
}
|
|
226
|
+
},
|
|
181
227
|
"space": {
|
|
182
228
|
"$description": "L'espacement sémantique : ce que les composants lisent. La densité (ADR 0008) le multipliera en une passe, ici les deux modes portent la même valeur.",
|
|
183
229
|
"hairline": { "$type": "dimension", "$value": { "dark": "{primitive.space.hairline}", "light": "{primitive.space.hairline}" } },
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"--nomos-color-input": "240 8% 19%",
|
|
34
34
|
"--nomos-color-ring": "174 100% 39%",
|
|
35
35
|
"--nomos-color-brand": "#00c9b1",
|
|
36
|
+
"--nomos-color-scrim": "0 0% 0% / 0.8",
|
|
36
37
|
"--nomos-color-status-info": "199 89% 48%",
|
|
37
38
|
"--nomos-color-status-info-ink": "198 93% 74%",
|
|
38
39
|
"--nomos-color-status-progress": "258 90% 66%",
|
|
@@ -49,6 +50,16 @@
|
|
|
49
50
|
"--nomos-radius-control": "0.625rem",
|
|
50
51
|
"--nomos-radius-field": "0.5rem",
|
|
51
52
|
"--nomos-radius-chip": "0.375rem",
|
|
53
|
+
"--nomos-z-overlay": "50",
|
|
54
|
+
"--nomos-z-popover": "60",
|
|
55
|
+
"--nomos-z-tooltip": "70",
|
|
56
|
+
"--nomos-z-toast": "80",
|
|
57
|
+
"--nomos-motion-duration-fast": "150ms",
|
|
58
|
+
"--nomos-motion-duration-base": "250ms",
|
|
59
|
+
"--nomos-motion-duration-slow": "400ms",
|
|
60
|
+
"--nomos-motion-ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
61
|
+
"--nomos-motion-ease-in": "cubic-bezier(0.4, 0, 1, 1)",
|
|
62
|
+
"--nomos-motion-ease-out": "cubic-bezier(0, 0, 0.2, 1)",
|
|
52
63
|
"--nomos-space-hairline": "2px",
|
|
53
64
|
"--nomos-space-tight": "4px",
|
|
54
65
|
"--nomos-space-snug": "8px",
|
|
@@ -94,6 +105,7 @@
|
|
|
94
105
|
"--nomos-color-input": "240 6% 85%",
|
|
95
106
|
"--nomos-color-ring": "174 100% 35%",
|
|
96
107
|
"--nomos-color-brand": "#00c9b1",
|
|
108
|
+
"--nomos-color-scrim": "0 0% 0% / 0.8",
|
|
97
109
|
"--nomos-color-status-info": "199 89% 48%",
|
|
98
110
|
"--nomos-color-status-info-ink": "201 96% 32%",
|
|
99
111
|
"--nomos-color-status-progress": "258 90% 66%",
|
|
@@ -110,6 +122,16 @@
|
|
|
110
122
|
"--nomos-radius-control": "0.625rem",
|
|
111
123
|
"--nomos-radius-field": "0.5rem",
|
|
112
124
|
"--nomos-radius-chip": "0.375rem",
|
|
125
|
+
"--nomos-z-overlay": "50",
|
|
126
|
+
"--nomos-z-popover": "60",
|
|
127
|
+
"--nomos-z-tooltip": "70",
|
|
128
|
+
"--nomos-z-toast": "80",
|
|
129
|
+
"--nomos-motion-duration-fast": "150ms",
|
|
130
|
+
"--nomos-motion-duration-base": "250ms",
|
|
131
|
+
"--nomos-motion-duration-slow": "400ms",
|
|
132
|
+
"--nomos-motion-ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
133
|
+
"--nomos-motion-ease-in": "cubic-bezier(0.4, 0, 1, 1)",
|
|
134
|
+
"--nomos-motion-ease-out": "cubic-bezier(0, 0, 0.2, 1)",
|
|
113
135
|
"--nomos-space-hairline": "2px",
|
|
114
136
|
"--nomos-space-tight": "4px",
|
|
115
137
|
"--nomos-space-snug": "8px",
|