~/code/sf2-themes main ❯ sf2-themes show ryu
theme sf2-ryu
stage Japan · Suzaku Castle rooftop
variant dark
background #141a23
foreground #cad2df
accent #da6a6a
~/code/sf2-themes main ❯ git status -sb
## main...origin/main [ahead 1]
M web/src/pages/index.astro
M themes/ryu.toml
?? docs/previews/ryu.png
~/code/sf2-themes main ❯ git log --oneline -4
a41c9e2 (HEAD -> main) Tune Ryu accent for contrast
7be20d1 Add Starship adapter
3f9a0c4 Light variants for the full roster
e02b5d8 Back up files before the first write
~/code/sf2-themes main ❯ sf2-themes validate --all
✓ 36 themes valid
~/code/sf2-themes main ❯ sf2-themes apply wezterm --theme boxer --dry-run
dry run would write ~/.config/wezterm/colors/sf2-balrog.toml
~/code/sf2-themes main ❯
1-- colors/sf2-ryu.lua
2local palette = require("sf2.palette")
3local M =
4
5---@param name string
6function M.apply(name)
E7local p = palette[name] or palette.mian ■ Undefined field `mian`.
8vim.o.background = p.variant
9for group, spec in pairs(p.highlights) do
10vim.api.nvim_set_hl(0, group, spec)
11end
12end
13
14return M
~
~
NORMAL main sf2-ryu.lua E1lua utf-8 8:26 57%
:colorscheme sf2-ryu
from pathlib import Path
from dataclasses import dataclass
@dataclass(frozen=True)
class Theme:
id: str
variant: str = "dark"
def installed_id(self) -> str:
# every adapter prefixes the catalog id
return f"sf2-{self.id}"
def apply(app: str, theme: Theme, dry_run: bool = False) -> int:
target = Path("~/.config").expanduser() / app
if dry_run:
print(f"would write {theme.installed_id()} to {target}")
return 0
raise NotImplementedError("Here comes a new challenger")
apply("wezterm", Theme("ryu"), dry_run=True)
# themes/ryu.toml
[meta]
id = "ryu"
name = "Ryu"
variant = "dark"
stage = "Japan · Suzaku Castle rooftop"
[ui]
background = "#141a23"
foreground = "#cad2df"
accent = "#da6a6a"
selection_background = "#522d2c"
[ansi.normal]
black = "#2b323f"
red = "#c86e6c"
green = "#5e9465"
yellow = "#9e8625"
blue = "#558acc"
magenta = "#a278b5"
cyan = "#1195ad"
white = "#aeb6c2"
diff --git a/themes/ryu.toml b/themes/ryu.toml
index 3f9a0c4..a41c9e2 100644
--- a/themes/ryu.toml
+++ b/themes/ryu.toml
@@ -9,7 +9,8 @@ [ui]
background = "#141a23"
foreground = "#cad2df"
-accent = "#c9a227"
+accent = "#da6a6a"
+cursor = "#da6a6a"
selection_background = "#522d2c"
1 file changed, 2 insertions(+), 1 deletion(-)
### How it writes files
The pack contains 36 fully resolved themes: a dark and light variant of the shared main theme plus every fighter through Super Street Fighter II Turbo.
Existing files keep their mode and get a timestamped .bak.* copy before the first real change. Symlinks are refused unless you pass --follow-symlinks.
> Boss aliases work too: boxer (Balrog), claw (Vega), and dictator (M. Bison).
See the theme guidelines for how each palette is tuned.
normal
bright
0black#2b323f
8bright black#7b8598
1red#c86e6c
9bright red#ee8582
2green#5e9465
10bright green#70b27a
3yellow#9e8625
11bright yellow#bda131
4blue#558acc
12bright blue#69a6f3
5magenta#a278b5
13bright magenta#c291d9
6cyan#1195ad
14bright cyan#1bb2ce
7white#aeb6c2
15bright white#d6dce5
redgreenyellowbluemagentacyanaccentorange