Article

Why Theme Systems Should Stay Small

A note on keeping dark mode implementation simple and predictable.

Dark mode systems become fragile when too many components invent their own color rules.

Prefer semantic tokens

If components ask for --text, --border, and --panel, swapping the theme becomes a root concern instead of a component concern.

Avoid heavy runtime logic

A small boot script plus CSS variables is usually enough for a personal publishing site.