← blog

DuskRidge 0.4: Alacritty support and contrast scoring

2026-04-08 · Ellie Wagner

DuskRidge 0.4 is out with two things I've been meaning to add for a while: Alacritty theme export and WCAG contrast scoring.

Alacritty support

Alacritty uses a TOML config format that's slightly different from kitty's. The colour fields are nested under [colors] sections, and the bright/dim variants are separate tables. I spent an afternoon reading through half-a-dozen community theme files before I felt confident the schema was stable enough to target.

Export is straightforward: duskridge extract photo.jpg --format alacritty writes a .toml file you can drop straight into your config directory.

Contrast scoring

This one I'm more pleased with. After extracting a palette, DuskRidge now computes relative luminance for every pair of foreground/background candidates and flags combinations that fall below WCAG AA (4.5:1 for body text). The output is a small table in the terminal — green rows pass, yellow rows are marginal, red rows fail.

I've been using this to sanity-check palettes before committing them to my terminal config and it's already saved me from two choices I would have regretted.

What's next

I want to add a --watch mode that re-runs extraction when the source image changes, which would make it useful as a live preview tool. There's also an open issue for Ghostty support once that config format stabilises.


Also: How palette extraction works under the hood