Installation
Clone the repository and install dependencies with your preferred package manager.Running the Development Server
Start the local development server with Turbopack for fast hot module reloading:The dev server uses Next.js 15 with Turbopack for optimal performance during development.
Creating Your First Theme
Pick Your Colors
Click on any color swatch in the sidebar to open the color picker. Theme Gen provides five core colors that you can customize:
- Text — Primary text color
- Background — Page background
- Primary — Buttons, links, and key actions
- Container — Cards and container backgrounds
- Accent — Secondary highlights and CTAs
Check WCAG Contrast
Theme Gen automatically audits your palette against WCAG accessibility standards. The sidebar shows contrast ratio badges for each color pair:
- Text/Background: 7:1 (AAA)
- Primary/Background: 3:1 (AA)
- Text/Container: 4.5:1 (AA)
- Accent pairs: 3:1 (AA)
Toggle Light & Dark Mode
Click the theme toggle in the top toolbar to switch between light and dark modes. Each mode maintains its own independent color palette.Try creating complementary themes for both modes to give users a complete experience.
Sharing Your Theme
Theme Gen automatically encodes your theme in the URL. Simply copy the URL from your browser to share your palette with others.URL Format
Anyone with the URL can open it directly — no export or import needed. The theme loads instantly from the URL parameters.
Exporting Your Theme
Click the Export button in the toolbar to open the export modal. Theme Gen supports multiple formats and color systems.Export Options
Formats:- CSS Variables
- Tailwind CSS (v3 & v4)
- SCSS/Sass
- SwiftUI
- React Native
- HEX (
#4F46E5) - RGB (
rgb(79, 70, 229)) - HSL (
hsl(244, 76%, 59%)) - OKLCH (
oklch(0.58 0.21 265))
- Light only
- Dark only
- Both (with media query support)
Example: CSS Variables Export
Here’s what the exported CSS looks like for both light and dark modes:Next Steps
Live Preview
Learn how real-time preview updates work across your theme
Export Formats
Learn about all export options and how to use them in your projects
API Reference
Dive into the theme structure and color utilities
Accessibility
Understand WCAG standards and contrast requirements