finds.dev

adamwathan/theming-tailwind-demo

View on GitHub

★ 270HTMLMITupdated Nov 2019

// the take

A 2019 demo by the Tailwind creator showing how to wire CSS custom properties into Tailwind's config to support multiple themes. It predates Tailwind's own dark mode and arbitrary value support, so it's a historical artifact more than a usable starter.

The semantic naming convention (text-primary, text-inverse) is still the right mental model for themeable systems. It shows the pattern clearly in minimal code — no framework noise, just HTML/CSS/config. The README explains the approach well without padding.

Abandoned in 2019 — this is Tailwind v0.x config syntax, none of which maps to current Tailwind. Dark mode, `@layer`, `theme()`, and the `extend` key didn't exist yet in this form. The pattern itself is now fully superseded by Tailwind's built-in dark mode and the `CSS variables as design tokens` approach documented in the official docs. You'd be learning from an artifact, not a template.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
270
Forks
19
Language
HTML
License
MIT
Last commit
5 Nov 2019

// nearby

If theming-tailwind-demo isn't quite it.

All repos →