Skip to content

dcog989/Color-Sets

Repository files navigation

Color Sets

An interactive color palette viewer for designers and developers. It includes CSS Named Colors, Tailwind, Windows Terminal, Material Design, etc..

Go to Comprehensive Color Sets.

Comprehensive Color Sets Screenshot

Features

  • Extensive Color Palettes:
    • W3C CSS Named Colors
    • Material Design (500)
    • Tailwind CSS Default (500)
    • Solarized
    • Windows Terminal / PowerShell
    • Tableau 20
    • Resistor Color Code
    • xterm-256
  • Global Search: Instantly filter all color sets by name or hex code.
  • Smart Sorting: Order colors by Name, Hue, or Luminosity.
  • Interactive UI:
    • Click to Copy: Copy color names or hex codes instantly.
    • Toast Notifications: visual feedback for actions.
    • Theming: Switch between Light, Dark, or System-preferred modes.
  • Bulk Actions:
    • Copy all color names from a set.
    • Copy a set as a CSS Variable theme block.
  • Accessibility & Performance:
    • WCAG AA compliant contrast ratios for text.
    • Full keyboard navigation support.
    • Optimized rendering for large lists using CSS content-visibility.
    • Lighthouse 100 for all categories.

Tech Stack

  • Framework: Svelte 5 (using Runes for fine-grained reactivity).
  • Build Tool: Vite.
  • Linting/Formatting: Biome.
  • Language: TypeScript.
  • Styling: Native CSS Variables / Custom Properties.
  • Color Logic: GoatColor library (Hex, HSL, OKLCH, Luminance).

Development

  1. Install dependencies:

    npm install
  2. Start the development server:

    npm run dev
  3. Build for production:

    npm run build
  4. Preview the build:

    npm run preview

Project Structure

  • src/App.svelte: Main application entry and global state (search, theme).
  • src/lib/ColorSet.svelte: Component for rendering individual palettes with filtering logic.
  • src/lib/ColorItem.svelte: Individual color swatch component with interaction logic.
  • src/lib/data/colorSets.ts: Definitions for all color palettes.
  • src/lib/utils/GoatColor.ts: Color parsing and conversion utility.
  • src/app.css: Global styles and CSS variables.

License

MIT License

About

An interactive viewer for developer and designer color palettes, including CSS Named Colors, Tailwind, Windows Terminal, Material Design, etc..

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors