summaryrefslogtreecommitdiff
path: root/core/themes/nord.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-26 03:40:00 -0300
committerGabriel Schneider <[email protected]>2026-11-26 04:15:33 -0300
commit0788ce68c4c43148d3d5fa173b4fe46aa10371c9 (patch)
tree54fe1321dbf0e31d9f8151efedbf29a2609ad6cb /core/themes/nord.zig
parent60e85abe53debc0c8dd8986b748e9c86086e0007 (diff)
downloadpardes-0788ce68c4c43148d3d5fa173b4fe46aa10371c9.tar.gz
pardes-0788ce68c4c43148d3d5fa173b4fe46aa10371c9.zip
themes, colors, gen_themes: every theme file in the v2 names, values unchanged (the themes programme's L3; DESIGN.md B2, B3, B8, E1, G4, G6), the fields the new names derive deleted, the comptime fold of the old names gone, each faithful port's file saying each own colour pardes moves to meet a floor, and E1's five fixes: THE FILES: core/themes/*.zig renamed by a script (bg page, fg text, tag_bg tag, tag_fg tag_text, box accent, sel_bg selection, kw keyword, str string, num number, palette ansi, sel_fg selection_text, tag_active_* tag_focus*, tag_name_fg tag_name, tagline_* workspace*, lineno* line_number*, search_bg hit, diagnostic_* the severities, border rule, scroll_* rail*, empty_col empty_column, box_border grip_ring, box_dirty dirty, column_box column_grip, tag_sel_bg tag_selection; seoul256's level rows and their citations too), box_dim, column_box_dim, tag_active_name_fg, search_fg and acme's tag_reading_bg deleted with the lines citing them (B8: always derived; G1': acme's #f3f0cc reading tint goes with the ground), acme's sweep_bg and sweep_fg one `sweeps`; tools/gen_themes.zig writes the generated ones in the same names (its emitted box_dim, the selection again, gone); `colors.fold` folds the files into `Theme` itself (a field no Theme has is a compile error; `as` turns acme's sweep literals into Theme.Sweep, which a literal's own struct type does not coerce to); `legacy_themes`, the ring folded in the old names at comptime, deleted: THE OLD NAMES' VIEW (what draw.zig and the old ChromeTheme and Roles still read until L2a) is a ring theme's chrome's, `ChromeTheme.view`, filled from its Chrome as L1 filled a new-names ThemeFile's (`viewOf`: the old required fields a theme leaves unset, and the derived ones: box_dim a resting grip's fill, the tag's own ground where a theme rings its grips itself (acme's clean button, so its grid grip keeps its look) else the resting ring; tag_active_name_fg `name[1]`, column_box_dim `grip.column_rest`); `Pardes.theme()` reads it (a ThemeFile's, the file itself, as before); ChromeTheme.box, the focused grip the grid fills, is the chrome's `grip.focus` (the accent held 3:1, R6: ayu_light's accent, 2:1 on its tag, was its resting ring too, and the grid drew its focused and resting grips alike); the library's `Theme` and `themes` are the v2 ones (lib_syntax: page, ink and synInk read page, text, keyword, string, number, comment; Grounds.of takes a Theme), runtime/macos.zig's bare page reads `themes[0].page`; E1's FIXES (the ring test's L3 list): acme's sixteen each 4.5:1 on its page, the native floor (6, 8 and 13 held darker in their hue; 10, 11 and 14, held there, landed on their normal colour and go 0.06 OKLab darker than it, R14's bright on a light page: #038384 #757575 #016e08 #785300 #b942b9 #017070); solarized_dark's, solarized_light's and seoul256's light levels' search hit their own hue as a ground the text reads on (#1d180e, #ffeb99, #a6e6fe; each file says from what and why); R8 takes a theme's own hit at R0's visible alternative, 1.1:1 off the page with 0.08 OKLab, only where its text leaves no room for 1.5:1 (no ground that far off keeps the text its floor: those four and forge_soft and ayu_light, whose own hits are taken now where an amber stood; no other theme's hit moves), else E1's `hit` fixes could not be met; G4: core/themes' ports say, under "Moved by pardes as it loads", each own colour Chrome.of moves (focused tag and grip, the resting and unsaved grip, the selection and its ink, the hit, the four severities on the page; 267 lines over 54 files, written from the test's own output by .scratch/themes/L3457/tools/g4_headers.py); RUN (TEST FIRST): colors.zig "every faithful port's file says each of its own colours pardes moves to meet a floor (DESIGN.md G4)" (each port's own value Chrome.of moves, as `role #own -> #got`, found in its file): fails on the renamed files with 273 unsaid, passes now; "every theme in the ring meets every floor ..." with L3's five taken off its list: acme fails ansi and ansi_pro, solarized_dark, solarized_light, seoul256_light_254 and _255 fail hit, all five pass now: 266 of 285 themes pass (261 at L1), 19 on the list (L4 6, L5 1, L7 8, soft 4); draw.zig's "an unfocused reading pane's box in the grid is its ring round the reading tint where the box's fill is the tag's own ground (acme's)" failed on the first view (acme's resting fill its ring), passes with the tag's ground; "a grip's four states ... are each its own" failed in ayu_light on the raw accent, passes on grip.focus; the old tests that pinned the deleted fields' file values keep what is still a file's (a name's tint at its tag ink's lightness, the accent off the column grip; the helix document test strips the derived fields too; the names test reads Chrome's names, an ink held to white or black its own name, ao's and modus_vivendi's); the consumer's lib.zig pins orchard's page, ink and syntax unchanged (dark's page its `.tag`); the ring's values unchanged by the rename (the ring test's count and every original's colour asserted unmoved); core-test 1133/1306 (173 skipped: L2b's 1132/1305 + the G4 test); OUTSIDE my files: core/Core.zig `theme()` (the view), core/lib_syntax.zig (v2 Theme), runtime/macos.zig `pardes_theme_bg` (one line), test/consumer/lib.zig (`.tag`); the process goldens move with the view (the grid's resting grip, the focused name's tint, the column grip at rest, acme's reading grip) and are re-recorded and read at the programme's end gate; no dump or digest change (the view is the chrome's, a `local` field)
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'core/themes/nord.zig')
-rw-r--r--core/themes/nord.zig58
1 files changed, 29 insertions, 29 deletions
diff --git a/core/themes/nord.zig b/core/themes/nord.zig
index f74785b3..284b59e6 100644
--- a/core/themes/nord.zig
+++ b/core/themes/nord.zig
@@ -47,63 +47,63 @@
//! Constant fg is nord4 (plain text), so constant uses Boolean (nord9).
//! scroll_track/thumb are the popup-menu scrollbar (PmenuSbar/PmenuThumb); vim
//! has no window scrollbar.
+//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of):
+//! - search hit #88c0d0 -> #634a34: 6.24:1 off the page, now 1.52:1 (R8: 1.5:1, the text reading on it)
+//! - error #bf616a -> #e17f87: 3.05:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others)
+//! - hint #5e81ac -> #7a9ecb: 3.10:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others)
pub const theme = .{
.name = "nord",
// ~/05-genizah/nord-vim/colors/nord.vim:139 Normal guibg (s:nord0_gui = #2E3440 at :15)
- .bg = .{ 0x2e, 0x34, 0x40 },
+ .page = .{ 0x2e, 0x34, 0x40 },
// ~/05-genizah/nord-vim/colors/nord.vim:139 Normal guifg (s:nord4_gui = #D8DEE9 at :20)
- .fg = .{ 0xd8, 0xde, 0xe9 },
+ .text = .{ 0xd8, 0xde, 0xe9 },
// ~/05-genizah/nord-vim/colors/nord.vim:149 Visual guibg (s:nord2_gui = #434C5E at :17)
- .sel_bg = .{ 0x43, 0x4c, 0x5e },
+ .selection = .{ 0x43, 0x4c, 0x5e },
// the original keeps text colours over its selection; its text colour
- .sel_fg = .{ 0xd8, 0xde, 0xe9 },
+ .selection_text = .{ 0xd8, 0xde, 0xe9 },
// ~/05-genizah/nord-vim/colors/nord.vim:223 StatusLineNC guibg (s:nord1_gui = #3B4252 at :16) [default g:nord_uniform_status_lines=0, :83]
- .tag_bg = .{ 0x3b, 0x42, 0x52 },
+ .tag = .{ 0x3b, 0x42, 0x52 },
// ~/05-genizah/nord-vim/colors/nord.vim:223 StatusLineNC guifg (s:nord4_gui = #D8DEE9 at :20) [default g:nord_uniform_status_lines=0, :83]
- .tag_fg = .{ 0xd8, 0xde, 0xe9 },
+ .tag_text = .{ 0xd8, 0xde, 0xe9 },
// ~/05-genizah/nord-vim/colors/nord.vim:222 StatusLine guibg (s:nord3_gui = #4C566A at :18) [default g:nord_uniform_status_lines=0, :83] #4c566a, adjusted
- .tag_active_bg = .{ 0x52, 0x5d, 0x72 },
+ .tag_focus = .{ 0x52, 0x5d, 0x72 },
// ~/05-genizah/nord-vim/colors/nord.vim:222 StatusLine guifg (s:nord8_gui = #88C0D0 at :24) [default g:nord_uniform_status_lines=0, :83] #88c0d0, adjusted
- .tag_active_fg = .{ 0xbc, 0xdc, 0xe5 },
+ .tag_focus_text = .{ 0xbc, 0xdc, 0xe5 },
// the focused grip: ~/05-genizah/nord-vim/autoload/lightline/colorscheme/nord.vim:24 s:p.normal.left section a bg s:nord8 (#88C0D0 at :15); same in ~/05-genizah/nord-vim/autoload/airline/themes/nord.vim:41 s:NMain bg s:nord8_gui
- .box = .{ 0x88, 0xc0, 0xd0 },
- // derived: the grip at rest, the accent #88c0d0 faded toward the unfocused tag #3b4252 as far as 1.6:1 off it (0.26 of the way)
- .box_dim = .{ 0x4f, 0x63, 0x73 },
+ .accent = .{ 0x88, 0xc0, 0xd0 },
// an unsaved grip: the original's modified colour, ~/05-genizah/nord-vim/colors/nord.vim:589 GitGutterChange guifg (s:nord13_gui = #EBCB8B at :29); also DiffChange fg (inverse) at :371, SignifySignChange at :596, VS Code editorGutter.modifiedBackground #ebcb8b at ~/05-genizah/nord-visual-studio-code/themes/nord-color-theme.json:98
- .box_dirty = .{ 0xeb, 0xcb, 0x8b },
+ .dirty = .{ 0xeb, 0xcb, 0x8b },
// derived: the column grip, the original's string colour, ~/05-genizah/nord-vim/colors/nord.vim:281 String guifg (s:nord14_gui = #A3BE8C at :30)
- .column_box = .{ 0xa3, 0xbe, 0x8c },
+ .column_grip = .{ 0xa3, 0xbe, 0x8c },
// ~/05-genizah/nord-vim/colors/nord.vim:270 Keyword guifg (s:nord9_gui = #81A1C1 at :25)
- .kw = .{ 0x81, 0xa1, 0xc1 },
+ .keyword = .{ 0x81, 0xa1, 0xc1 },
// ~/05-genizah/nord-vim/colors/nord.vim:281 String guifg (s:nord14_gui = #A3BE8C at :30)
- .str = .{ 0xa3, 0xbe, 0x8c },
+ .string = .{ 0xa3, 0xbe, 0x8c },
// ~/05-genizah/nord-vim/colors/nord.vim:272 Number guifg (s:nord15_gui = #B48EAD at :31)
- .num = .{ 0xb4, 0x8e, 0xad },
+ .number = .{ 0xb4, 0x8e, 0xad },
// ~/05-genizah/nord-vim/colors/nord.vim:258 Comment guifg (s:nord3_gui_bright = #616E88 at :19)
.comment = .{ 0x61, 0x6e, 0x88 },
// ~/05-genizah/nord-vim/colors/nord.vim:136 LineNr guifg (s:nord3_gui = #4C566A at :18)
- .lineno = .{ 0x4c, 0x56, 0x6a },
+ .line_number = .{ 0x4c, 0x56, 0x6a },
// ~/05-genizah/nord-vim/colors/nord.vim:204 CursorLineNr guifg (s:nord4_gui = #D8DEE9 at :20) [default g:nord_cursor_line_number_background=0, :94]
- .lineno_active = .{ 0xd8, 0xde, 0xe9 },
+ .line_number_current = .{ 0xd8, 0xde, 0xe9 },
// ~/05-genizah/nord-vim/colors/nord.vim:141 PmenuSbar guibg (s:nord2_gui = #434C5E at :17)
- .scroll_track = .{ 0x43, 0x4c, 0x5e },
+ .rail = .{ 0x43, 0x4c, 0x5e },
// ~/05-genizah/nord-vim/colors/nord.vim:143 PmenuThumb guibg (s:nord3_gui = #4C566A at :18) #4c566a, adjusted
- .scroll_thumb = .{ 0x60, 0x69, 0x7c },
+ .rail_thumb = .{ 0x60, 0x69, 0x7c },
// ~/05-genizah/nord-vim/colors/nord.vim:248 VertSplit guifg (s:nord2_gui = #434C5E at :17) [no WinSeparator group; default g:nord_bold_vertical_split_line=0, :85] #434c5e, adjusted
- .border = .{ 0x4c, 0x55, 0x66 },
+ .rule = .{ 0x4c, 0x55, 0x66 },
// ~/05-genizah/nord-vim/colors/nord.vim:237 Search guibg (s:nord8_gui = #88C0D0 at :24)
- .search_bg = .{ 0x88, 0xc0, 0xd0 },
- // ~/05-genizah/nord-vim/colors/nord.vim:237 Search guifg (s:nord1_gui = #3B4252 at :16)
- .search_fg = .{ 0x3b, 0x42, 0x52 },
+ .hit = .{ 0x88, 0xc0, 0xd0 },
// ~/05-genizah/nord-vim/colors/nord.vim:184 DiagnosticError guifg (s:nord11_gui = #BF616A at :27)
- .diagnostic_error = .{ 0xbf, 0x61, 0x6a },
+ .@"error" = .{ 0xbf, 0x61, 0x6a },
// ~/05-genizah/nord-vim/colors/nord.vim:183 DiagnosticWarn guifg (s:nord13_gui = #EBCB8B at :29)
- .diagnostic_warning = .{ 0xeb, 0xcb, 0x8b },
+ .warning = .{ 0xeb, 0xcb, 0x8b },
// ~/05-genizah/nord-vim/colors/nord.vim:185 DiagnosticInfo guifg (s:nord8_gui = #88C0D0 at :24)
- .diagnostic_info = .{ 0x88, 0xc0, 0xd0 },
+ .info = .{ 0x88, 0xc0, 0xd0 },
// ~/05-genizah/nord-vim/colors/nord.vim:186 DiagnosticHint guifg (s:nord10_gui = #5E81AC at :26)
- .diagnostic_hint = .{ 0x5e, 0x81, 0xac },
- .palette = .{
+ .hint = .{ 0x5e, 0x81, 0xac },
+ .ansi = .{
.{ 0x3b, 0x42, 0x52 }, // 0: ~/05-genizah/nord-vim/colors/nord.vim:159 g:terminal_color_0 (s:nord1_gui = #3B4252 at :16)
.{ 0xbf, 0x61, 0x6a }, // 1: ~/05-genizah/nord-vim/colors/nord.vim:160 g:terminal_color_1 (s:nord11_gui = #BF616A at :27)
.{ 0xa3, 0xbe, 0x8c }, // 2: ~/05-genizah/nord-vim/colors/nord.vim:161 g:terminal_color_2 (s:nord14_gui = #A3BE8C at :30)