A lightweight, intelligent theming widget that automatically adapts websites with beautiful fonts and color palettes. Works seamlessly with both Tailwind CSS and vanilla CSS sites.
See Gentle Themer in action with a full Tailwind CSS demo page. Use the widget controls to instantly transform the entire page with beautiful themes!
- π Universal Compatibility: Automatically detects and works with both Tailwind CSS and vanilla CSS
- π§ Intelligent Analysis: Smart element detection with contrast verification
- π¨ Beautiful Palettes: 10+ curated color schemes with light/dark variants
- π€ Premium Fonts: 16+ Google Fonts across sans-serif, serif, and display categories
- β‘ Zero Configuration: Drop in one script tag and you're ready to go
- ποΈ User Controls: Auto-cycle, manual randomization, and reset options
- π± Responsive Widget: Clean, accessible floating widget interface
<!-- Include both config and main script -->
<script src="https://stylespinjs.com/cdn/gentle-themer.min.js"></script><!-- Include config first, then main script -->
<script src="config.js"></script>
<script src="gentle-themer.js"></script>npm install gentle-themerDownload the latest release from the GitHub releases page or clone this repository.
That's it! The widget will automatically appear in the bottom-right corner of your website.
- Detection: Automatically detects if your site uses Tailwind CSS
- Analysis: Intelligently identifies text, background, and action elements
- Application: Applies themes using appropriate method (Tailwind classes or CSS)
- Verification: Ensures proper contrast ratios for accessibility
- Slate Gray
- Ocean Blue
- Fresh Green
- Royal Purple
- Sunset Orange
- Rose Pink
- Electric Cyan
- Golden Amber
- Ocean Teal
- Deep Indigo
- Slate Dark
- Blue Dark
- Green Dark
- Inter, Poppins, Manrope, Public Sans, Lato, Montserrat, Work Sans, Rubik, DM Sans
- Lora, Playfair Display, Merriweather
- Oswald, Bebas Neue
- JetBrains Mono
# Install dependencies
npm install
# Build CDN bundle
npm run build-cdn
# Create minified version
npm run build
# Serve locally for testing
npm run servegentle-themer/
βββ dist/
β βββ gentle-themer.min.js # Production minified
β βββ gentle-themer.bundle.js # Development bundle
βββ config.js # Configuration file
βββ gentle-themer.js # Main script
βββ landing.html # Demo page
βββ package.json # Package configuration
βββ README.md # Documentation
- π² Random: Apply a random theme combination
βΆοΈ Auto-Cycle: Automatically cycle through themes (3.5s intervals)- π Rescan: Re-analyze page and revert to original state
- Chrome/Chromium 88+
- Firefox 85+
- Safari 14+
- Edge 88+
- Agencies: Quickly demonstrate different design directions to clients
- Developers: Test design system flexibility and contrast ratios
- Content Creators: Add visual variety to presentations and demos
- Accessibility Testing: Verify readability across different color schemes
The widget uses the configuration defined in config.js. You can customize:
- Available fonts and their properties
- Color palettes for both Tailwind and CSS modes
- Auto-cycle timing interval
- Tailwind class mappings
MIT License - feel free to use in personal and commercial projects.
Contributions are welcome! This is a portfolio project and I'd love to see it grow with community input.
- Fork this repository
- Clone your fork locally
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Test your changes with the demo page
- Commit your changes (
git commit -m 'Add amazing feature') - Push to your branch (
git push origin feature/amazing-feature) - Open a Pull Request
- π¨ New color palettes
- π€ Additional font combinations
- π Better international font support
- π± Mobile widget improvements
- β‘ Performance optimizations
- π― Framework integrations (React, Vue, etc.)
- π Documentation improvements
- π Bug fixes
All contributions, big or small, are appreciated!
- π Issues: GitHub Issues
- π¬ Discussions: GitHub Discussions
- π Documentation: stylespinjs.com
- π§ Email: alex@stylespinjs.com
This is a portfolio project showcasing:
- Advanced JavaScript DOM manipulation
- CSS-in-JS and Tailwind CSS integration
- Responsive widget design
- Accessibility considerations
- Modern build tools and deployment
Feel free to explore the code, use it in your projects, and contribute improvements!
Made with β€οΈ for the web development community
Perfect for agencies, developers, content creators, and anyone who needs quick, beautiful theming options.