:root. That is why a Customizer change updates the whole site — including dark mode — without rebuilding a stylesheet.
Where the tokens live
Color tokens
Using the tokens
Dark mode
The theme remaps tokens when dark mode is active rather than applying a filter.Where to put your CSS
Three options, in order of durability.1. Additional CSS — quick, no risk
Appearance → Customize → Additional CSS Best for one or two rules. It loads after the theme’s stylesheets and survives updates. If you find yourself adding more than a few rules, move to a child theme.2. Child theme style.css — the normal choice
3. A compiled build — for larger projects
If you use Sass or Tailwind, compile to a file in your child theme and enqueue it with a dependency on the parent stylesheet.Beating specificity
When your rule does not apply, you are almost always losing a specificity fight.Check the selector order first
Check the selector order first
Use your browser’s developer tools to see which rule wins and where it comes from. This answers the question in seconds.
Prefer tokens over overrides
Prefer tokens over overrides
Setting
--vara-primary in your own CSS restyles everything using that token. Overriding individual component selectors means chasing many rules instead of one.Load after, do not out-specify
Load after, do not out-specify
A dependency plus later load order is cleaner than
!important chains.Use !important sparingly
Use !important sparingly
If you must, keep it to a single, well-commented declaration.
