1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
//! Catppuccin Latte: Catppuccin, as close to the original as pardes can draw it.
//! Every value is the original's own, cited on its line (path:line key); the
//! chrome pardes needs and the original lacks is derived from its palette.
//! Sources:
//! palette; url https://github.com/catppuccin/palette; genizah ~/05-genizah/catppuccin-palette; commit 07d02aa110ef9eb7e7427afca5c73ba9cf7f8ebd
//! neovim port (highlight mapping, terminal colours, lualine); url https://github.com/catppuccin/nvim; genizah ~/05-genizah/catppuccin-nvim; commit edefef779ab08ce1a4a404713e3012b0d202bd35
//! Tags: the window bar (StatusLine / StatusLineNC, or mode-line / mode-line-inactive).
//! Adjusted to meet pardes's floors (chrome only; text, syntax and ANSI are untouched):
//! - focused tag ground #e6e9ef -> #cdd0da: 1.00:1 off the unfocused #e6e9ef, pardes needs 1.25:1 on a light page
//! - unfocused tag text #bcc0cc -> #66686e: 1.49:1 on #e6e9ef, tag text needs 4.5:1 to be read and run
//! - rules between panes #dce0e8 -> #bcc0cc: 1.17:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does)
//! Upstream notes: Highlight mapping: catppuccin/nvim with default options
//! (transparent_background false, float.solid/transparent false, dim_inactive
//! off, color_overrides/highlight_overrides empty, kitty false, i.e. not
//! running under kitty; under kitty the port nudges every palette blue channel
//! by +/-1, palettes/init.lua:19-28). Runtime-computed values done exactly as
//! utils/colors.lua blend (floor(clamp(a*fg+(1-a)*bg)+0.5)): cursorline and
//! search_bg; inputs in the cites. U.darken(c, a, bg) = blend(c, bg, a);
//! U.lighten(c, a, fg) = blend(c, fg, a). Terminal colours: groups/terminal.lua
//! terminal_color_0..15, but NOTE the port only applies them when term_colors =
//! true, and the default is false (init.lua:15, lib/compiler.lua:42); used
//! anyway as the port's own terminal palette. Bright 1-7 equal normal; 0 =
//! overlay0, 8 = overlay1, 5/13 = pink, 7/15 = text. palette.json also carries
//! a separate ansiColors table (the terminal ports' palette), which differs;
//! not used here. tabline_sel is TabLineSel -> link Normal. selection_fg:
//! Visual has no fg (only bold). modified = Changed fg (blue); the gitsigns
//! integration (auto-detected) instead uses GitSignsChange = C.yellow
//! (groups/integrations/gitsigns.lua:11), and neo-tree uses NeoTreeModified =
//! peach. Keyword = mauve directly (Statement also mauve). Diagnostic groups
//! are in groups/lsp.lua (merged into editor groups by lib/mapper.lua:26).
//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of):
//! - tag ground #e6e9ef -> #e3e6ec: 1.08:1 off the page, now 1.11:1 (H: a band 1.1:1 off the page; R3: tone on tone)
//! - focused tag ground #cdd0da -> #cbced4: 1.23:1 off the tag, now 1.26:1 (R4, H: a focus step off the tag, and the loudest)
//! - unsaved grip #df8e1d -> #a36400: 2.09:1 on the tag, now 3.83:1 (R6: 3:1 on both tags)
//! - selection text #4c4f69 -> #4a4d67: 4.39:1 on the selection, now 4.53:1 (R7: 4.5:1)
//! - search hit #a8daf0 -> #f2bc85: 1.33:1 off the page, now 1.51:1 (R8: 1.5:1, the text reading on it)
//! - warning #df8e1d -> #9d6000: 2.31:1 on the page, now 4.52:1 (R9: 4.5:1, told from the text and the others)
//! - info #04a5e5 -> #0575a4: 2.47:1 on the page, now 4.54:1 (R9: 4.5:1, told from the text and the others)
//! - hint #179299 -> #097a81: 3.31:1 on the page, now 4.52:1 (R9: 4.5:1, told from the text and the others)
pub const theme = .{
.name = "catppuccin_latte",
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:35 Normal bg = C.base (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:25)
.page = .{ 0xef, 0xf1, 0xf5 },
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:35 Normal fg = C.text (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:16)
.text = .{ 0x4c, 0x4f, 0x69 },
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:107 Visual bg = C.surface1 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:23)
.selection = .{ 0xbc, 0xc0, 0xcc },
// the original keeps text colours over its selection; its text colour
.selection_text = .{ 0x4c, 0x4f, 0x69 },
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:100 StatusLineNC bg = C.mantle (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:26)
.tag = .{ 0xe6, 0xe9, 0xef },
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:100 StatusLineNC fg = C.surface1 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:23) #bcc0cc, adjusted
.tag_text = .{ 0x66, 0x68, 0x6e },
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:99 StatusLine bg = C.mantle (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:26) #e6e9ef, adjusted
.tag_focus = .{ 0xcd, 0xd0, 0xda },
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:99 StatusLine fg = C.text (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:16)
.tag_focus_text = .{ 0x4c, 0x4f, 0x69 },
// the focused grip: ~/05-genizah/catppuccin-nvim/lua/catppuccin/utils/lualine.lua:20 lualine normal.a bg = C.blue (used by lua/lualine/themes/catppuccin-latte.lua) -> C.blue (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:14)
.accent = .{ 0x1e, 0x66, 0xf5 },
// an unsaved grip: the original's warning colour, ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:51 DiagnosticWarn fg = warning (local warning = C.yellow at line 9) -> C.yellow (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:9)
.dirty = .{ 0xdf, 0x8e, 0x1d },
// derived: the column grip, the original's type colour, ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:32 Type fg = C.yellow (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:9)
.column_grip = .{ 0xdf, 0x8e, 0x1d },
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:20 Keyword fg = C.mauve (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:5)
.keyword = .{ 0x88, 0x39, 0xef },
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:8 String fg = C.green (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:10)
.string = .{ 0x40, 0xa0, 0x2b },
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:10 Number fg = C.peach (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:8)
.number = .{ 0xfe, 0x64, 0x0b },
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:5 Comment fg = C.overlay2 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:19)
.comment = .{ 0x7c, 0x7f, 0x93 },
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:27 LineNr fg = C.surface1 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:23)
.line_number = .{ 0xbc, 0xc0, 0xcc },
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:28 CursorLineNr fg = C.lavender (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:15)
.line_number_current = .{ 0x72, 0x87, 0xfd },
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:72 PmenuSbar bg = C.surface0 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:24)
.rail = .{ 0xcc, 0xd0, 0xda },
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:73 PmenuThumb bg = C.overlay0 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:21)
.rail_thumb = .{ 0x9c, 0xa0, 0xb0 },
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:114 WinSeparator fg = C.crust (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:27) #dce0e8, adjusted
.rule = .{ 0xbc, 0xc0, 0xcc },
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:91 Search bg = U.darken(C.sky, 0.30, C.base) = blend(fg sky #04a5e5, bg base #eff1f5, alpha 0.3) per ~/05-genizah/catppuccin-nvim/lua/catppuccin/utils/colors.lua:29 -> #a8daf0
.hit = .{ 0xa8, 0xda, 0xf0 },
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:50 DiagnosticError fg = error (local error = C.red at line 8) -> C.red (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:6)
.@"error" = .{ 0xd2, 0x0f, 0x39 },
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:51 DiagnosticWarn fg = warning (local warning = C.yellow at line 9) -> C.yellow (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:9)
.warning = .{ 0xdf, 0x8e, 0x1d },
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:52 DiagnosticInfo fg = info (local info = C.sky at line 10) -> C.sky (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:12)
.info = .{ 0x04, 0xa5, 0xe5 },
// ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:53 DiagnosticHint fg = hint (local hint = C.teal at line 11) -> C.teal (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:11)
.hint = .{ 0x17, 0x92, 0x99 },
.ansi = .{
.{ 0x5c, 0x5f, 0x77 }, // 0: ~/05-genizah/catppuccin-palette/palette.json:562 latte.ansiColors.black.normal
.{ 0xd2, 0x0f, 0x39 }, // 1: ~/05-genizah/catppuccin-palette/palette.json:606 latte.ansiColors.red.normal
.{ 0x40, 0xa0, 0x2b }, // 2: ~/05-genizah/catppuccin-palette/palette.json:650 latte.ansiColors.green.normal
.{ 0xdf, 0x8e, 0x1d }, // 3: ~/05-genizah/catppuccin-palette/palette.json:694 latte.ansiColors.yellow.normal
.{ 0x1e, 0x66, 0xf5 }, // 4: ~/05-genizah/catppuccin-palette/palette.json:738 latte.ansiColors.blue.normal
.{ 0xea, 0x76, 0xcb }, // 5: ~/05-genizah/catppuccin-palette/palette.json:782 latte.ansiColors.magenta.normal
.{ 0x17, 0x92, 0x99 }, // 6: ~/05-genizah/catppuccin-palette/palette.json:826 latte.ansiColors.cyan.normal
.{ 0xac, 0xb0, 0xbe }, // 7: ~/05-genizah/catppuccin-palette/palette.json:870 latte.ansiColors.white.normal
.{ 0x6c, 0x6f, 0x85 }, // 8: ~/05-genizah/catppuccin-palette/palette.json:582 latte.ansiColors.black.bright
.{ 0xde, 0x29, 0x3e }, // 9: ~/05-genizah/catppuccin-palette/palette.json:626 latte.ansiColors.red.bright
.{ 0x49, 0xaf, 0x3d }, // 10: ~/05-genizah/catppuccin-palette/palette.json:670 latte.ansiColors.green.bright
.{ 0xee, 0xa0, 0x2d }, // 11: ~/05-genizah/catppuccin-palette/palette.json:714 latte.ansiColors.yellow.bright
.{ 0x45, 0x6e, 0xff }, // 12: ~/05-genizah/catppuccin-palette/palette.json:758 latte.ansiColors.blue.bright
.{ 0xfe, 0x85, 0xd8 }, // 13: ~/05-genizah/catppuccin-palette/palette.json:802 latte.ansiColors.magenta.bright
.{ 0x2d, 0x9f, 0xa8 }, // 14: ~/05-genizah/catppuccin-palette/palette.json:846 latte.ansiColors.cyan.bright
.{ 0xbc, 0xc0, 0xcc }, // 15: ~/05-genizah/catppuccin-palette/palette.json:890 latte.ansiColors.white.bright
},
};
|