Generate consistent, production-ready 50β900 tint and shade scales from a single base colour.
π Live Demo: https://tintandshadesgenerator.com/
π» GitHub: https://github.com/Danishmk1286/tint-shade-palette-generator
Creating colour palettes manually is slow and inconsistent.
Designers need predictable steps.
Developers need structured output.
Teams need repeatable systems.
Without structure:
- Inconsistent colour states
- Weak visual hierarchy
- Time wasted on trial and error
- Harder accessibility checks
This generator creates harmonious, structured scales in seconds.
- π― Structured 50β900 tint and shade scales
- π Adjustable tint and shade intensity
- π¨ Base HEX input with instant preview
- π One-click copy for swatches
- π§© Copy CSS custom properties
- πͺ Export JSON (design token format)
- π Dark mode support
- π± Responsive layout
- π Fully client-side, no backend
- UI/UX designers building design systems
- Front-end developers implementing consistent UI states
- Teams working with design tokens
- Product teams scaling brand systems
- Converts base HEX into HSL
- Preserves hue for colour harmony
- Adjusts lightness to create smooth tint (lighter) and shade (darker) steps
- Outputs production-ready structured scale
Scale format:
50 100 200 300 400 500 (base) 600 700 800 900
:root {
--color-primary-50: #f5faff;
--color-primary-100: #e6f2ff;
--color-primary-500: #3b82f6;
--color-primary-900: #1e3a8a;
}{
"primary": {
"50": "#f5faff",
"100": "#e6f2ff",
"500": "#3b82f6",
"900": "#1e3a8a"
}
}- Node.js (LTS recommended)
git clone https://github.com/Danishmk1286/tint-shade-palette-generator.git
cd tint-shade-palette-generator
npm install
npm run devnpm run buildProduction files are generated inside the dist folder.
src/
components/ # UI components
utils/ # Colour generation and export logic
hooks/ # Custom hooks
App.tsx
main.tsx
- Runs entirely in the browser
- No data storage
- No external API calls
- Static build, zero backend dependency
- Tailwind config export
- Style Dictionary export
- Brand preset templates
- Unit tests for colour utilities
- Figma plugin documentation
Contributions are welcome.
- Fork the repository
- Create a branch:
git checkout -b feature/your-feature- Commit changes:
git commit -m "Add feature: description"- Push:
git push origin feature/your-feature- Open a Pull Request
MIT License. See the LICENSE file for details.
If this project helps you, consider giving it a β on GitHub.
