Skip to content

Repository files navigation

🎨 Spectrum

An intuitive color palette editor built with Avalonia UI. Create, generate, and export beautiful color palettes for your design projects.

.NET Avalonia Platform License Latest Release Downloads Stars Issues


Spectrum app screenshot Spectrum app screenshot


✨ Features

  • Spacebar palette generation — press Space anywhere in the window to regenerate every unlocked swatch, Coolors-style
  • Color harmony engine — generate from Complementary, Analogous, Triadic, Split-Complementary, Tetradic, or Monochromatic rules, or roll fully random colors
  • Automatic color naming — every swatch is matched against a curated CSS/X11 + extended color-name database using a redmean-weighted RGB distance (the same approach behind ntc.js)
  • HSL + Temperature color panel — live gradient-backed sliders for Hue, Saturation, Brightness, and warm/cool Temperature tinting
  • Lock & shuffle — lock swatches you want to keep, then shuffle the rest
  • Drag-to-reorder — rearrange swatches directly on the board
  • Undo / redo — full history across generate, add, remove, clear, and image-extract actions
  • Color blindness simulation — preview the whole board under Protanopia, Deuteranopia, Tritanopia, or Achromatopsia
  • Extract palette from image — histogram-based dominant color extraction from any image file
  • Export — JSON, CSS custom properties, SCSS variables, Tailwind config, or plain text, with one-click clipboard copy
  • Light / dark theme toggle
  • Studio-style monochrome UI driven entirely by a design-token stylesheet (Styles/Theme.axaml)

🛠️ Tech Stack

🚀 Getting Started

Prerequisites

Run it

git clone https://github.com/Megaloduck/Spectrum.git
cd Spectrum
dotnet restore
dotnet run --project Spectrum.csproj

Or open Spectrum.slnx in your IDE of choice (Visual Studio, Rider, VS Code) and hit run.

📦 Download

Get the latest release:

Download Latest Release

System Requirements

  • Windows 10 or later
  • No additional dependencies required (self-contained executable)

⌨️ Usage

Action How
Generate a new palette Press Space, or click Press Space to Harmonize
Lock a color Click the lock icon on a swatch
Reorder colors Drag a swatch card
Simulate color blindness Color Blind dropdown in the toolbar
Extract colors from an image Extract from Image in the toolbar
Export a palette Export Palette in the footer, pick a format, copy

🤝 Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

📄 License

This project is licensed under the MIT License — see the LICENSE file for details.


Made by @Megaloduck with ❤️ using Avalonia UI

About

an intuitive color palette editor built with Avalonia UI. Create, generate, and export beautiful color palettes for your design projects.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages