Open-source CSS-based theme picker that lets you integrate theme switching into any web project with ease.
theme-picker gives developers a clean and simple way to add theme selection to their websites or apps. It uses plain CSS themes and lightweight JavaScript logic so you can plug it into any stack.
/
├── app/
├── components/
├── docs/
├── lib/
├── public/
├── themes/
├── types/
├── package.json
├── tsconfig.json
├── postcss.config.mjs
├── next.config.ts
├── eslint.config.mjs
└── README.md
npm install
npm run dev
import { applyTheme } from 'theme-picker/lib';
import 'theme-picker/themes/dark.css';
import 'theme-picker/themes/light.css';
applyTheme('light'); // or 'dark'- Easy runtime theme switching
- CSS-based themes
- Works with any JS framework
- Extendable theme system
- Light and clean structure
Pull requests and issues are welcome.
This project is open-source and free to use.