Everything you need, nothing you don't.
vartheme is focused, small, and does one thing really well — beautiful theming with zero effort.
⚡
Zero Config
No setup, no configuration. Just wrap your app and you're done.
🎨
5 Built-in Themes
Default, Ocean, Forest, Sunset, Rose — beautiful out of the box.
🌙
Animated Toggle
Smooth sun to moon animation. No external icon library needed.
💾
Persistent
Theme saved in localStorage. Survives page refresh automatically.
🖥️
System Detection
Detects OS dark/light preference and applies it automatically.
📦
Under 7kb
Tiny bundle size. Won't slow down your app. Zero dependencies.
🔷
TypeScript Ready
Full TypeScript support with types included out of the box.
🎯
CSS Variables
Auto injects CSS variables. Use them anywhere in your styles.
Simple by design.
Get started in minutes. No boilerplate, no complexity.
01 — Install
02 — Wrap your app
03 — Use the hook
04 — Use CSS variables