@echelonos/design 0.0.0-stage → 0.1.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/fonts/Inter-VariableFont_opsz_wght.ttf +0 -0
- package/dist/fonts/Manrope-VariableFont_wght.ttf +0 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/styles/tokens.css +861 -0
- package/lint/check-core-tokens.mjs +124 -0
- package/lint/check-neutral-palette.mjs +148 -0
- package/lint/cli.mjs +103 -0
- package/lint/design-tokens.mjs +27 -0
- package/lint/oxlint-plugin/index.mjs +9 -0
- package/lint/oxlint-plugin/no-adhoc-badge.mjs +66 -0
- package/lint/source-files.mjs +44 -0
- package/package.json +56 -4
- package/tailwind-content.js +4 -0
- package/tailwind-preset.js +470 -0
- package/README.md +0 -3
|
@@ -0,0 +1,861 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ============================================================================
|
|
3
|
+
* ECHELON DESIGN SYSTEM — Colors & Type
|
|
4
|
+
* ============================================================================
|
|
5
|
+
* Brand fonts (Inter + Manrope) are self-hosted variable TTFs in ../fonts.
|
|
6
|
+
* --font-heading — Inter — all headings and UI chrome
|
|
7
|
+
* --font-body — Manrope — body prose, descriptions, long-form
|
|
8
|
+
*
|
|
9
|
+
* Primary colors: Atlantic, Teal, Saffron, Burgundy — each with a full
|
|
10
|
+
* 50 → 950 scale. Supporting editorial accents: Rust, Sapphire, Suede,
|
|
11
|
+
* Leather, Violet, Fog, Vapor.
|
|
12
|
+
* ============================================================================
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
@font-face {
|
|
16
|
+
font-family: 'Inter';
|
|
17
|
+
src: url('../fonts/Inter-VariableFont_opsz_wght.ttf') format('truetype-variations');
|
|
18
|
+
font-weight: 100 900;
|
|
19
|
+
font-style: normal;
|
|
20
|
+
font-display: swap;
|
|
21
|
+
}
|
|
22
|
+
@font-face {
|
|
23
|
+
font-family: 'Manrope';
|
|
24
|
+
src: url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype-variations');
|
|
25
|
+
font-weight: 200 800;
|
|
26
|
+
font-style: normal;
|
|
27
|
+
font-display: swap;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@layer base {
|
|
31
|
+
:root {
|
|
32
|
+
color-scheme: light;
|
|
33
|
+
|
|
34
|
+
/* -------------------------------------------------------------------------
|
|
35
|
+
* BRAND PALETTE
|
|
36
|
+
* Primary: Atlantic, Teal, Saffron, Burgundy
|
|
37
|
+
* Editorial accents: Rust, Sapphire, Suede, Leather, Violet, Fog, Vapor
|
|
38
|
+
* ------------------------------------------------------------------------- */
|
|
39
|
+
--atlantic: #0b314c;
|
|
40
|
+
--atlantic-hsl: 203 77% 17%;
|
|
41
|
+
--teal: #00695c;
|
|
42
|
+
--teal-hsl: 173 100% 21%;
|
|
43
|
+
--saffron: #9a6a00;
|
|
44
|
+
--saffron-hsl: 41 100% 30%;
|
|
45
|
+
--burgundy: #800020;
|
|
46
|
+
--burgundy-hsl: 345 100% 25%;
|
|
47
|
+
--rust: #b7410e;
|
|
48
|
+
--rust-hsl: 18 86% 39%;
|
|
49
|
+
--sapphire: #020077;
|
|
50
|
+
--sapphire-hsl: 240 98% 24%;
|
|
51
|
+
--suede: #dec9b1;
|
|
52
|
+
--suede-hsl: 34 43% 78%;
|
|
53
|
+
--leather: #60452d;
|
|
54
|
+
--leather-hsl: 30 40% 27%;
|
|
55
|
+
--violet: #7b7ab6;
|
|
56
|
+
--violet-hsl: 241 27% 60%;
|
|
57
|
+
--fog: #d1d1d3;
|
|
58
|
+
--fog-hsl: 240 2% 82%;
|
|
59
|
+
--vapor: #f3f3f3;
|
|
60
|
+
--vapor-hsl: 0 0% 95%;
|
|
61
|
+
--ink: #000000;
|
|
62
|
+
--paper: #ffffff;
|
|
63
|
+
|
|
64
|
+
/* Atlantic full scale — HSL triplets for Tailwind opacity support */
|
|
65
|
+
--atlantic-50: 204 60% 96%;
|
|
66
|
+
--atlantic-100: 204 55% 88%;
|
|
67
|
+
--atlantic-200: 204 50% 76%;
|
|
68
|
+
--atlantic-300: 204 55% 60%;
|
|
69
|
+
--atlantic-400: 203 62% 44%;
|
|
70
|
+
--atlantic-500: 203 70% 32%;
|
|
71
|
+
--atlantic-600: 203 74% 24%;
|
|
72
|
+
--atlantic-700: 203 77% 17%;
|
|
73
|
+
--atlantic-800: 203 80% 13%;
|
|
74
|
+
--atlantic-900: 204 84% 9%;
|
|
75
|
+
--atlantic-950: 205 88% 5%;
|
|
76
|
+
|
|
77
|
+
/* Teal full scale */
|
|
78
|
+
--teal-50: 172 55% 96%;
|
|
79
|
+
--teal-100: 172 50% 86%;
|
|
80
|
+
--teal-200: 172 48% 72%;
|
|
81
|
+
--teal-300: 173 52% 54%;
|
|
82
|
+
--teal-400: 173 65% 38%;
|
|
83
|
+
--teal-500: 173 80% 28%;
|
|
84
|
+
--teal-600: 173 92% 23%;
|
|
85
|
+
--teal-700: 173 100% 21%;
|
|
86
|
+
--teal-800: 173 100% 16%;
|
|
87
|
+
--teal-900: 174 100% 11%;
|
|
88
|
+
--teal-950: 175 100% 6%;
|
|
89
|
+
|
|
90
|
+
/* Saffron full scale */
|
|
91
|
+
--saffron-50: 42 70% 96%;
|
|
92
|
+
--saffron-100: 42 65% 88%;
|
|
93
|
+
--saffron-200: 41 68% 74%;
|
|
94
|
+
--saffron-300: 41 75% 58%;
|
|
95
|
+
--saffron-400: 41 90% 44%;
|
|
96
|
+
--saffron-500: 41 100% 36%;
|
|
97
|
+
--saffron-600: 41 100% 32%;
|
|
98
|
+
--saffron-700: 41 100% 30%;
|
|
99
|
+
--saffron-800: 40 100% 24%;
|
|
100
|
+
--saffron-900: 39 100% 17%;
|
|
101
|
+
--saffron-950: 38 100% 9%;
|
|
102
|
+
|
|
103
|
+
/* Burgundy full scale */
|
|
104
|
+
--burgundy-50: 345 60% 97%;
|
|
105
|
+
--burgundy-100: 345 55% 90%;
|
|
106
|
+
--burgundy-200: 345 58% 78%;
|
|
107
|
+
--burgundy-300: 345 62% 62%;
|
|
108
|
+
--burgundy-400: 345 72% 46%;
|
|
109
|
+
--burgundy-500: 345 85% 35%;
|
|
110
|
+
--burgundy-600: 345 95% 28%;
|
|
111
|
+
--burgundy-700: 345 100% 25%;
|
|
112
|
+
--burgundy-800: 345 100% 20%;
|
|
113
|
+
--burgundy-900: 346 100% 14%;
|
|
114
|
+
--burgundy-950: 347 100% 8%;
|
|
115
|
+
|
|
116
|
+
/* Vendor brand accents. A provider has to read as itself in a legend, so these are the
|
|
117
|
+
* vendors' own colours rather than steps from our ramps — the one sanctioned exception. */
|
|
118
|
+
--provider-claude: 15 63% 60%;
|
|
119
|
+
--provider-anthropic: 27 36% 62%;
|
|
120
|
+
|
|
121
|
+
/* Categorical chart series (ECH-1838). Steps chosen from the brand ramps and validated
|
|
122
|
+
* against the light chart surface: lightness band, chroma floor, adjacent-pair CVD
|
|
123
|
+
* separation and the normal-vision floor. Six slots is the whole palette — a seventh
|
|
124
|
+
* series rolls into a neutral "Other" rather than inventing a hue. Never reorder these:
|
|
125
|
+
* the slot a series lands in is its identity. */
|
|
126
|
+
--chart-series-1: var(--atlantic-400);
|
|
127
|
+
--chart-series-2: var(--saffron-400);
|
|
128
|
+
--chart-series-3: var(--teal-400);
|
|
129
|
+
--chart-series-4: var(--burgundy-400);
|
|
130
|
+
--chart-series-5: var(--teal-300);
|
|
131
|
+
--chart-series-6: var(--burgundy-300);
|
|
132
|
+
|
|
133
|
+
/* The absence of a category rather than one of them: the neutral a stacked chart gives an
|
|
134
|
+
* unattributed slice. Opaque, so a segment never shows the bar behind it (ECH-1950). */
|
|
135
|
+
--chart-neutral: 0 0% 84%;
|
|
136
|
+
|
|
137
|
+
/* Tiles whose colors carry no category: each brand hue at three depths, ordered so
|
|
138
|
+
* neighbours differ in hue and tone. Labels take whichever ink reads best. */
|
|
139
|
+
--chart-tile-1: var(--atlantic-600);
|
|
140
|
+
--chart-tile-2: var(--teal-400);
|
|
141
|
+
--chart-tile-3: var(--saffron-200);
|
|
142
|
+
--chart-tile-4: var(--burgundy-500);
|
|
143
|
+
--chart-tile-5: var(--atlantic-300);
|
|
144
|
+
--chart-tile-6: var(--teal-600);
|
|
145
|
+
--chart-tile-7: var(--saffron-400);
|
|
146
|
+
--chart-tile-8: var(--burgundy-200);
|
|
147
|
+
--chart-tile-9: var(--atlantic-400);
|
|
148
|
+
--chart-tile-10: var(--teal-200);
|
|
149
|
+
--chart-tile-11: var(--saffron-600);
|
|
150
|
+
--chart-tile-12: var(--burgundy-300);
|
|
151
|
+
--chart-tile-ink-light: 0 0% 100%;
|
|
152
|
+
--chart-tile-ink-dark: var(--atlantic-hsl);
|
|
153
|
+
|
|
154
|
+
/* Behaviour-and-results quadrants: green, blue and purple with a slate neutral. */
|
|
155
|
+
--quadrant-both-above: 144 58% 40%;
|
|
156
|
+
--quadrant-activity-above: 217 70% 60%;
|
|
157
|
+
--quadrant-attainment-above: 272 52% 60%;
|
|
158
|
+
--quadrant-both-below: 217 14% 70%;
|
|
159
|
+
|
|
160
|
+
/* Rust full scale */
|
|
161
|
+
--rust-50: 22 70% 96%;
|
|
162
|
+
--rust-100: 21 65% 88%;
|
|
163
|
+
--rust-200: 20 65% 76%;
|
|
164
|
+
--rust-300: 19 68% 62%;
|
|
165
|
+
--rust-400: 18 75% 50%;
|
|
166
|
+
--rust-500: 18 82% 44%;
|
|
167
|
+
--rust-600: 18 85% 41%;
|
|
168
|
+
--rust-700: 18 86% 39%;
|
|
169
|
+
--rust-800: 17 90% 31%;
|
|
170
|
+
--rust-900: 16 92% 22%;
|
|
171
|
+
--rust-950: 15 95% 12%;
|
|
172
|
+
|
|
173
|
+
/* Canonical neutral palette. Semantic roles and every neutral utility resolve here. */
|
|
174
|
+
--gray-50-hsl: 210 20% 98.039216%;
|
|
175
|
+
--gray-100-hsl: 220 14.285714% 95.882353%;
|
|
176
|
+
--gray-200-hsl: 220 13.043478% 90.980392%;
|
|
177
|
+
--gray-300-hsl: 216 12.195122% 83.921569%;
|
|
178
|
+
--gray-400-hsl: 217.894737 10.614525% 64.901961%;
|
|
179
|
+
--gray-500-hsl: 220 8.93617% 46.078431%;
|
|
180
|
+
--gray-600-hsl: 215 13.793103% 34.117647%;
|
|
181
|
+
--gray-700-hsl: 216.923077 19.117647% 26.666667%;
|
|
182
|
+
--gray-800-hsl: 215 27.906977% 16.862745%;
|
|
183
|
+
--gray-900-hsl: 220.909091 39.285714% 10.980392%;
|
|
184
|
+
--gray-950-hsl: 224 71.428571% 4.117647%;
|
|
185
|
+
|
|
186
|
+
--gray-50: hsl(var(--gray-50-hsl));
|
|
187
|
+
--gray-100: hsl(var(--gray-100-hsl));
|
|
188
|
+
--gray-200: hsl(var(--gray-200-hsl));
|
|
189
|
+
--gray-300: hsl(var(--gray-300-hsl));
|
|
190
|
+
--gray-400: hsl(var(--gray-400-hsl));
|
|
191
|
+
--gray-500: hsl(var(--gray-500-hsl));
|
|
192
|
+
--gray-600: hsl(var(--gray-600-hsl));
|
|
193
|
+
--gray-700: hsl(var(--gray-700-hsl));
|
|
194
|
+
--gray-800: hsl(var(--gray-800-hsl));
|
|
195
|
+
--gray-900: hsl(var(--gray-900-hsl));
|
|
196
|
+
--gray-950: hsl(var(--gray-950-hsl));
|
|
197
|
+
|
|
198
|
+
/* DEPRECATED: echelon-blue aliases → use atlantic scale */
|
|
199
|
+
--echelon-blue: 203 77% 17%;
|
|
200
|
+
--echelon-blue-600: 203 74% 24%;
|
|
201
|
+
|
|
202
|
+
/* -------------------------------------------------------------------------
|
|
203
|
+
* SEMANTIC COLORS - Light Mode
|
|
204
|
+
* Destructive = Burgundy, Success = Teal, Warning = Saffron
|
|
205
|
+
* ------------------------------------------------------------------------- */
|
|
206
|
+
--background: var(--gray-50-hsl);
|
|
207
|
+
--foreground: var(--gray-900-hsl);
|
|
208
|
+
|
|
209
|
+
--card: 0 0% 100%;
|
|
210
|
+
--card-foreground: var(--gray-950-hsl);
|
|
211
|
+
|
|
212
|
+
--popover: 0 0% 100%;
|
|
213
|
+
--popover-foreground: var(--gray-950-hsl);
|
|
214
|
+
|
|
215
|
+
--primary: var(--gray-900-hsl);
|
|
216
|
+
--primary-foreground: var(--gray-50-hsl);
|
|
217
|
+
|
|
218
|
+
--secondary: var(--gray-100-hsl);
|
|
219
|
+
--secondary-foreground: var(--gray-900-hsl);
|
|
220
|
+
|
|
221
|
+
--muted: var(--gray-100-hsl);
|
|
222
|
+
--muted-foreground: var(--gray-500-hsl);
|
|
223
|
+
|
|
224
|
+
--accent: var(--gray-100-hsl);
|
|
225
|
+
--accent-foreground: var(--gray-900-hsl);
|
|
226
|
+
|
|
227
|
+
--destructive: 345 100% 25%;
|
|
228
|
+
--destructive-foreground: var(--gray-50-hsl);
|
|
229
|
+
|
|
230
|
+
--success: 173 100% 21%;
|
|
231
|
+
--success-foreground: var(--gray-50-hsl);
|
|
232
|
+
--warning: 41 100% 30%;
|
|
233
|
+
--warning-foreground: var(--gray-50-hsl);
|
|
234
|
+
|
|
235
|
+
--border: var(--gray-200-hsl);
|
|
236
|
+
--input: var(--gray-200-hsl);
|
|
237
|
+
--ring: var(--gray-950-hsl);
|
|
238
|
+
--form-focus: hsl(var(--atlantic-500) / 0.15);
|
|
239
|
+
--form-focus-width: 3px;
|
|
240
|
+
--form-invalid: hsl(var(--destructive) / 0.15);
|
|
241
|
+
|
|
242
|
+
/* -------------------------------------------------------------------------
|
|
243
|
+
* EVAL STATUS COLORS - Light Mode
|
|
244
|
+
* excellent = Teal, good = Atlantic, fair = Saffron, poor = Burgundy,
|
|
245
|
+
* none = neutral gray. HSL triplets for Tailwind opacity support.
|
|
246
|
+
* ------------------------------------------------------------------------- */
|
|
247
|
+
--eval-excellent: 173 100% 21%;
|
|
248
|
+
--eval-good: 203 77% 17%;
|
|
249
|
+
--eval-fair: 41 100% 30%;
|
|
250
|
+
--eval-poor: 345 100% 25%;
|
|
251
|
+
--eval-none: var(--gray-500-hsl);
|
|
252
|
+
|
|
253
|
+
/* -------------------------------------------------------------------------
|
|
254
|
+
* SIDEBAR COLORS - Light Mode
|
|
255
|
+
* ------------------------------------------------------------------------- */
|
|
256
|
+
--sidebar-background: 0 0% 100%;
|
|
257
|
+
--sidebar-foreground: var(--gray-600-hsl);
|
|
258
|
+
--sidebar-primary: var(--gray-900-hsl);
|
|
259
|
+
--sidebar-primary-foreground: var(--gray-50-hsl);
|
|
260
|
+
--sidebar-accent: var(--gray-100-hsl);
|
|
261
|
+
--sidebar-accent-foreground: var(--gray-900-hsl);
|
|
262
|
+
--sidebar-border: var(--gray-200-hsl);
|
|
263
|
+
--sidebar-ring: var(--gray-400-hsl);
|
|
264
|
+
|
|
265
|
+
/* -------------------------------------------------------------------------
|
|
266
|
+
* CHART COLORS - Light Mode
|
|
267
|
+
* Accessible, distinguishable palette for data visualization
|
|
268
|
+
* ------------------------------------------------------------------------- */
|
|
269
|
+
--chart-1: 12 76% 61%;
|
|
270
|
+
--chart-2: 173 58% 39%;
|
|
271
|
+
--chart-3: 197 37% 24%;
|
|
272
|
+
--chart-4: 43 74% 66%;
|
|
273
|
+
--chart-5: 27 87% 67%;
|
|
274
|
+
|
|
275
|
+
/* -------------------------------------------------------------------------
|
|
276
|
+
* TYPOGRAPHY
|
|
277
|
+
* --font-heading — Inter — headings and UI chrome
|
|
278
|
+
* --font-body — Manrope — body prose, descriptions, long-form
|
|
279
|
+
* ------------------------------------------------------------------------- */
|
|
280
|
+
--font-heading:
|
|
281
|
+
'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
|
282
|
+
--font-body: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
|
283
|
+
--font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
|
|
284
|
+
|
|
285
|
+
/* Back-compat aliases */
|
|
286
|
+
--font-ui: var(--font-heading);
|
|
287
|
+
--font-sans: var(--font-body);
|
|
288
|
+
--font-serif: var(--font-body);
|
|
289
|
+
|
|
290
|
+
/* Type Scale (1rem = 16px). Product text runs from xs to 2xl. The two steps below xs are
|
|
291
|
+
* for pills, count bubbles and chart labels only, never for a sentence. */
|
|
292
|
+
--text-3xs: 0.625rem; /* 10px */
|
|
293
|
+
--text-2xs: 0.6875rem; /* 11px */
|
|
294
|
+
--text-xs: 0.75rem;
|
|
295
|
+
--text-sm: 0.875rem;
|
|
296
|
+
--text-base: 1rem;
|
|
297
|
+
--text-lg: 1.125rem;
|
|
298
|
+
--text-xl: 1.25rem;
|
|
299
|
+
--text-2xl: 1.5rem;
|
|
300
|
+
--text-3xl: 1.875rem;
|
|
301
|
+
--text-4xl: 2.25rem;
|
|
302
|
+
--text-5xl: 3rem;
|
|
303
|
+
--text-6xl: 3.75rem;
|
|
304
|
+
--text-7xl: 4.5rem;
|
|
305
|
+
|
|
306
|
+
/* Line Heights */
|
|
307
|
+
--leading-tight: 1.25;
|
|
308
|
+
--leading-snug: 1.375;
|
|
309
|
+
--leading-normal: 1.5;
|
|
310
|
+
--leading-relaxed: 1.625;
|
|
311
|
+
|
|
312
|
+
/* Font Weights */
|
|
313
|
+
--fw-light: 300;
|
|
314
|
+
--fw-normal: 400;
|
|
315
|
+
--fw-medium: 500;
|
|
316
|
+
--fw-semibold: 600;
|
|
317
|
+
--fw-bold: 700;
|
|
318
|
+
|
|
319
|
+
/* Back-compat weight aliases */
|
|
320
|
+
--font-normal: 400;
|
|
321
|
+
--font-medium: 500;
|
|
322
|
+
--font-semibold: 600;
|
|
323
|
+
--font-bold: 700;
|
|
324
|
+
|
|
325
|
+
/* Letter spacing. Headings tighten, body stays at normal, and uppercase labels open up
|
|
326
|
+
* to `caps` so short capitals don't crowd. The display roles in DESIGN.md §3.6 keep
|
|
327
|
+
* their own per-size tracking. */
|
|
328
|
+
--tracking-tight: -0.025em;
|
|
329
|
+
--tracking-normal: 0em;
|
|
330
|
+
--tracking-wide: 0.025em;
|
|
331
|
+
--tracking-wider: 0.05em;
|
|
332
|
+
--tracking-caps: 0.08em;
|
|
333
|
+
|
|
334
|
+
/* -------------------------------------------------------------------------
|
|
335
|
+
* SPACING SCALE
|
|
336
|
+
* Consistent spacing units (based on 4px grid). Each step equals the Tailwind utility of
|
|
337
|
+
* the same number (`--space-4` is `p-4`); `pnpm --filter @echelon/web-ui lint` fails if
|
|
338
|
+
* the two drift apart.
|
|
339
|
+
*
|
|
340
|
+
* The half steps sit inside a component: an icon beside its label, a pill's padding, a
|
|
341
|
+
* compact tile. Layout between components stays on the whole steps.
|
|
342
|
+
* ------------------------------------------------------------------------- */
|
|
343
|
+
--space-0: 0;
|
|
344
|
+
--space-0-5: 0.125rem; /* 2px */
|
|
345
|
+
--space-1: 0.25rem; /* 4px */
|
|
346
|
+
--space-1-5: 0.375rem; /* 6px */
|
|
347
|
+
--space-2: 0.5rem; /* 8px */
|
|
348
|
+
--space-2-5: 0.625rem; /* 10px */
|
|
349
|
+
--space-3: 0.75rem; /* 12px */
|
|
350
|
+
--space-4: 1rem; /* 16px */
|
|
351
|
+
--space-5: 1.25rem; /* 20px */
|
|
352
|
+
--space-6: 1.5rem; /* 24px */
|
|
353
|
+
--space-8: 2rem; /* 32px */
|
|
354
|
+
--space-10: 2.5rem; /* 40px */
|
|
355
|
+
--space-12: 3rem; /* 48px */
|
|
356
|
+
--space-16: 4rem; /* 64px */
|
|
357
|
+
--space-20: 5rem; /* 80px */
|
|
358
|
+
--space-24: 6rem; /* 96px */
|
|
359
|
+
|
|
360
|
+
/* -------------------------------------------------------------------------
|
|
361
|
+
* SIZING
|
|
362
|
+
* Controls: the height of anything you click or type into. A button, input and select
|
|
363
|
+
* of the same size line up in a row. `md` is the default; `2xs` is for icon buttons
|
|
364
|
+
* inside a table row or chip.
|
|
365
|
+
*
|
|
366
|
+
* Icons: square. Match the icon to the text beside it: `xs` with 2xs/xs text, `sm`
|
|
367
|
+
* with xs, `md` with sm/base (the default), `lg` and `xl` for empty states and
|
|
368
|
+
* standalone status marks.
|
|
369
|
+
* ------------------------------------------------------------------------- */
|
|
370
|
+
--control-2xs: 1.5rem; /* 24px */
|
|
371
|
+
--control-xs: 1.75rem; /* 28px */
|
|
372
|
+
--control-sm: 2rem; /* 32px */
|
|
373
|
+
--control-md: 2.25rem; /* 36px */
|
|
374
|
+
--control-lg: 2.5rem; /* 40px */
|
|
375
|
+
|
|
376
|
+
--icon-xs: 0.75rem; /* 12px */
|
|
377
|
+
--icon-sm: 0.875rem; /* 14px */
|
|
378
|
+
--icon-md: 1rem; /* 16px */
|
|
379
|
+
--icon-lg: 1.25rem; /* 20px */
|
|
380
|
+
--icon-xl: 1.5rem; /* 24px */
|
|
381
|
+
|
|
382
|
+
/* -------------------------------------------------------------------------
|
|
383
|
+
* BORDER RADIUS
|
|
384
|
+
* Rounded corner scale
|
|
385
|
+
* ------------------------------------------------------------------------- */
|
|
386
|
+
--radius: 0.5rem; /* 8px - base radius */
|
|
387
|
+
--radius-sm: 0.25rem; /* 4px */
|
|
388
|
+
--radius-md: 0.375rem; /* 6px */
|
|
389
|
+
--radius-lg: 0.5rem; /* 8px */
|
|
390
|
+
--radius-xl: 0.75rem; /* 12px */
|
|
391
|
+
--radius-2xl: 1rem; /* 16px */
|
|
392
|
+
--radius-full: 9999px; /* pill shape */
|
|
393
|
+
|
|
394
|
+
/* -------------------------------------------------------------------------
|
|
395
|
+
* SHADOWS
|
|
396
|
+
* Elevation scale for depth
|
|
397
|
+
* ------------------------------------------------------------------------- */
|
|
398
|
+
--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
399
|
+
--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
400
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
401
|
+
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
402
|
+
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
403
|
+
--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
404
|
+
|
|
405
|
+
/* -------------------------------------------------------------------------
|
|
406
|
+
* OPACITY
|
|
407
|
+
* The steps a tint or fade may use: `bg-muted/40`, `text-foreground/80`, `opacity-60`.
|
|
408
|
+
* Five steps plus `disabled`; values between them read as the same tint and only
|
|
409
|
+
* add drift. Fully on or off (0, 100) is always allowed.
|
|
410
|
+
* ------------------------------------------------------------------------- */
|
|
411
|
+
--opacity-10: 0.1;
|
|
412
|
+
--opacity-20: 0.2;
|
|
413
|
+
--opacity-40: 0.4;
|
|
414
|
+
--opacity-60: 0.6;
|
|
415
|
+
--opacity-80: 0.8;
|
|
416
|
+
--opacity-disabled: 0.5;
|
|
417
|
+
|
|
418
|
+
/* -------------------------------------------------------------------------
|
|
419
|
+
* LAYERS
|
|
420
|
+
* Stacking order by role, lowest first. Popovers, menus, selects, tooltips, dialogs
|
|
421
|
+
* and sheets share `overlay`: they portal to the end of the body when opened, so the
|
|
422
|
+
* one opened last sits on top, and a menu inside a dialog still works. The toast
|
|
423
|
+
* viewport stays mounted, so it needs its own layer to land above an open dialog.
|
|
424
|
+
* Order inside one component (sticky cells in a table) uses `isolate` and stays
|
|
425
|
+
* below `raised`.
|
|
426
|
+
* ------------------------------------------------------------------------- */
|
|
427
|
+
--z-base: 0;
|
|
428
|
+
--z-raised: 10; /* a card or cell lifted above its neighbours */
|
|
429
|
+
--z-sticky: 20; /* sticky page, section and table headers */
|
|
430
|
+
--z-floating: 40; /* panels that float over the page: chat, compare bars */
|
|
431
|
+
--z-overlay: 50; /* popovers, menus, dialogs, sheets */
|
|
432
|
+
--z-toast: 100; /* above an open dialog */
|
|
433
|
+
|
|
434
|
+
/* -------------------------------------------------------------------------
|
|
435
|
+
* MOTION
|
|
436
|
+
* Pick a duration by how often the thing happens, not by how it looks: the more often
|
|
437
|
+
* someone triggers it, the shorter it runs. Product UI stops at `slow`.
|
|
438
|
+
*
|
|
439
|
+
* instant row hover, disclosure chevrons, table density: many times a minute
|
|
440
|
+
* fast hover and focus color, small state changes. The default for `transition-*`
|
|
441
|
+
* normal menus, popovers, tooltips, tabs, accordions
|
|
442
|
+
* slow dialogs, sheets and side panels closing or sliding
|
|
443
|
+
* slower content settling in once: a sheet opening, an answer arriving. Never on
|
|
444
|
+
* hover, press or anything keyboard-driven
|
|
445
|
+
*
|
|
446
|
+
* Easing: `out` for anything entering or responding to the user, `in` for anything
|
|
447
|
+
* leaving, `default` for a change between two visible states. Loops (spinners,
|
|
448
|
+
* shimmer) run `linear`.
|
|
449
|
+
* ------------------------------------------------------------------------- */
|
|
450
|
+
--duration-instant: 100ms;
|
|
451
|
+
--duration-fast: 150ms;
|
|
452
|
+
--duration-normal: 200ms;
|
|
453
|
+
--duration-slow: 300ms;
|
|
454
|
+
--duration-slower: 500ms;
|
|
455
|
+
--ease-default: cubic-bezier(0.4, 0, 0.2, 1);
|
|
456
|
+
--ease-in: cubic-bezier(0.4, 0, 1, 1);
|
|
457
|
+
--ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
458
|
+
--ease-in-out: var(--ease-default);
|
|
459
|
+
|
|
460
|
+
/* -------------------------------------------------------------------------
|
|
461
|
+
* APP SHELL
|
|
462
|
+
* The window scrolls; full-screen pages size themselves with `h-page`
|
|
463
|
+
* ------------------------------------------------------------------------- */
|
|
464
|
+
--app-header-height: 3.5rem; /* mobile-only top bar */
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
@media (min-width: 768px) {
|
|
468
|
+
:root {
|
|
469
|
+
--app-header-height: 0px;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/* Reduced motion collapses every duration token, so any transition or animation timed by
|
|
474
|
+
* one lands on its end state at once. 0.01ms rather than 0 keeps `transitionend` and
|
|
475
|
+
* `animationend` firing for code that waits on them. Loading spinners keep turning: they
|
|
476
|
+
* are the only sign that work is in progress. */
|
|
477
|
+
@media (prefers-reduced-motion: reduce) {
|
|
478
|
+
:root {
|
|
479
|
+
--duration-instant: 0.01ms;
|
|
480
|
+
--duration-fast: 0.01ms;
|
|
481
|
+
--duration-normal: 0.01ms;
|
|
482
|
+
--duration-slow: 0.01ms;
|
|
483
|
+
--duration-slower: 0.01ms;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/* ---------------------------------------------------------------------------
|
|
488
|
+
* DARK MODE
|
|
489
|
+
* Override semantic colors for dark theme.
|
|
490
|
+
*
|
|
491
|
+
* Authoring rules (full guide: DESIGN.md §2.10):
|
|
492
|
+
* 1. Every ramp stays a scale and every stop keeps its role, so write the
|
|
493
|
+
* light-mode class and it holds in dark: bg-teal-100 text-teal-700.
|
|
494
|
+
* 2. Prefer semantic tokens (bg-card, text-muted-foreground, border-border)
|
|
495
|
+
* for chrome. bg-white, text-black and hex never change: avoid them.
|
|
496
|
+
* 3. White text needs a fill that stays dark in both themes: the base color
|
|
497
|
+
* (bg-atlantic), not a ramp stop.
|
|
498
|
+
* 4. Use dark: ONLY for genuine per-theme behavior (e.g. shadow-sm
|
|
499
|
+
* dark:shadow-none).
|
|
500
|
+
* 5. Preserve hover deltas: text-muted-foreground hover:text-foreground,
|
|
501
|
+
* bg-muted hover:bg-muted/80 (don't collapse both states to one token).
|
|
502
|
+
* --------------------------------------------------------------------------- */
|
|
503
|
+
.dark {
|
|
504
|
+
color-scheme: dark;
|
|
505
|
+
|
|
506
|
+
/* Color ramps - Dark Mode. Every ramp is redefined so it is still a scale: lightness rises
|
|
507
|
+
* from 50 to 950 and each stop keeps its light-mode role. 50-100 are surfaces, 200-300
|
|
508
|
+
* lines, 400-600 solid marks, 700-950 ink. Write one class (bg-teal-100 text-teal-700)
|
|
509
|
+
* and it holds in both themes. The base colors (--atlantic, bg-atlantic) do not change. */
|
|
510
|
+
--atlantic-50: 204 50% 12%;
|
|
511
|
+
--atlantic-100: 204 50% 16%;
|
|
512
|
+
--atlantic-200: 204 48% 23%;
|
|
513
|
+
--atlantic-300: 204 50% 31%;
|
|
514
|
+
--atlantic-400: 204 55% 41%;
|
|
515
|
+
--atlantic-500: 204 60% 52%;
|
|
516
|
+
--atlantic-600: 204 60% 62%;
|
|
517
|
+
--atlantic-700: 204 52% 72%;
|
|
518
|
+
--atlantic-800: 204 50% 80%;
|
|
519
|
+
--atlantic-900: 204 55% 88%;
|
|
520
|
+
--atlantic-950: 204 60% 94%;
|
|
521
|
+
|
|
522
|
+
--teal-50: 174 50% 12%;
|
|
523
|
+
--teal-100: 174 50% 16%;
|
|
524
|
+
--teal-200: 174 45% 23%;
|
|
525
|
+
--teal-300: 174 48% 31%;
|
|
526
|
+
--teal-400: 174 55% 41%;
|
|
527
|
+
--teal-500: 174 60% 52%;
|
|
528
|
+
--teal-600: 174 55% 62%;
|
|
529
|
+
--teal-700: 174 45% 72%;
|
|
530
|
+
--teal-800: 174 45% 80%;
|
|
531
|
+
--teal-900: 174 50% 88%;
|
|
532
|
+
--teal-950: 174 55% 94%;
|
|
533
|
+
|
|
534
|
+
--saffron-50: 41 55% 12%;
|
|
535
|
+
--saffron-100: 41 55% 16%;
|
|
536
|
+
--saffron-200: 41 55% 23%;
|
|
537
|
+
--saffron-300: 41 60% 31%;
|
|
538
|
+
--saffron-400: 41 70% 41%;
|
|
539
|
+
--saffron-500: 41 80% 52%;
|
|
540
|
+
--saffron-600: 41 75% 62%;
|
|
541
|
+
--saffron-700: 41 65% 72%;
|
|
542
|
+
--saffron-800: 41 65% 80%;
|
|
543
|
+
--saffron-900: 41 70% 88%;
|
|
544
|
+
--saffron-950: 41 75% 94%;
|
|
545
|
+
|
|
546
|
+
--burgundy-50: 345 45% 12%;
|
|
547
|
+
--burgundy-100: 345 45% 16%;
|
|
548
|
+
--burgundy-200: 345 45% 23%;
|
|
549
|
+
--burgundy-300: 345 50% 31%;
|
|
550
|
+
--burgundy-400: 345 58% 41%;
|
|
551
|
+
--burgundy-500: 345 65% 52%;
|
|
552
|
+
--burgundy-600: 345 62% 62%;
|
|
553
|
+
--burgundy-700: 345 55% 72%;
|
|
554
|
+
--burgundy-800: 345 55% 80%;
|
|
555
|
+
--burgundy-900: 345 60% 88%;
|
|
556
|
+
--burgundy-950: 345 65% 94%;
|
|
557
|
+
|
|
558
|
+
--rust-50: 18 50% 12%;
|
|
559
|
+
--rust-100: 18 50% 16%;
|
|
560
|
+
--rust-200: 18 50% 23%;
|
|
561
|
+
--rust-300: 18 55% 31%;
|
|
562
|
+
--rust-400: 18 62% 41%;
|
|
563
|
+
--rust-500: 18 70% 52%;
|
|
564
|
+
--rust-600: 18 68% 62%;
|
|
565
|
+
--rust-700: 18 60% 72%;
|
|
566
|
+
--rust-800: 18 60% 80%;
|
|
567
|
+
--rust-900: 18 65% 88%;
|
|
568
|
+
--rust-950: 18 70% 94%;
|
|
569
|
+
|
|
570
|
+
--gray-50-hsl: 222 16% 6%;
|
|
571
|
+
--gray-100-hsl: 220 12% 16%;
|
|
572
|
+
--gray-200-hsl: 220 11% 22%;
|
|
573
|
+
--gray-300-hsl: 220 10% 28%;
|
|
574
|
+
--gray-400-hsl: 218 9% 46%;
|
|
575
|
+
--gray-500-hsl: 218 11% 68%;
|
|
576
|
+
--gray-600-hsl: 218 12% 78%;
|
|
577
|
+
--gray-700-hsl: 216 14% 85%;
|
|
578
|
+
--gray-800-hsl: 214 16% 90%;
|
|
579
|
+
--gray-900-hsl: 210 20% 96%;
|
|
580
|
+
--gray-950-hsl: 210 25% 98%;
|
|
581
|
+
|
|
582
|
+
/* Semantic Colors - Dark Mode. The same gray stops as the light theme, read from the dark
|
|
583
|
+
* ramp, so surfaces step up in lightness: page (background), then sidebar, card, popover.
|
|
584
|
+
* Repeated here so a nested .dark resolves them against the dark ramp. */
|
|
585
|
+
--background: var(--gray-50-hsl);
|
|
586
|
+
--foreground: var(--gray-900-hsl);
|
|
587
|
+
|
|
588
|
+
--card: 222 14% 10%;
|
|
589
|
+
--card-foreground: var(--gray-950-hsl);
|
|
590
|
+
|
|
591
|
+
--popover: 222 13% 12%;
|
|
592
|
+
--popover-foreground: var(--gray-950-hsl);
|
|
593
|
+
|
|
594
|
+
--primary: var(--gray-900-hsl);
|
|
595
|
+
--primary-foreground: var(--gray-50-hsl);
|
|
596
|
+
|
|
597
|
+
--secondary: var(--gray-100-hsl);
|
|
598
|
+
--secondary-foreground: var(--gray-900-hsl);
|
|
599
|
+
|
|
600
|
+
--muted: var(--gray-100-hsl);
|
|
601
|
+
--muted-foreground: var(--gray-500-hsl);
|
|
602
|
+
|
|
603
|
+
--accent: var(--gray-100-hsl);
|
|
604
|
+
--accent-foreground: var(--gray-900-hsl);
|
|
605
|
+
|
|
606
|
+
--destructive: 345 72% 63%;
|
|
607
|
+
--destructive-foreground: var(--gray-50-hsl);
|
|
608
|
+
|
|
609
|
+
/* Status colors stay light enough to read as text on a card, so a solid fill takes dark
|
|
610
|
+
* ink rather than white. */
|
|
611
|
+
--success: 173 70% 35%;
|
|
612
|
+
--success-foreground: var(--gray-50-hsl);
|
|
613
|
+
--warning: 41 85% 45%;
|
|
614
|
+
--warning-foreground: var(--gray-50-hsl);
|
|
615
|
+
|
|
616
|
+
--border: var(--gray-200-hsl);
|
|
617
|
+
--input: var(--gray-300-hsl);
|
|
618
|
+
--ring: var(--gray-950-hsl);
|
|
619
|
+
--form-focus: hsl(204 55% 60% / 0.3);
|
|
620
|
+
--form-invalid: hsl(345 62% 62% / 0.3);
|
|
621
|
+
|
|
622
|
+
/* Chart series - Dark Mode. Selected against the dark surface, not flipped: the two
|
|
623
|
+
* lightness bands do not overlap. Pinned to values because the ramps they draw from
|
|
624
|
+
* change in dark mode. Slot five moves to saffron because teal has only one step inside
|
|
625
|
+
* the dark band and a second would repeat slot three. */
|
|
626
|
+
--chart-series-1: 203 62% 44%;
|
|
627
|
+
--chart-series-2: 41 100% 36%;
|
|
628
|
+
--chart-series-3: 173 65% 38%;
|
|
629
|
+
--chart-series-4: 345 72% 46%;
|
|
630
|
+
--chart-series-5: 41 100% 32%;
|
|
631
|
+
--chart-series-6: 345 62% 62%;
|
|
632
|
+
|
|
633
|
+
/* Chart tiles keep their light-theme colors, so each tile's label ink still reads. */
|
|
634
|
+
--chart-tile-1: 203 74% 24%;
|
|
635
|
+
--chart-tile-2: 173 65% 38%;
|
|
636
|
+
--chart-tile-3: 41 68% 74%;
|
|
637
|
+
--chart-tile-4: 345 85% 35%;
|
|
638
|
+
--chart-tile-5: 204 55% 60%;
|
|
639
|
+
--chart-tile-6: 173 92% 23%;
|
|
640
|
+
--chart-tile-7: 41 90% 44%;
|
|
641
|
+
--chart-tile-8: 345 58% 78%;
|
|
642
|
+
--chart-tile-9: 203 62% 44%;
|
|
643
|
+
--chart-tile-10: 172 48% 72%;
|
|
644
|
+
--chart-tile-11: 41 100% 32%;
|
|
645
|
+
--chart-tile-12: 345 62% 62%;
|
|
646
|
+
--chart-neutral: 0 0% 44%;
|
|
647
|
+
|
|
648
|
+
--quadrant-both-above: 152 62% 40%;
|
|
649
|
+
--quadrant-activity-above: 220 60% 62%;
|
|
650
|
+
--quadrant-attainment-above: 272 55% 68%;
|
|
651
|
+
--quadrant-both-below: 216 16% 40%;
|
|
652
|
+
|
|
653
|
+
/* Eval Status Colors - Dark Mode (lifted for contrast on dark surfaces) */
|
|
654
|
+
--eval-excellent: 173 70% 45%;
|
|
655
|
+
--eval-good: 204 62% 60%;
|
|
656
|
+
--eval-fair: 41 85% 55%;
|
|
657
|
+
--eval-poor: 345 80% 60%;
|
|
658
|
+
--eval-none: 0 0% 55%;
|
|
659
|
+
|
|
660
|
+
/* Sidebar Colors - Dark Mode */
|
|
661
|
+
--sidebar-background: 222 15% 8%;
|
|
662
|
+
--sidebar-foreground: var(--gray-600-hsl);
|
|
663
|
+
--sidebar-primary: var(--gray-900-hsl);
|
|
664
|
+
--sidebar-primary-foreground: var(--gray-50-hsl);
|
|
665
|
+
--sidebar-accent: var(--gray-100-hsl);
|
|
666
|
+
--sidebar-accent-foreground: var(--gray-900-hsl);
|
|
667
|
+
--sidebar-border: var(--gray-200-hsl);
|
|
668
|
+
--sidebar-ring: var(--gray-400-hsl);
|
|
669
|
+
|
|
670
|
+
/* Chart Colors - Dark Mode */
|
|
671
|
+
--chart-1: 220 70% 50%;
|
|
672
|
+
--chart-2: 160 60% 45%;
|
|
673
|
+
--chart-3: 30 80% 55%;
|
|
674
|
+
--chart-4: 280 65% 60%;
|
|
675
|
+
--chart-5: 340 75% 55%;
|
|
676
|
+
|
|
677
|
+
/* Dark mode shadows (slightly adjusted for dark backgrounds) */
|
|
678
|
+
--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.3);
|
|
679
|
+
--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
|
|
680
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
|
|
681
|
+
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
|
|
682
|
+
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);
|
|
683
|
+
--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.6);
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
/* =============================================================================
|
|
688
|
+
* BASE STYLES
|
|
689
|
+
* Global element defaults
|
|
690
|
+
* ============================================================================= */
|
|
691
|
+
|
|
692
|
+
@layer base {
|
|
693
|
+
* {
|
|
694
|
+
@apply border-border;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
html {
|
|
698
|
+
-webkit-font-smoothing: antialiased;
|
|
699
|
+
-moz-osx-font-smoothing: grayscale;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
body {
|
|
703
|
+
@apply bg-background text-foreground;
|
|
704
|
+
font-family: var(--font-body);
|
|
705
|
+
font-size: var(--text-base);
|
|
706
|
+
/* Manrope reads noticeably lighter than Inter at the same weight, so body
|
|
707
|
+
* prose defaults to 500. Inter chrome is reset to 400 below. */
|
|
708
|
+
font-weight: var(--fw-medium);
|
|
709
|
+
line-height: var(--leading-normal);
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
/* Inter (UI chrome) keeps 400 as its default; weight utilities still win. */
|
|
713
|
+
.font-heading {
|
|
714
|
+
font-weight: var(--fw-normal);
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
h1,
|
|
718
|
+
h2,
|
|
719
|
+
h3,
|
|
720
|
+
h4,
|
|
721
|
+
h5,
|
|
722
|
+
h6 {
|
|
723
|
+
font-family: var(--font-heading);
|
|
724
|
+
font-weight: var(--fw-semibold);
|
|
725
|
+
letter-spacing: -0.01em;
|
|
726
|
+
}
|
|
727
|
+
h1 {
|
|
728
|
+
font-weight: var(--fw-medium);
|
|
729
|
+
font-size: var(--text-4xl);
|
|
730
|
+
line-height: var(--leading-tight);
|
|
731
|
+
}
|
|
732
|
+
h2 {
|
|
733
|
+
font-size: var(--text-3xl);
|
|
734
|
+
line-height: var(--leading-tight);
|
|
735
|
+
}
|
|
736
|
+
h3 {
|
|
737
|
+
font-size: var(--text-2xl);
|
|
738
|
+
line-height: var(--leading-snug);
|
|
739
|
+
}
|
|
740
|
+
h4 {
|
|
741
|
+
font-size: var(--text-xl);
|
|
742
|
+
}
|
|
743
|
+
h5 {
|
|
744
|
+
font-size: var(--text-lg);
|
|
745
|
+
}
|
|
746
|
+
h6 {
|
|
747
|
+
font-size: var(--text-base);
|
|
748
|
+
}
|
|
749
|
+
/* A card title is a heading for screen readers but keeps the type of where it sits. */
|
|
750
|
+
.card-title {
|
|
751
|
+
font-family: inherit;
|
|
752
|
+
font-size: inherit;
|
|
753
|
+
font-weight: inherit;
|
|
754
|
+
line-height: inherit;
|
|
755
|
+
letter-spacing: inherit;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
p {
|
|
759
|
+
font-family: var(--font-body);
|
|
760
|
+
font-size: var(--text-base);
|
|
761
|
+
font-weight: var(--fw-medium);
|
|
762
|
+
line-height: var(--leading-relaxed);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
code,
|
|
766
|
+
pre,
|
|
767
|
+
kbd,
|
|
768
|
+
samp {
|
|
769
|
+
font-family: var(--font-mono);
|
|
770
|
+
font-size: 0.95em;
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
/* =============================================================================
|
|
775
|
+
* UTILITY CLASSES
|
|
776
|
+
* Custom utilities beyond Tailwind defaults
|
|
777
|
+
* ============================================================================= */
|
|
778
|
+
|
|
779
|
+
@layer utilities {
|
|
780
|
+
/* Text truncation */
|
|
781
|
+
.line-clamp-2 {
|
|
782
|
+
display: -webkit-box;
|
|
783
|
+
-webkit-line-clamp: 2;
|
|
784
|
+
line-clamp: 2;
|
|
785
|
+
-webkit-box-orient: vertical;
|
|
786
|
+
overflow: hidden;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
/* Brand color utilities */
|
|
790
|
+
.text-brand {
|
|
791
|
+
color: var(--atlantic);
|
|
792
|
+
}
|
|
793
|
+
.bg-brand {
|
|
794
|
+
background-color: var(--atlantic);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
/* =============================================================================
|
|
799
|
+
* COMPONENT-SPECIFIC STYLES
|
|
800
|
+
* Styles for third-party components or special cases
|
|
801
|
+
* ============================================================================= */
|
|
802
|
+
|
|
803
|
+
/* Tiptap Markdown Editor */
|
|
804
|
+
.markdown-editor-content .ProseMirror {
|
|
805
|
+
flex: 1 1 auto;
|
|
806
|
+
outline: none;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
.markdown-editor-content .ProseMirror p.is-editor-empty:first-child::before {
|
|
810
|
+
content: attr(data-placeholder);
|
|
811
|
+
float: left;
|
|
812
|
+
color: hsl(var(--muted-foreground));
|
|
813
|
+
pointer-events: none;
|
|
814
|
+
height: 0;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
.markdown-editor-content .ProseMirror h1,
|
|
818
|
+
.markdown-editor-content .ProseMirror h2,
|
|
819
|
+
.markdown-editor-content .ProseMirror h3 {
|
|
820
|
+
font-weight: 600;
|
|
821
|
+
color: hsl(var(--foreground));
|
|
822
|
+
margin-top: 1rem;
|
|
823
|
+
margin-bottom: 0.5rem;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
.markdown-editor-content .ProseMirror h1 {
|
|
827
|
+
font-size: 1.5rem;
|
|
828
|
+
}
|
|
829
|
+
.markdown-editor-content .ProseMirror h2 {
|
|
830
|
+
font-size: 1.25rem;
|
|
831
|
+
}
|
|
832
|
+
.markdown-editor-content .ProseMirror h3 {
|
|
833
|
+
font-size: 1.1rem;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
.markdown-editor-content .ProseMirror ul {
|
|
837
|
+
list-style-type: disc;
|
|
838
|
+
padding-left: 1.5rem;
|
|
839
|
+
margin-bottom: 0.5rem;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.markdown-editor-content .ProseMirror ol {
|
|
843
|
+
list-style-type: decimal;
|
|
844
|
+
padding-left: 1.5rem;
|
|
845
|
+
margin-bottom: 0.5rem;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
.markdown-editor-content .ProseMirror li {
|
|
849
|
+
margin-bottom: 0.125rem;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
.markdown-editor-content .ProseMirror p {
|
|
853
|
+
margin-bottom: 0.5rem;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
.markdown-editor-content .ProseMirror blockquote {
|
|
857
|
+
border-left: 4px solid hsl(var(--border));
|
|
858
|
+
padding-left: 1rem;
|
|
859
|
+
color: hsl(var(--muted-foreground));
|
|
860
|
+
margin-bottom: 0.5rem;
|
|
861
|
+
}
|