Skip to content

Danishmk1286/tint-shade-palette-generator

Repository files navigation

🎨 Tint & Shade Palette Generator

Repo Size Stars License PRs Welcome Built With

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


✨ Preview

Tint & Shade Generator Preview


πŸ€” Why This Tool

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.


πŸš€ Features

  • 🎯 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

πŸ‘₯ Who It’s For

  • UI/UX designers building design systems
  • Front-end developers implementing consistent UI states
  • Teams working with design tokens
  • Product teams scaling brand systems

🧠 How It Works

  • 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


πŸ“¦ Output Examples

CSS Variables

:root {
  --color-primary-50: #f5faff;
  --color-primary-100: #e6f2ff;
  --color-primary-500: #3b82f6;
  --color-primary-900: #1e3a8a;
}

JSON (Design Token Style)

{
  "primary": {
    "50": "#f5faff",
    "100": "#e6f2ff",
    "500": "#3b82f6",
    "900": "#1e3a8a"
  }
}

⚑ Quick Start

Prerequisites

  • Node.js (LTS recommended)

Installation

git clone https://github.com/Danishmk1286/tint-shade-palette-generator.git
cd tint-shade-palette-generator
npm install
npm run dev

Build for Production

npm run build

Production files are generated inside the dist folder.


πŸ“ Project Structure

src/
  components/    # UI components
  utils/         # Colour generation and export logic
  hooks/         # Custom hooks
  App.tsx
  main.tsx

πŸ” Privacy & Performance

  • Runs entirely in the browser
  • No data storage
  • No external API calls
  • Static build, zero backend dependency

πŸ—Ί Roadmap

  • Tailwind config export
  • Style Dictionary export
  • Brand preset templates
  • Unit tests for colour utilities
  • Figma plugin documentation

🀝 Contributing

Contributions are welcome.

  1. Fork the repository
  2. Create a branch:
git checkout -b feature/your-feature
  1. Commit changes:
git commit -m "Add feature: description"
  1. Push:
git push origin feature/your-feature
  1. Open a Pull Request

πŸ“œ License

MIT License. See the LICENSE file for details.


⭐ Support

If this project helps you, consider giving it a ⭐ on GitHub.

About

Generate beautiful tints and shades from any hex color. Perfect for designers and developers who want consistent, accessible color palettes based on their own brand or theme.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors