URL-Based Sharing
Theme Gen automatically encodes your current theme in the URL, making sharing as simple as copying the link.URL Structure
The URL contains two parameters:colors- Compact hex values for the 5 main colorsmode- Current theme mode (lightordark)
URL Color Encoding
Color Format
The 5 main colors are encoded as 6-character hex codes (without This compact format keeps URLs short while encoding all essential theme data.
#) separated by hyphens:Derived Colors
The URL only stores the 5 main colors. All other colors are derived automatically when the theme loads:This ensures consistency across all theme instances while keeping the URL manageable.
How to Share
- With Your Team
- In Documentation
- With Clients
Share via URL
- Create or customize a theme
- Copy the URL from your browser’s address bar
- Share via Slack, email, or your project management tool
- Include both light and dark URLs
- Add context about what the theme is for
- Use URL shorteners for cleaner sharing
localStorage Persistence
Theme Gen automatically saves your work to browser localStorage, so you never lose your progress.What Gets Saved
Current Theme
Current Theme
Your active theme (light or dark) is saved automatically:When you return to Theme Gen, you’ll see the same mode you were working with.
Custom Color Palettes
Custom Color Palettes
Both light and dark theme colors are saved as you modify them:This means:
- Your light mode colors persist when you switch to dark
- Your dark mode colors persist when you switch to light
- Both are available when you return to Theme Gen
URL Takes Priority
URL Takes Priority
When you visit Theme Gen with a URL containing colors, those colors take priority over localStorage:This ensures shared URLs always display the exact intended colors, while localStorage provides continuity for your personal work.
Benefits
- No account required - Start creating immediately
- Automatic saving - Changes persist as you work
- Per-browser storage - Each browser/device maintains its own themes
- Privacy-focused - Data stays on your device
localStorage data persists until you clear your browser data. If you need themes available across devices, use the Saved Themes feature and export them.
Saved Themes
The Saved Themes feature lets you bookmark your favorite themes for quick access.Saving a Theme
Open Saved Themes Panel
Click the Bookmark icon in the toolbar. A badge shows how many themes you’ve saved.
Name Your Theme
Enter a descriptive name in the input field:
- “Brand Colors - Light”
- “Dashboard Dark Mode”
- “Accessible High Contrast”
- “Client Presentation Option B”
Loading a Saved Theme
- Open the Saved Themes panel (Bookmark icon)
- Click on any saved theme
- The theme loads instantly, preserving:
- All 18 color values
- Original mode (light/dark)
- Color relationships
Loading a saved theme adds your current theme to the undo history, so you can press Ctrl+Z to switch back.
Deleting Saved Themes
- Open the Saved Themes panel
- Find the theme you want to remove
- Click the delete/trash icon
- The theme is removed from localStorage
Use Cases
Brand Variations
Brand Variations
Save multiple variations of your brand theme:
- “Brand - Main (Light)”
- “Brand - Main (Dark)”
- “Brand - High Contrast (Light)”
- “Brand - High Contrast (Dark)”
- “Brand - Marketing (Light)”
- “Brand - Marketing (Dark)”
Client Presentations
Client Presentations
Save multiple options before a client meeting:
- “Client XYZ - Option A Bold”
- “Client XYZ - Option B Subtle”
- “Client XYZ - Option C Energetic”
Seasonal Themes
Seasonal Themes
Create and save themes for different seasons or campaigns:
- “Summer 2024 - Bright”
- “Fall 2024 - Warm”
- “Winter 2024 - Cool”
- “Spring 2025 - Fresh”
Accessibility Testing
Accessibility Testing
Save baseline themes for testing:
- “WCAG AAA Reference Light”
- “WCAG AAA Reference Dark”
- “High Contrast - Vision Impaired”
- “Colorblind Safe - Deuteranopia”
Storage Details
SavedTheme Interface:Saved themes are stored in localStorage, which typically has a 5-10MB limit. Each theme is ~1KB, so you can save hundreds of themes without issues.
Exporting Saved Themes
To use saved themes across devices or share them with your team:- Load a saved theme
- Click the Export button
- Copy the generated code
- Store in version control or documentation
- Load a saved theme
- Copy the URL from your browser’s address bar
- Share or bookmark
Backing Up Saved Themes
Backing Up Saved Themes
Since saved themes are stored in browser localStorage, you can back them up:Manual Backup:
- Open browser DevTools (F12)
- Go to Application (Chrome) or Storage (Firefox) tab
- Find localStorage → Theme Gen domain
- Copy the value of
userSavedThemes - Save to a file
- Open browser DevTools
- Go to localStorage
- Set
userSavedThemesto your backed-up value - Refresh Theme Gen
Consider storing your most important theme URLs in your project README as a lightweight backup solution.
Best Practices
Use Descriptive Names
When saving themes, use names that include:
- Purpose: “Dashboard”, “Marketing Site”, “Mobile App”
- Variant: “High Contrast”, “Subtle”, “Bold”
- Mode: “Light” or “Dark”
Save Before Experimenting
Before making major changes:
- Save your current theme
- Make experimental changes
- Compare with saved version
- Keep the better one
Document URLs in Your Project
Add Theme Gen URLs to your project documentation:This makes it easy for the team to modify and export themes.
Troubleshooting
My saved themes disappeared
My saved themes disappeared
Saved themes are stored in browser localStorage. They can be lost if:
- You cleared browser data/cookies
- You’re using incognito/private mode
- You’re on a different browser or device
- Copy important theme URLs to your project README
- Export themes and store in version control
- Use browser sync if available
URL isn't loading my theme
URL isn't loading my theme
Check that:Invalid:
- The URL is complete (includes both
colorsandmodeparameters) - Color values are valid 6-character hex codes
- There are exactly 5 color values separated by hyphens
- The URL hasn’t been truncated by email or chat apps
Colors don't match after sharing
Colors don't match after sharing
If colors look different on another person’s device:
- Check display calibration and color profiles
- Verify both are viewing the exact same URL
- Compare hex values in the export modal
- Some displays (especially older ones) may not support the full color gamut
Can't save new themes
Can't save new themes
If the save button isn’t working:
- Check that localStorage isn’t disabled
- Verify you’re not in private/incognito mode
- Clear old saved themes if you have many (localStorage has size limits)
- Try a different browser
Next Steps
Creating Themes
Learn the theme creation workflow
Exporting Themes
Export your themes in multiple formats
Accessibility
Understand WCAG standards and contrast requirements