diff options
| author | Gabriel Schneider <[email protected]> | 2026-07-31 09:59:08 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-01 15:02:08 -0300 |
| commit | 5cf16eab0a4beec196e51bdcee731b899a2af07c (patch) | |
| tree | fc2e7afaab7796b3f32773e29d26b5969727475c /vendor/themes/wolf-alabaster-dark-bg.toml | |
| parent | 560ae0a63f7b5d354bad3ba13dd8ab26b5f0a870 (diff) | |
| download | pardes-5cf16eab0a4beec196e51bdcee731b899a2af07c.tar.gz pardes-5cf16eab0a4beec196e51bdcee731b899a2af07c.zip | |
every helix and zed theme on the machine, not a curated nine
228 in the ring: 3 pardes ships plus all 214 helix runtime themes and all 11
zed variants across its three families. No exclusions.
inherits is what this cost. 76 themes need it, so the reader is two passes now,
and the merge is WHOLE-KEY rather than field-wise because helix merges the
theme body at depth 1 — the three *_transparent themes clear their parent's
background with an empty table, and a field-wise merge would leave it painted.
I had that wrong until I read helix-view/src/theme.rs.
At 214 files the generator meets themes that are SPARSE rather than broken, and
the old fatal-on-anything-missing would have rejected them. Every fallback is
helix's own rule: no background at all means wear the terminal's, so bg and fg
go null (13 themes, correctly); the twelve RGB fields that cannot be null fall
back to ghostty's default palette entries 7 and 0, which is exactly what a
pardes terminal already paints an unstyled ANSI index as. fatal is kept for
what genuinely cannot be read.
Three real bugs surfaced only at scale: #ccc shorthand doubles the nibble
(helix's rule, 58 colours), a quoted inline-table key silently dropped a
selection colour, and four themes name a cursor background EQUAL to the page
because they are about to reverse that cell — taking it painted an invisible
move box. 0 degenerate themes out of 225 now: no fg==bg, no syntax colour on
its own background, no invisible box.
Collisions get an unconditional rule rather than a clever one: a zed variant is
always <name>_zed, because both projects ship gruvbox, ayu and one, and a
conditional tag would move a name when the other source changes. A comptime
assert holds it.
Cost: no-op build 0.257 -> 0.276s, a pardes.zig change 46.8 -> 47.5s, binary
+0.98%. The generator does 217 sources in 54ms.
NextColor stays and is no longer a way to REACH a theme — but the browse got
better, not worse: the generated half sorts by name, so its neighbours are that
theme's own family. theme.golden's fourth click moved from ayu_dark to acid,
which sorting 225 names does; themesel gained a tail capture proving row 228
renders.
Diffstat (limited to 'vendor/themes/wolf-alabaster-dark-bg.toml')
| -rw-r--r-- | vendor/themes/wolf-alabaster-dark-bg.toml | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/vendor/themes/wolf-alabaster-dark-bg.toml b/vendor/themes/wolf-alabaster-dark-bg.toml new file mode 100644 index 00000000..8a461cb5 --- /dev/null +++ b/vendor/themes/wolf-alabaster-dark-bg.toml @@ -0,0 +1,65 @@ +# wolf-alabaster-dark-bg.toml +# +# Author: Wolf <[email protected]> +# Project: https://github.com/wolf/alabaster-for-helix +# +# This is the dark "BG" (background) variant of Alabaster for Helix. +# Uses background colors for syntax highlighting while keeping text mostly light grey. +# +# Based on tonsky's "Alabaster BG" variant adapted for dark backgrounds. + +inherits = "wolf-alabaster-dark" + +# SYNTAX HIGHLIGHTING - DARK BG VARIANT +# Override to use BACKGROUND colors instead of text colors +# Text stays light grey, categories distinguished by background + +"string" = { fg = "fg", bg = "string-bg" } +"string.regexp" = { fg = "fg", bg = "string-bg" } +"string.special" = { fg = "fg", bg = "string-bg-dark" } + +# Constants keep foreground color (same as base) +"constant" = { fg = "constant" } +"constant.numeric" = { fg = "constant" } +"constant.character" = { fg = "constant" } +"constant.builtin" = { fg = "constant" } + +"comment" = { fg = "fg", bg = "comment-bg" } +"comment.line" = { fg = "fg", bg = "comment-bg" } +"comment.block" = { fg = "fg", bg = "comment-bg" } + +"function" = { fg = "fg", bg = "definition-bg" } +"function.builtin" = { fg = "fg", bg = "definition-bg" } +"function.method" = { fg = "fg", bg = "definition-bg" } + +"constructor" = { fg = "fg", bg = "definition-bg" } +"type" = { fg = "fg", bg = "definition-bg" } +"type.builtin" = { fg = "fg", bg = "definition-bg" } + +# Special cases +"tag" = { fg = "fg", bg = "definition-bg" } +"namespace" = { fg = "fg", bg = "definition-bg" } + +# MARKUP overrides +"markup.heading" = { fg = "fg", bg = "definition-bg", modifiers = ["bold"] } +"markup.link.url" = { fg = "fg", bg = "string-bg", modifiers = ["underlined"] } +"markup.link.text" = { fg = "fg", bg = "definition-bg" } +"markup.quote" = { fg = "fg", bg = "comment-bg" } +"markup.raw" = { fg = "fg", bg = "string-bg" } + +# DIFF overrides +"diff.plus" = { fg = "fg", bg = "string-bg" } +"diff.minus" = { fg = "fg", bg = "error-bg" } + +[palette] +# Add background colors for dark BG variant +# Darker, subdued backgrounds that work on dark background +string-bg = "#1F3A1F" # Dark green - strings +string-bg-dark = "#2A4A2A" # Slightly brighter dark green - escape sequences +definition-bg = "#1F2F3F" # Dark blue - definitions +comment-bg = "#3F3F1F" # Dark yellow - comments +error-bg = "#3F1F1F" # Dark red - errors + +# Selection colors need to be more visible against colored syntax backgrounds +selection-primary = "#5A8FC7" # Brighter blue - visible against all syntax backgrounds +selection = "#2A4A6F" # Medium dark blue - secondary selections |
