Skip to content

Commit e3ecf53

Browse files
fix: move @import out of @layer to fix SVG figure styles on homepage
@import rules inside @layer blocks are invalid CSS and get ignored by browsers at runtime. This caused components.css and figures.css to never load, rendering the WhitepaperHero SVG as a solid black rectangle. Move both imports to the top of style.css using the layered import syntax (@import '...' layer(components)) which is the correct way to assign imported styles to a cascade layer. Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 53259cc commit e3ecf53

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

docs/.vitepress/theme/style.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Modern CSS Architecture with Cascade Layers
44
============================================ */
55

6+
/* @import rules must come before all other rules */
7+
@import './styles/components.css' layer(components);
8+
@import './styles/figures.css' layer(components);
9+
610
/* Layer Declaration - Order defines priority */
711
@layer reset, tokens, fonts, base, layout, components, utilities, overrides;
812

@@ -544,9 +548,7 @@
544548
Layer: Components
545549
============================================ */
546550
@layer components {
547-
/* Import component styles */
548-
@import './styles/components.css';
549-
@import './styles/figures.css';
551+
/* Component styles imported at top of file via @import ... layer(components) */
550552
}
551553

552554
/* ============================================

0 commit comments

Comments
 (0)