Skip to content

Upgrading breaks css #15860

Answered by wongjn
PeterTSmith1997 asked this question in Help
Jan 25, 2025 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

In src/index.css, your theme configuration should be inside @theme, not :root:

-:root {
+@theme {
   --color-primary-light: #e3f2fd; /* Light Blue */
   --color-primary: #2196f3; /* Primary Blue */
   --color-primary-dark: #0b79d0; /* Dark Blue */
   --color-secondary: #ffffff; /* White */
 }
 body {

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@PeterTSmith1997
Comment options

@wongjn
Comment options

wongjn Jan 25, 2025
Collaborator

@PeterTSmith1997
Comment options

@wongjn
Comment options

wongjn Jan 25, 2025
Collaborator

Answer selected by PeterTSmith1997
@PeterTSmith1997
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants