summaryrefslogtreecommitdiff
path: root/vendor/themes/omicron_light.toml
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-31 09:59:08 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:08 -0300
commit5cf16eab0a4beec196e51bdcee731b899a2af07c (patch)
treefc2e7afaab7796b3f32773e29d26b5969727475c /vendor/themes/omicron_light.toml
parent560ae0a63f7b5d354bad3ba13dd8ab26b5f0a870 (diff)
downloadpardes-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/omicron_light.toml')
-rw-r--r--vendor/themes/omicron_light.toml115
1 files changed, 115 insertions, 0 deletions
diff --git a/vendor/themes/omicron_light.toml b/vendor/themes/omicron_light.toml
new file mode 100644
index 00000000..1cdcd35b
--- /dev/null
+++ b/vendor/themes/omicron_light.toml
@@ -0,0 +1,115 @@
+# Author: Ricardo Fernández Serrata <[email protected]>
+
+error = "err"
+warning = "warn"
+hint = "diag"
+info = "diag"
+diagnostic = { underline = { color = "ghost", style = "curl" } }
+"diagnostic.error" = { underline = { color = "err", style = "curl" } }
+"diagnostic.warning" = { underline = { color = "warn", style = "curl" } }
+"diagnostic.deprecated" = { fg = "code_unsafe", bg = "code_bg_unsafe", modifiers = [
+ "crossed_out",
+] }
+
+"ui.background" = { bg = "bg" }
+"ui.window" = { bg = "bg_ui" }
+"ui.gutter" = { bg = "bg_ui" }
+"ui.linenr" = "default_weak"
+"ui.linenr.selected" = "default"
+"ui.text" = "default"
+"ui.text.focus" = { bg = "sel" }
+# secondary
+"ui.cursor" = { fg = "#eee", bg = "#333" }
+# it only uses 1 cell, and it must be skimmable,
+# so force max contrast
+"ui.cursor.primary" = { fg = "#fff", bg = "#000" }
+"ui.cursor.match" = { bg = "#ccc" }
+"ui.debug" = "default"
+# it feels questionable, but it's more consistent and clean than `reversed`;
+# some web-browsers do the same
+"ui.selection" = { fg = "#ddd", bg = "#555" }
+"ui.cursorline" = { bg = "sel_weak" }
+"ui.cursorcolumn" = { bg = "sel_weak" }
+"ui.virtual" = "ghost"
+"ui.virtual.ruler" = { bg = "sel_weak" }
+"ui.virtual.inlay-hint" = "ghost"
+# these are ephemeral and user-controllable,
+# are not part of the buffer,
+# should be skimmable,
+# so override FG & BG to guarantee contrast
+# while also signaling that they are special text
+"ui.virtual.jump-label" = { fg = "#000", bg = "sym" }
+"ui.statusline" = { fg = "default", bg = "bg_ui" }
+"ui.bufferline" = { fg = "default", bg = "bg_ui" }
+"ui.bufferline.active" = { bg = "sel", modifiers = ["bold"] }
+"ui.help" = { fg = "doc", bg = "bg_ui" }
+"ui.highlight" = { bg = "sel" }
+"ui.menu" = { fg = "code", bg = "bg_ui" }
+"ui.menu.selected" = { bg = "sel" }
+"ui.popup" = { fg = "#000", bg = "#ccc" }
+"ui.picker.header" = { modifiers = ["bold", "underlined"] }
+
+
+# Tree-Sitter scopes (syntax highlight)
+
+# NOTE: builtin HTML ones can be trivially auto-checked,
+# but custom ones (contain hyphens) need highlighting.
+#"attribute" = {}
+#"tag" = {}
+"tag.error" = { fg = "err", underline = { style = "line" } }
+"constant" = "literal"
+# TO-DO: escapes need highlight, but not unsafe
+"constant.character.escape" = "literal_unsafe"
+# floats are a plague!
+# https://github.com/you-dont-need/You-Dont-Need/issues/13
+"constant.numeric.float" = { fg = "literal_unsafe", bg = "literal_bg_unsafe" }
+"string" = "literal"
+"string.regexp" = { fg = "literal_unsafe", bg = "literal_bg_unsafe" }
+"string.special" = "sym"
+"comment" = "doc"
+# some are mutable and can be misused without triggering warns
+#"variable.builtin" = "literal_unsafe"
+"punctuation" = "default_weak"
+# beware of the Halting Problem!
+"keyword.control.repeat" = { fg = "code_unsafe", bg = "code_bg_unsafe" }
+"markup.heading" = { modifiers = ["bold"] }
+"markup.heading.marker" = "sym"
+"markup.bold" = { modifiers = ["bold"] }
+"markup.italic" = { modifiers = ["italic"] }
+"markup.strikethrough" = { modifiers = ["crossed_out"] }
+"markup.link" = { fg = "sym", underline = { style = "line" } }
+"markup.quote" = "doc"
+
+"markup.normal" = "default"
+"markup.normal.raw" = "code"
+"markup.heading.raw" = "code"
+"markup.raw" = "code"
+
+"diff.plus" = "green" # + add
+"diff.minus" = "red" # - delete
+"diff.delta" = "yellow" # ± edit
+"diff.delta.moved" = "sym" # -> rename
+"diff.delta.conflict" = "err" # ❌
+
+[palette]
+bg = "#eee"
+bg_ui = "#ddd"
+default = "#333"
+default_weak = "#666"
+ghost = "#999"
+code = "#363"
+code_unsafe = "#300"
+code_bg_unsafe = "#edd"
+red = "#800"
+green = "#070"
+yellow = "#770"
+sel = "#ccc"
+sel_weak = "#e7e7e7"
+err = "#f00"
+warn = "#ba0"
+diag = "#06a"
+literal = "#093"
+literal_unsafe = "#410"
+literal_bg_unsafe = "#eca"
+sym = "#0af"
+doc = "#707"