From 56b459e0aae62760481300aff8d4262e35c3b428 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 00:15:15 -0300 Subject: themes: seoul256's twelve backgrounds are one family, src/themes/seoul256.zig (`dark(level)`, `light(level)`), where twelve files of a hundred lines each repeated it: one header names the source and how a background resolves, a value the levels share is set and cited once, and a level's own values are its row of dark_levels or light_levels with their citations and what pardes adjusted there; every one of the ring's 286 themes formats to the same bytes before and after (hashed, a one-value change seen to move its hash), and a test pins the twelve in their order after Catppuccin and before Zenbones Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/colors.zig | 39 +++-- src/themes/seoul256.zig | 360 ++++++++++++++++++++++++++++++++++++++ src/themes/seoul256_dark_233.zig | 101 ----------- src/themes/seoul256_dark_234.zig | 101 ----------- src/themes/seoul256_dark_235.zig | 101 ----------- src/themes/seoul256_dark_236.zig | 101 ----------- src/themes/seoul256_dark_237.zig | 100 ----------- src/themes/seoul256_dark_238.zig | 102 ----------- src/themes/seoul256_dark_239.zig | 102 ----------- src/themes/seoul256_light_252.zig | 102 ----------- src/themes/seoul256_light_253.zig | 99 ----------- src/themes/seoul256_light_254.zig | 101 ----------- src/themes/seoul256_light_255.zig | 101 ----------- src/themes/seoul256_light_256.zig | 101 ----------- 14 files changed, 387 insertions(+), 1224 deletions(-) create mode 100644 src/themes/seoul256.zig delete mode 100644 src/themes/seoul256_dark_233.zig delete mode 100644 src/themes/seoul256_dark_234.zig delete mode 100644 src/themes/seoul256_dark_235.zig delete mode 100644 src/themes/seoul256_dark_236.zig delete mode 100644 src/themes/seoul256_dark_237.zig delete mode 100644 src/themes/seoul256_dark_238.zig delete mode 100644 src/themes/seoul256_dark_239.zig delete mode 100644 src/themes/seoul256_light_252.zig delete mode 100644 src/themes/seoul256_light_253.zig delete mode 100644 src/themes/seoul256_light_254.zig delete mode 100644 src/themes/seoul256_light_255.zig delete mode 100644 src/themes/seoul256_light_256.zig diff --git a/src/colors.zig b/src/colors.zig index bb2c5b60..6077afce 100644 --- a/src/colors.zig +++ b/src/colors.zig @@ -377,6 +377,9 @@ pub const Theme = struct { decor: ?Decor = null, }; +/// One family, its twelve backgrounds a theme each (`curated`). +const seoul256 = @import("themes/seoul256.zig"); + const curated = struct { pub const orchard = @import("themes/orchard.zig"); pub const dusk = @import("themes/dusk.zig"); @@ -424,18 +427,18 @@ const curated = struct { pub const catppuccin_frappe = @import("themes/catppuccin_frappe.zig"); pub const catppuccin_macchiato = @import("themes/catppuccin_macchiato.zig"); pub const catppuccin_mocha = @import("themes/catppuccin_mocha.zig"); - pub const seoul256_dark_233 = @import("themes/seoul256_dark_233.zig"); - pub const seoul256_dark_234 = @import("themes/seoul256_dark_234.zig"); - pub const seoul256_dark_235 = @import("themes/seoul256_dark_235.zig"); - pub const seoul256_dark_236 = @import("themes/seoul256_dark_236.zig"); - pub const seoul256_dark_237 = @import("themes/seoul256_dark_237.zig"); - pub const seoul256_dark_238 = @import("themes/seoul256_dark_238.zig"); - pub const seoul256_dark_239 = @import("themes/seoul256_dark_239.zig"); - pub const seoul256_light_252 = @import("themes/seoul256_light_252.zig"); - pub const seoul256_light_253 = @import("themes/seoul256_light_253.zig"); - pub const seoul256_light_254 = @import("themes/seoul256_light_254.zig"); - pub const seoul256_light_255 = @import("themes/seoul256_light_255.zig"); - pub const seoul256_light_256 = @import("themes/seoul256_light_256.zig"); + pub const seoul256_dark_233 = seoul256.dark(233); + pub const seoul256_dark_234 = seoul256.dark(234); + pub const seoul256_dark_235 = seoul256.dark(235); + pub const seoul256_dark_236 = seoul256.dark(236); + pub const seoul256_dark_237 = seoul256.dark(237); + pub const seoul256_dark_238 = seoul256.dark(238); + pub const seoul256_dark_239 = seoul256.dark(239); + pub const seoul256_light_252 = seoul256.light(252); + pub const seoul256_light_253 = seoul256.light(253); + pub const seoul256_light_254 = seoul256.light(254); + pub const seoul256_light_255 = seoul256.light(255); + pub const seoul256_light_256 = seoul256.light(256); pub const zenbones_light = @import("themes/zenbones_light.zig"); pub const zenbones_dark = @import("themes/zenbones_dark.zig"); pub const neobones_light = @import("themes/neobones_light.zig"); @@ -553,6 +556,18 @@ test "the picker's sections run in ring order and cover it" { try std.testing.expect(groupAt(native_count) != null); } +test "seoul256's twelve backgrounds ring in their order, after Catppuccin and before Zenbones" { + const names = [_][]const u8{ + "seoul256_dark_233", "seoul256_dark_234", "seoul256_dark_235", "seoul256_dark_236", + "seoul256_dark_237", "seoul256_dark_238", "seoul256_dark_239", "seoul256_light_252", + "seoul256_light_253", "seoul256_light_254", "seoul256_light_255", "seoul256_light_256", + }; + const first = indexOfTheme("seoul256_dark_233"); + for (names, themes[first..][0..names.len]) |name, t| try std.testing.expectEqualStrings(name, t.name); + try std.testing.expectEqualStrings("catppuccin_mocha", themes[first - 1].name); + try std.testing.expectEqualStrings("zenbones_light", themes[first + names.len].name); +} + test "lapis_plain is lapis on flat grounds, framed and shadowed as lapis" { const lapis = themes[indexOfTheme("lapis")]; const plain = themes[indexOfTheme("lapis_plain")]; diff --git a/src/themes/seoul256.zig b/src/themes/seoul256.zig new file mode 100644 index 00000000..d51ec310 --- /dev/null +++ b/src/themes/seoul256.zig @@ -0,0 +1,360 @@ +//! Seoul256 (junegunn/seoul256.vim), as close to the original as pardes +//! can draw it: its dark style at each of its backgrounds 233 to 239 and its +//! light one at 252 to 256, a theme each (`dark`, `light`; colors.zig rings +//! them as seoul256_