|
4 | 4 | * |
5 | 5 | * This file serves a dual purpose: |
6 | 6 | * |
7 | | - * 1. FALLBACK THEME — it is automatically imported by the |
8 | | - * integration (before markdown.css) so all --jaamd-* vars |
9 | | - * have sensible values even if you never set any yourself. |
10 | | - * You can opt out with `noDefault: true` in jaamd({…}). |
| 7 | + * 1. FALLBACK THEME: |
| 8 | + * it is automatically imported by the integration so all |
| 9 | + * --jaamd-* vars have sensible values even if you never |
| 10 | + * set any yourself. You can opt out with `noDefault: true` |
| 11 | + * in jaamd({…}). |
11 | 12 | * |
12 | | - * 2. DOCUMENTATION — every --jaamd-* property is listed here |
13 | | - * with a comment describing its role. Copy any variable |
14 | | - * you want to override into your own :root block. |
| 13 | + * All defaults live inside @layer jaamd.defaults, so any |
| 14 | + * :root rule you write outside a layer always wins — no |
| 15 | + * matter the load order. |
| 16 | + * |
| 17 | + * 2. DOCUMENTATION: |
| 18 | + * every --jaamd-* property is listed here with a comment |
| 19 | + * describing its role. Copy any variable you want to override |
| 20 | + * into your own :root block (no layer needed). |
15 | 21 | * |
16 | 22 | * Importable as: import "jaamd/default"; |
17 | 23 | * @import "jaamd/default.css"; |
18 | 24 | * ============================================================ */ |
19 | 25 |
|
| 26 | +/* Establish the layer so its priority is always below unlayered CSS. */ |
| 27 | +@layer jaamd.defaults; |
| 28 | + |
| 29 | +@layer jaamd.defaults { |
20 | 30 | :root { |
21 | 31 | /* ── Typography ─────────────────────────────────────────── */ |
22 | 32 |
|
|
196 | 206 | --jaamd-alert-caution-color: #cf222e; |
197 | 207 | --jaamd-alert-caution-bg: #ffebe9; |
198 | 208 | } |
| 209 | +} |
0 commit comments