Dark mode

Added

1.2.0

Dark mode

A full dark palette, plus an explicit theme switch that persists across sessions.

Every token now carries a dark value. Set theme to "auto" to follow the OS, or to "light" / "dark" to pin it.

Persisting a choice

An explicit choice is written to local storage and re-applied before first paint, so there is no flash of the wrong theme on reload.

TypeScripttheme.ts
1const dock = createDock({ target: "#app", theme: "auto" })
2
3dock.set("theme", "dark") // persists

Create a free website with Framer, the website builder loved by startups, designers and agencies.