docs(nugu): update theming skill workflow
d0ad14f7603a9830811bd518e401a5250beeded9
Oliver Jan Krylow <oliver@bugabinga.net> ·
SSH signature · not checked
- Parent 1: 8484e05f7ceb
bugabingas dorkfiles
d0ad14f7603a9830811bd518e401a5250beeded9
Oliver Jan Krylow <oliver@bugabinga.net> ·
SSH signature · not checked
+22 / −83 text lines
+22 / −83 text lines
description: Use when editing the Nugu color theme, semantic palette, generated app themes, terminal colors, or dotfiles integrations that mention nugu.description: Use when another project needs Nugu-derived theme files or color integration.Personal semantic color system: `~/Workspace/dotfiles/nugu`.Nugu is a palette generator first, app theme files second.Use Nugu's semantic palette to generate theme artifacts for another project.- `base.toml` — seed colors and human intent comments.- `nugu.nu` — palette generation, WCAG contrast checks, terminal preview.- `palette.nu` — reads generated `output/dark.toml` and `output/light.toml`.- `helix.nu`, `wezterm.nu`, `ghostty.nu` — app-specific generators.- `helix_nugu_stub.toml` — static Helix theme scaffold.- `output/` — generated, gitignored; do not treat as source.Global colors:- `error` — urgent, aggressive, nonnegotiable.- `warning` — likely problem, distracting but ignorable.- `info` — context suggestion, relaxed.- `debug` — intentionally easy to spot.Both `content` and `ui` contain:- `normal`, `backdrop`, `accent`, `minor`, `focus`, `unfocus`, `important_local`, `important_global``content.*` is main text/content. `ui.*` is chrome, borders, panels, frame, status UI.Prefer changing generation formulas over hard-coding per-app colors.From `nugu/`:1. Inspect target format, config, output path, and dark/light support.2. Reuse the relevant Nugu generator and recipe.3. Add missing mappings to Nugu source, never to generated app themes.4. Generate both modes where supported.5. Write only requested target artifacts; never edit generated `output/`.6. Leave active-mode selection to target runtime config.7. Distinguish generated, installed, and loaded/rendered state.8. Do not claim loaded/rendered state without checking it.```bashjust lintjust fmtjust checkjust buildjust show darkjust show light```Targeted generators:```bashjust helixjust weztermjust ghosttyjust install # helix + wezterm + ghostty; writes into sibling/live config dirs````just check` runs generation validation + WCAG threshold reporting. Investigate warnings before accepting palette changes.## Integration Contract1. Inspect sibling generators and `justfile` before designing an integration.2. Source colors from `nugu.nu`, never another app's generated theme or exports.3. Generate and install both dark and light variants, following sibling conventions.4. Leave variant selection to app config/runtime; generation must not select an active mode.5. Do not add default-mode or apply commands unless explicitly requested as shared Nugu behavior.6. Test from Nugu source inputs, not pre-existing generated artifacts. Generate required intermediates inside the test workspace and validate every variant.## Editing Rules- Start with semantic intent: what role/color behavior should change?- Update `base.toml` only for seed semantics; update `nugu.nu` for derived palette behavior.- Update app generator files only when mapping from semantics to app-specific fields changes.- Avoid editing generated `output/*` directly.- If generated files are copied into tracked dotfiles (`ghostty/themes/*`, WezTerm palette modules, Helix themes), regenerate via recipes unless user asks for manual patching.- Preserve dark/light symmetry unless change is intentionally mode-specific.- Preserve contrast thresholds unless user explicitly wants changed accessibility policy.## Known Integrations- Neovim: `neovim/colors/nugu.lua`, `neovim/lua/bugabinga/nugu/`, colorscheme `nugu`.- Helix: `helix/config.toml` uses `theme = "nugu-dark"`.- WezTerm: `wezterm/bugabinga/nugu/`, generated `palette_dark.lua` / `palette_light.lua`.- Ghostty: `ghostty/config` uses `theme = light:nugu-light,dark:nugu-dark`; generated themes in `ghostty/themes/`.- tmux: `tmux/tmux.conf` has Nugu color section.- Other refs: `cmus/nugu.theme`, `clipse/nugu.json`, TODOs for LS_COLORS/firefox/nushell/yazi.## ToolsNugu recipes assume these CLIs exist:- `nu` / `nu-check`- `just`- `taplo`- `pastel`Use the `pastel` skill when doing nontrivial color conversion, contrast exploration, mixing, or palette design.Preserve semantic roles, dark/light symmetry, and Nugu contrast policy.