Skip to content

Adopt the Ayu Dark color scheme#31

Merged
Tannex merged 2 commits into
mainfrom
ayu-theme
Jul 19, 2026
Merged

Adopt the Ayu Dark color scheme#31
Tannex merged 2 commits into
mainfrom
ayu-theme

Conversation

@Tannex

@Tannex Tannex commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Recolors the Compa/z TUI to Ayu Dark. Values are hardcoded in a named ayu constant block in internal/compaz/view.go — no package or dependency added. The palette role structure is unchanged; this is a recolor, not a restructure.

Stacked on PR #29 (issue-22-compaz-rebrand) and merges last.

Role → Ayu mapping

Role Was (slate/teal) Now (Ayu Dark)
App background (navy) #111827 / #CCFBF1 #0B0E14 editor.bg / #E6E1CF
Panels (panel) #1F2937 / #CBD5E1 #141821 ui.panel.bg / #BFBDB6 editor.fg
Table header (header) #334155 #15283E (selection tint over bg)
Active tab teal on slate #E6B450 accent on #15283E
Popup bg / border #0B1220 / teal #2DD4BF #0F131A ui.popup.bg / #E6B450 accent
Cyan accent (names, JCL/COBOL keywords, info) #5EEAD4 #39BAE6 syntax.tag
Green (strings, success) #4ADE80 #AAD94C syntax.string
Amber (ops, warnings, PIC clauses) #FBBF24 #FFB454 syntax.func
Danger #FB7185 #F07178 syntax.markup
Muted #94A3B8 faint #ACB6BF syntax.comment, faint (≈ Ayu's 55% alpha)
Selected row teal on #263449 #E6B450 accent bold on #18324F (selection.active pre-blended over bg)
Status chip fills emerald/amber/red/cyan wells success/warn/danger/info blends of Ayu string/func/error/tag over bg

Alpha-composited Ayu values are pre-blended onto the editor background because terminal cells can't layer translucent color. scripts/tui-shot's xterm colors updated to the Ayu bg/fg (only those two values — PR #30's geometry changes are untouched). Style tests now derive SGR assertions from the palette constants instead of hardcoded fragments.

Screenshots (demo mode)

datasets
copybook records
JCL highlighting
help popup

go build ./... && go vet ./... && go test ./... all pass; gofmt clean.

🤖 Generated with Claude Code

Review follow-up

  • Popup backgrounds: popups no longer re-color their background (the elevated fill bled outside the rounded border glyphs); they keep the main background and are distinguished by border + title styling. Captures retaken, including the help popup.
  • Attribution: the palette block and README now credit the Ayu color scheme (MIT, ayu-theme/ayu-colors).

@Tannex
Tannex force-pushed the issue-22-compaz-rebrand branch from 5d01a87 to 433f76a Compare July 19, 2026 11:33
@Tannex

Tannex commented Jul 19, 2026

Copy link
Copy Markdown
Owner Author

Do we need attributions for this?

@Tannex

Tannex commented Jul 19, 2026

Copy link
Copy Markdown
Owner Author

The mixture of rounded borders and difference in background color does not work. The background color bleeds outside the border, giving a very cheap feel.

Either use borders that follow the exact cell edge if possible, or avoid re-coloring the background of popups.

@Tannex
Tannex force-pushed the issue-22-compaz-rebrand branch from 433f76a to 78fec0c Compare July 19, 2026 13:05
@Tannex
Tannex force-pushed the issue-22-compaz-rebrand branch from 78fec0c to 8cca088 Compare July 19, 2026 13:35
Tannex and others added 2 commits July 19, 2026 15:35
Replace the slate/teal palette with Ayu Dark (ayu-theme/ayu-colors),
hardcoded as a named constant block so the TUI takes no dependency.
Alpha-composited Ayu values (selection, status-chip fills) are
pre-blended onto the editor background because terminal cells cannot
layer translucent color. Stray hex values in views, status chips, and
tui-shot's xterm colors now route through the palette, and style tests
derive their SGR assertions from it instead of hardcoded fragments.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Review feedback: the elevated popup background bled outside the rounded
border glyphs, which don't fill their cells. Popups (help, favorites,
jq query) now keep the main background and are distinguished by border
and title styling alone. Palette block and README credit the Ayu color
scheme (MIT, ayu-theme/ayu-colors). Captures retaken, including the
help popup.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Base automatically changed from issue-22-compaz-rebrand to main July 19, 2026 13:58
@Tannex
Tannex merged commit 1b388ed into main Jul 19, 2026
1 check passed
@Tannex
Tannex deleted the ayu-theme branch July 19, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant