|
1 | 1 | /* |
2 | | - * global.css — Shared stylesheet for landing, blog, AND Starlight docs. |
| 2 | + * global.css — Starlight-safe shared theme stylesheet. |
3 | 3 | * |
4 | 4 | * Loaded via: |
5 | 5 | * • Starlight `customCss` (docs pages) |
6 | | - * • BaseLayout `import` (landing & blog pages) |
| 6 | + * • `site.css` import (landing & blog pages) |
7 | 7 | * |
8 | 8 | * Structure follows the official Starlight + Tailwind v4 pattern: |
9 | 9 | * https://starlight.astro.build/guides/css-and-tailwind/ |
|
16 | 16 | * doesn't conflict with Starlight/EC, and maps --color-accent-* / |
17 | 17 | * --color-gray-* into --sl-color-* tokens automatically. |
18 | 18 | * 3. Import only `tailwindcss/theme.css` and `tailwindcss/utilities.css` |
19 | | - * in their respective layers — NOT the full `@import "tailwindcss"` |
20 | | - * which brings in the complete Preflight reset that breaks EC. |
| 19 | + * here. Full Tailwind Preflight must stay in a separate non-Starlight |
| 20 | + * entry file or it will reset markdown content styles like list markers. |
21 | 21 | * 4. Keep site-specific resets in @layer base (lowest priority). |
22 | 22 | * 5. Leave Starlight overrides (--sl-font-*) unlayered so they beat |
23 | 23 | * @layer starlight defaults. |
|
41 | 41 | /* Starlight ↔ Tailwind v4 bridge */ |
42 | 42 | @import '@astrojs/starlight-tailwind'; |
43 | 43 |
|
44 | | -/* Tailwind layers — preflight provides the full CSS reset (link resets, |
45 | | - box-sizing, etc.) that landing page components rely on. It lives in |
46 | | - @layer base so Starlight/EC styles in higher layers always win. */ |
47 | | -@import 'tailwindcss/preflight.css' layer(base); |
| 44 | +/* Tailwind layers for the Starlight-compatible entry. */ |
48 | 45 | @import 'tailwindcss/theme.css' layer(theme); |
49 | 46 | @import 'tailwindcss/utilities.css' layer(utilities); |
50 | 47 |
|
|
0 commit comments