craftzdog.solarized-osaka.nvim/lua/solarized-osaka/extra/wezterm.lua
Takuya Matsuyama 0df74ef0ed refactor(colors): Source every color from the palette and drop darken
Point the last computed colors at real tokens so nothing is derived by
blending anymore:

- barbar inactive labels take the new 600 tier, which reads dimmer than
  the 500 accent and, unlike 700, still brightens under the vivid style
- notify borders take the 900 tier, and the debug border takes base02
- black was a blend of the background toward pure black, a value that
  appeared nowhere in the palette; it is base04, so replace it outright
- border was aliased to black, leaving it invisible against the
  background in the dark style; it is now base02, matching WinSeparator

With no callers left, darken and blend go, and with them the mutable
util.bg they relied on -- a shared global whose value depended on which
style had been resolved last.

Every highlight group is unchanged by the black removal. The barbar and
notify groups do shift slightly, since a token can never reproduce a
blend toward the background exactly; they were chosen to read correctly
rather than to match the old values.

Light gains from this: black resolved to a muddy #cac4b5 that measured
1.85:1 on statusline mode chips, and base04 lifts that to 3.21:1. The
same change makes terminal color0 white in the light style, completing
an inversion that already had color7 resolving to a dark value.
2026-08-11 15:38:54 +09:00

55 lines
1.1 KiB
Lua

local util = require("solarized-osaka.util")
local M = {}
--- @param colors ColorScheme
function M.generate(colors)
local wezterm = util.template(
[[
[colors]
foreground = "${fg}"
background = "${bg}"
cursor_bg = "${fg}"
cursor_border = "${fg}"
cursor_fg = "${bg}"
selection_bg = "${blue700}"
selection_fg = "${fg}"
ansi = ["${base04}", "${red}", "${green}", "${yellow}", "${blue}", "${magenta}", "${cyan}", "${base0}"]
brights = ["${bg}", "${red}", "${green}", "${yellow}", "${blue}", "${magenta}", "${cyan}", "${fg}"]
[colors.tab_bar]
inactive_tab_edge = "${base03}"
background = "#191b28"
[colors.tab_bar.active_tab]
fg_color = "${blue}"
bg_color = "${bg}"
[colors.tab_bar.inactive_tab]
bg_color = "${base03}"
fg_color = "${base02}"
[colors.tab_bar.inactive_tab_hover]
bg_color = "${base03}"
fg_color = "${blue}"
[colors.tab_bar.new_tab_hover]
fg_color = "${base03}"
bg_color = "${blue}"
[colors.tab_bar.new_tab]
fg_color = "${blue}"
bg_color = "#191b28"
[metadata]
aliases = []
author = "craftzdog"
name = "${_style_name}"]],
colors
)
return wezterm
end
return M