-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.input.css
More file actions
256 lines (221 loc) · 11.4 KB
/
Copy pathtailwind.input.css
File metadata and controls
256 lines (221 loc) · 11.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
@tailwind base;
@tailwind components;
@tailwind utilities;
/* ============================================
MD3 Design Tokens — GoaCore
============================================ */
/* ---- Dark theme (default) ---- */
/* Les tokens sont stockés en canaux RGB (« R G B », sans fonction) : c'est ce qui
permet à Tailwind d'injecter l'alpha (<alpha-value>) et donc de compiler les
utilitaires d'opacité (bg-primary/10, border-primary/30, bg-scrim/50…).
Déclarés en hex, ces utilitaires étaient silencieusement omis du build. */
:root,
[data-theme="dark"] {
--md-color-primary-rgb: 208 188 255;
--md-color-on-primary-rgb: 56 30 114;
--md-color-primary-container-rgb: 79 55 139;
--md-color-on-primary-container-rgb: 234 221 255;
--md-color-secondary-rgb: 204 194 220;
--md-color-on-secondary-rgb: 51 45 65;
--md-color-secondary-container-rgb: 74 68 88;
--md-color-on-secondary-container-rgb:232 222 248;
--md-color-tertiary-rgb: 239 184 200;
--md-color-on-tertiary-rgb: 73 37 50;
--md-color-tertiary-container-rgb: 99 59 72;
--md-color-on-tertiary-container-rgb: 255 216 228;
--md-color-error-rgb: 242 184 181;
--md-color-on-error-rgb: 96 20 16;
--md-color-error-container-rgb: 140 29 24;
--md-color-on-error-container-rgb: 249 222 220;
--md-color-surface-rgb: 20 18 24;
--md-color-on-surface-rgb: 230 224 233;
--md-color-on-surface-variant-rgb: 202 196 208;
--md-color-surface-container-lowest-rgb: 15 13 19;
--md-color-surface-container-low-rgb: 29 27 32;
--md-color-surface-container-rgb: 33 31 38;
--md-color-surface-container-high-rgb: 43 41 48;
--md-color-surface-container-highest-rgb: 54 52 59;
--md-color-outline-rgb: 147 143 153;
--md-color-outline-variant-rgb: 73 69 79;
--md-color-inverse-surface-rgb: 230 224 233;
--md-color-inverse-on-surface-rgb: 50 47 53;
--md-color-inverse-primary-rgb: 103 80 164;
--md-color-surface-tint-rgb: 208 188 255;
--md-color-scrim-rgb: 0 0 0;
/* Status semantic colors */
--md-color-success-rgb: 129 199 132;
--md-color-on-success-rgb: 10 61 12;
--md-color-success-container-rgb: 27 94 32;
--md-color-warning-rgb: 255 213 79;
--md-color-on-warning-rgb: 62 39 35;
--md-color-warning-container-rgb: 245 127 23;
--md-color-info-rgb: 100 181 246;
--md-color-on-info-rgb: 13 33 55;
--md-color-info-container-rgb: 21 101 192;
}
/* ---- Light theme ---- */
/* success / warning / info sont volontairement plus sombres que leurs équivalents
Material « 500 » : sur surface-container-highest (#E6E0E9), les teintes claires
tombaient sous 4,5:1. Les valeurs ci-dessous tiennent le seuil WCAG AA sur
toutes les surfaces claires de la palette. */
[data-theme="light"] {
--md-color-primary-rgb: 103 80 164;
--md-color-on-primary-rgb: 255 255 255;
--md-color-primary-container-rgb: 234 221 255;
--md-color-on-primary-container-rgb: 33 0 93;
--md-color-secondary-rgb: 98 91 113;
--md-color-on-secondary-rgb: 255 255 255;
--md-color-secondary-container-rgb: 232 222 248;
--md-color-on-secondary-container-rgb:29 25 43;
--md-color-tertiary-rgb: 125 82 96;
--md-color-on-tertiary-rgb: 255 255 255;
--md-color-tertiary-container-rgb: 255 216 228;
--md-color-on-tertiary-container-rgb: 49 17 29;
--md-color-error-rgb: 179 38 30;
--md-color-on-error-rgb: 255 255 255;
--md-color-error-container-rgb: 249 222 220;
--md-color-on-error-container-rgb: 65 14 11;
--md-color-surface-rgb: 254 247 255;
--md-color-on-surface-rgb: 29 27 32;
--md-color-on-surface-variant-rgb: 73 69 79;
--md-color-surface-container-lowest-rgb: 255 255 255;
--md-color-surface-container-low-rgb: 247 242 250;
--md-color-surface-container-rgb: 243 237 247;
--md-color-surface-container-high-rgb: 236 230 240;
--md-color-surface-container-highest-rgb: 230 224 233;
--md-color-outline-rgb: 121 116 126;
--md-color-outline-variant-rgb: 202 196 208;
--md-color-inverse-surface-rgb: 50 47 53;
--md-color-inverse-on-surface-rgb: 245 239 247;
--md-color-inverse-primary-rgb: 208 188 255;
--md-color-surface-tint-rgb: 103 80 164;
--md-color-scrim-rgb: 0 0 0;
--md-color-success-rgb: 27 110 32; /* #1B6E20 — 4,9:1 mini */
--md-color-on-success-rgb: 255 255 255;
--md-color-success-container-rgb: 200 230 201;
--md-color-warning-rgb: 154 76 0; /* #9A4C00 — 4,7:1 mini */
--md-color-on-warning-rgb: 255 255 255;
--md-color-warning-container-rgb: 255 249 196;
--md-color-info-rgb: 15 90 174; /* #0F5AAE — 5,2:1 mini */
--md-color-on-info-rgb: 255 255 255;
--md-color-info-container-rgb: 187 222 251;
}
/* ---- Alias couleur pleine ----
Résolus au moment du calcul sur <html>, ils suivent donc automatiquement le
thème actif. À utiliser dans le CSS écrit à la main (theme.css, @layer
components) ; Tailwind, lui, consomme directement les canaux -rgb. */
:root {
--md-color-primary: rgb(var(--md-color-primary-rgb));
--md-color-on-primary: rgb(var(--md-color-on-primary-rgb));
--md-color-primary-container: rgb(var(--md-color-primary-container-rgb));
--md-color-on-primary-container: rgb(var(--md-color-on-primary-container-rgb));
--md-color-secondary: rgb(var(--md-color-secondary-rgb));
--md-color-on-secondary: rgb(var(--md-color-on-secondary-rgb));
--md-color-secondary-container: rgb(var(--md-color-secondary-container-rgb));
--md-color-on-secondary-container:rgb(var(--md-color-on-secondary-container-rgb));
--md-color-tertiary: rgb(var(--md-color-tertiary-rgb));
--md-color-on-tertiary: rgb(var(--md-color-on-tertiary-rgb));
--md-color-tertiary-container: rgb(var(--md-color-tertiary-container-rgb));
--md-color-on-tertiary-container: rgb(var(--md-color-on-tertiary-container-rgb));
--md-color-error: rgb(var(--md-color-error-rgb));
--md-color-on-error: rgb(var(--md-color-on-error-rgb));
--md-color-error-container: rgb(var(--md-color-error-container-rgb));
--md-color-on-error-container: rgb(var(--md-color-on-error-container-rgb));
--md-color-surface: rgb(var(--md-color-surface-rgb));
--md-color-on-surface: rgb(var(--md-color-on-surface-rgb));
--md-color-on-surface-variant: rgb(var(--md-color-on-surface-variant-rgb));
--md-color-surface-container-lowest: rgb(var(--md-color-surface-container-lowest-rgb));
--md-color-surface-container-low: rgb(var(--md-color-surface-container-low-rgb));
--md-color-surface-container: rgb(var(--md-color-surface-container-rgb));
--md-color-surface-container-high: rgb(var(--md-color-surface-container-high-rgb));
--md-color-surface-container-highest: rgb(var(--md-color-surface-container-highest-rgb));
--md-color-outline: rgb(var(--md-color-outline-rgb));
--md-color-outline-variant: rgb(var(--md-color-outline-variant-rgb));
--md-color-inverse-surface: rgb(var(--md-color-inverse-surface-rgb));
--md-color-inverse-on-surface: rgb(var(--md-color-inverse-on-surface-rgb));
--md-color-inverse-primary: rgb(var(--md-color-inverse-primary-rgb));
--md-color-surface-tint: rgb(var(--md-color-surface-tint-rgb));
--md-color-scrim: rgb(var(--md-color-scrim-rgb));
--md-color-success: rgb(var(--md-color-success-rgb));
--md-color-on-success: rgb(var(--md-color-on-success-rgb));
--md-color-success-container: rgb(var(--md-color-success-container-rgb));
--md-color-warning: rgb(var(--md-color-warning-rgb));
--md-color-on-warning: rgb(var(--md-color-on-warning-rgb));
--md-color-warning-container: rgb(var(--md-color-warning-container-rgb));
--md-color-info: rgb(var(--md-color-info-rgb));
--md-color-on-info: rgb(var(--md-color-on-info-rgb));
--md-color-info-container: rgb(var(--md-color-info-container-rgb));
}
/* ---- Base ---- */
@layer base {
/* La police du produit se déclare une fois ici. Elle était recopiée dans dix-sept
balises <style> inline : la moindre évolution typographique demandait dix-sept
modifications, et une seule oubliée suffisait à casser l'homogénéité. */
body {
font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
}
/* Respect de « Réduire les animations » du système. La pastille de santé pulse
en boucle et neuf indicateurs `animate-spin` tournent en continu : pour un
utilisateur sensible au mouvement (ou sujet au mal des transports), c'est une
page inutilisable. On neutralise, sans jamais supprimer l'information. */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
}
/* ---- MD3 component styles ---- */
@layer components {
.glass {
background-color: var(--md-color-surface-container);
border: 1px solid var(--md-color-outline-variant);
}
.glass-panel {
background-color: var(--md-color-surface-container-high);
border: 1px solid var(--md-color-outline-variant);
}
.gradient-text {
background: linear-gradient(to right, var(--md-color-primary), var(--md-color-tertiary));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.sidebar-link {
border-radius: 9999px;
transition: background-color 0.2s ease, color 0.2s ease;
}
.sidebar-link.active {
background-color: var(--md-color-secondary-container);
color: var(--md-color-on-secondary-container);
}
.sidebar-link:hover:not(.active) {
background-color: color-mix(in srgb, var(--md-color-on-surface) 8%, transparent);
}
.health-dot { width: 8px; height: 8px; border-radius: 50%; }
.health-up { background: var(--md-color-success); box-shadow: 0 0 6px var(--md-color-success); animation: pulse-health 2s ease-in-out infinite; }
.health-down { background: var(--md-color-error); box-shadow: 0 0 6px var(--md-color-error); }
.health-unknown { background: var(--md-color-outline); }
@keyframes pulse-health { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
}
/* Self-hosted Outfit variable font */
@font-face {
font-family: 'Outfit';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('/static/fonts/outfit-latin-ext.woff2') format('woff2');
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: 'Outfit';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('/static/fonts/outfit-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}