A few ways of specifying per-theme colours in only CSS
Summary
This article surveys several CSS-based strategies for implementing theme-aware colors without JavaScript, including hard-coded selectors, color variables, color-mix, light-dark(), and if(). It discusses compatibility, trade-offs (maintainability, interpolation behavior, and browser support), and practical guidance for choosing a method based on theme count and browser support.