Skip to content

evedes/spektr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spektr

A terminal-based 16 million color picker built with Rust. Navigate a full HSL palette grid, adjust lightness, and see hex, RGBA, and OKLCH values in real time.

Rust

Features

  • Full HSL color palette with half-block rendering for double vertical resolution
  • Lightness slider with live gradient preview
  • Color info panel showing hex, RGB, RGBA, and OKLCH values
  • Cursor with automatic contrast (white on dark, black on light)
  • Vim-style navigation (hjkl) alongside arrow keys

Requirements

  • Rust 1.85+
  • A true-color terminal (iTerm2, Kitty, Alacritty, WezTerm, Ghostty)

Usage

cargo run

Controls

Key Action
/ h j k l Move cursor on palette
Tab Toggle focus between palette and lightness slider
(slider focused) Adjust lightness ±0.01
Shift+← Shift+→ Adjust lightness ±0.05
Shift+arrow (palette focused) Move cursor by 5
q / Esc Quit

Layout

┌──────────────────────────────────────────────────┐
│              Color Palette Grid                  │
│         X = Hue (0–360°), Y = Sat (1→0)         │
│         Half-block (▀) rendering                 │
│         Cursor with contrast marker              │
├──────────────────────────────────────────────────┤
│ Lightness: [gradient bar ▏ indicator]       0.50 │
├──────────────────────────────────────────────────┤
│ ████  #FF6B2B                                    │
│ RGB: 255, 107, 43    RGBA: 255, 107, 43, 255    │
│ OKLCH: L=0.652  C=0.198  h=46.3°                │
└──────────────────────────────────────────────────┘

License

MIT

About

A terminal color picker with 16M colors. Navigate an HSL palette, adjust lightness, and get hex, RGB, and OKLCH values — all from your terminal.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages