Theming with CSS

Learn how to use CSS custom properties to create dynamic themes for your website, enhancing design flexibility and maintainability.


Ever since CSS intriduced custom properties it's been easier than ever to add theme support to your site. This is especially useful with the rise of dark mode support as more and more people optimise their devices.

The beauty of CSS custom properties is that you can change them based on a selector or media query which was never supported in SCSS and similar frameworks so it's great to see CSS not only incorporate a highly requested feature but actually improve it too.