Appearance
A click switches the theme, and the preview follows.
Not quite it? Ask for a variation
Install
Writes one React component into components/illos. Nothing else to install.
npx shadcn@latest add https://illos.dev/r/flat/appearance-theme.jsonOr hand it to your agent
Claude Code, Cursor, Codex and any other coding agent can add it from the prompt.
How it moves
- three themes to choose from: Light, Dark and System.
- a click on Dark moves the selection and turns the preview dark.
- a click on Light brings the light preview back.
Where it fits
For any app with appearance settings: a feature card on dark mode, the help article on changing the theme, or a section about making the product comfortable to use. The three theme cards and the live preview show the choice and its result together, so the setting needs no explaining. As a spot it fits a feature card or a short how-to. It is free to copy and pairs with Settings toggle, Command menu and Notification inbox.
Pairs well with Settings toggle, Command menu, Notification inbox and Feature flag.
On your site
Read where product illustrations go, how to place an animated SVG and how to keep animations fast.
For developers
- File size
- 6.8 KB gzipped
- Motion
- Plays once, 3.5 s, then holds
- Reduced motion
- Shows a still
- File
- appearance-theme.svg

