My latest book "Backend Developer in 30 Days" is out! You can get it at Amazon
← Back to all posts

Pedro's Tech Blog

Pedro Marquez

Written by Pedro Marquez who lives and works in Austin, Texas, doing all things front-end (and some back-end too).

Tag: prefers-color-scheme

A hero image for this post about state management

Building a dark-mode theme with CSS variables

July 29, 2022

Native CSS variables make it really easy to build themes for a web app, including 'dark mode'

In this post we describe how to enable themes with just CSS and HTML, no dependencies needed.