Reusable React theme picker component.
npm install react-theme-selectReusable React theme picker component.
Jump to the theme gallery.
``bash`
pnpm add react-theme-select
`tsx
import { ThemeSelect, defaultPalettes } from "react-theme-select";
const themes = Object.keys(defaultPalettes);
setTheme={setTheme}
availableThemes={themes}
/>
`
This component expects CSS variables for --background, --surface, --text, --border, --primary, --success, --warning, --danger, --info, and optionally --muted.
See examples/basic/README.md for a full working snippet.
`bash`
pnpm run build
The build outputs ESM to dist/ and copies the CSS module alongside the JS output.
Generate screenshots with:
`bash`
pnpm run screenshots
If Playwright browsers are missing:
`bash``
pnpm exec playwright install chromium
Show all themes



















