An intuitive color palette editor built with Avalonia UI. Create, generate, and export beautiful color palettes for your design projects.
Palette management
- Palette library sidebar: create, inline-rename, duplicate, delete, pin/favorite, search, and filter (All / Pinned / Recent)
- Autosave with dirty state (750 ms debounce), atomic writes, crash-recovery journal, rotating backups, and per-palette version history with one-click restore
- Tabs for open palettes, whole-library import/export, and detach the palette board into its own window (the board only — a live second view, not a second copy of the app)
Swatch & color editing
- Full spectrum picker dialog (saturation/value plane + hue & opacity sliders) with HEX / RGB / HSL / HSV input, plus live LAB/LCH/OKLCH readouts
- Manual hex entry, alpha control, copy in 9 formats, paste from clipboard (any notation), swatch labels, duplicate, inline large preview
Color picking
- System-wide eyedropper with pixel-grid magnifier and global hotkey (default
Ctrl+Alt+P, rebindable) — Windows native interop, fully local - In-app eyedropper for exact pixels of any image, plus histogram-based extraction from images
- Recent-picked-colors history (persisted, click to reuse)
Color science
- Conversions: HEX, RGB, HSL, HSV, LAB, LCH, OKLCH — live in the inspector
- Harmonies: complementary, analogous, triadic, tetradic, split-complementary, monochromatic + random-with-lock
- Tints / shades / tones generators, palette-from-base, palette-from-image
- WCAG AA/AAA contrast checker and APCA (Lc) verdicts, live for the base color
- Contrast matrix — every text-on-background pair scored at once: color-coded WCAG cells, APCA in the tooltip, one-click CSV copy
- Color blindness simulation (Protanopia, Deuteranopia, Tritanopia, Achromatopsia)
Import / export (local files only)
- Import: JSON, CSS variables, GPL (GIMP), ASE (Adobe), ACO (Photoshop), image extraction
- Export: JSON, CSS, SCSS, LESS, Tailwind, SVG, PNG / JPG swatch sheet, ASE / GPL / ACO, plain text, Prompt (a Markdown brief for AI assistants) — copy to clipboard or save to file (the Export workspace holds the format picker, the text preview and a live preview of the sheet image)
Desktop UX
- Workspaces — Studio · Preview · Analyze · Export (
Ctrl+1…4) plus Settings (Ctrl+,): the top app bar switches the shell so each task only shows the panels it needs, instead of everything at once — Settings is a full workspace too, not a modal dialog, and returns you to the workspace you came from - Sidebar + resizable/collapsible panels (splitters everywhere), Ctrl+K command palette, full keyboard-shortcut map, tabs, system tray with quick access, detachable palette board, rich tooltips with color info
Preview & visualization
- Preview workspace scenes as tabs — Dashboard · Landing · Mobile · Chart · Poster — each rendered from a role map (Primary, Accent, Surface, Background, Text, Border), with its guidance kept outside the mockup so the scene stays judgeable
- Export as a prompt — the Preview toolbar's Prompt button copies (or saves as
.md) a Markdown brief any AI assistant can build from: the palette, a CSS-token block, the resolved role map (so it matches the scene on screen, color-blind simulation included), the scene guidance and a short set of ground rules - Light / dark preview switch (toolbar and dock) — the same role map painted on a near-white or a near-black canvas; the dark canvas is set at a fixed OKLCH lightness so a bright and a dark palette stay visibly different, instead of both collapsing to black
- Custom canvas colors per theme in the dock: pick the light and dark canvas independently (the app's color picker), with Auto derived from the palette accent and a per-theme reset; Surface, Text and Border re-derive from whatever canvas is in play
- Scene fidelity: pages carry window chrome; the dashboard has an app bar, three KPI cards, activity and team panes; the landing page pairs a hero with a palette panel, logo strip and testimonial; the phone is a real list with filters and a tab bar; the chart scene carries four charts — vertical bars with a target rule, a stacked channel split, ranked pages and a trend line with an area fill — all painted from the roles; poster small print is a derived on-primary color rather than dimmed text; scenes honour the color-blind simulation
- Dock as scene setup: theme segments, light/dark canvas pickers, a grouped role map with per-role hints and Reset all, and labelled Lighter / Darker palette variants
- Live UI mockup (buttons, cards, body text) rendered in your palette
- Empty-state preview that says so instead of rendering Auto fallbacks for a palette with no colors
- Side-by-side comparison with any palette in the library, swatch zoom view, contrast overlay badges (WCAG + APCA) on every card
- Row / Grid / List / Compact view modes, dark/light variant generator
- Swatch cards read as color + name + hex at rest; the per-swatch action rail fades in on hover (lock stays visible)
- Gradient studio — multi-stop linear/radial gradients with a live CSS readout, Copy CSS / Save SVG / Save PNG, and one click to send the stop colors into the palette (undoable)
Storage & settings
- JSON file storage (default) and SQLite storage behind one interface, with migration between them; autosave, backups, version history, whole-library import/export
- Settings: theme, accent color, density, default copy/export formats, hotkey configuration, storage location, reset / clear data
Technical
- Cross-platform Avalonia UI (.NET 9), MVVM (CommunityToolkit), offline-first (no background network calls; update check runs only when you click it), accessibility labels on swatches, light/dark themes
- xUnit test suite over the color math, WCAG/APCA contrast, copy-format round-trips and every import/export codec (ASE/ACO/GPL/CSS/JSON), with GitHub Actions CI building and testing on Linux and Windows
- Studio-style monochrome UI driven entirely by a design-token stylesheet (
Styles/Theme.axaml), with a runtime accent override
- Avalonia UI 11 (.NET 9, cross-platform desktop)
- MVVM via CommunityToolkit.Mvvm source generators (
[ObservableProperty],[RelayCommand]) - Material.Icons.Avalonia for iconography
git clone https://github.com/Megaloduck/Spectrum.git
cd Spectrum
dotnet restore
dotnet run --project Spectrum.csprojOr open Spectrum.slnx in your IDE of choice (Visual Studio, Rider, VS Code) and hit run.
| 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 (any view mode) |
| Simulate color blindness | Analyze workspace (Ctrl+3) → Color Blind dropdown in the toolbar |
| Extract colors from an image | Extract from Image in the toolbar |
| Build a gradient | Gradient in the Studio toolbar (Ctrl+1) → copy CSS, save SVG/PNG, or add its stops to the palette |
| Score every color pair | Matrix in the Analyze toolbar (Ctrl+3) → WCAG cells + APCA tooltips + CSV copy |
| Screen eyedropper | Screen button or Ctrl+Alt+P (click anywhere to pick) |
| Export a palette | Export workspace (Ctrl+4) → build a preview, copy, Save file…, or preview the swatch sheet and Save PNG… / Save JPG… |
| Export as a prompt | Preview toolbar (Ctrl+2) → Prompt → Copy prompt or Save prompt as .md… (or pick Prompt as the format in Export) |
| Command palette | Ctrl+K |
| Switch workspace | Ctrl+1 Studio · Ctrl+2 Preview · Ctrl+3 Analyze · Ctrl+4 Export |
| Undo / redo | Ctrl+Z / Ctrl+Y |
| Save / load a palette file | Ctrl+S / Ctrl+O |
| New palette | Ctrl+N |
| Duplicate / delete selected swatch | Ctrl+D / Delete |
| Open color picker | Click the big base-color preview, or the palette icon on a swatch |
| Collapse inspector | Ctrl+I |
| Settings | Ctrl+, or the gear — opens the Settings workspace, Esc returns |
| Move / maximize the window | Drag the app bar, or double-click it — the window draws its own title bar, with Minimize / Maximize / Close in the app bar's top-right corner |
| Export to file / swatch sheet | Ctrl+E / Ctrl+J |
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License — see the LICENSE file for details.

