dotfiles
bugabingas dorkfiles
owned by bugabinga
AGENTS — Nugu theming
Scope: hypr/ desktop theming.
Rules:
- Nugu generators output palette/color fragments only when app supports import/include.
- Keep app behavior/layout/fonts/spacing in app config dir.
- Do not duplicate whole app configs in
nugu/.
- Use generated fragments:
- Ironbar:
ironbar/nugu.css via @import url("nugu.css")
- Mako:
mako/nugu.conf via include=~/.config/mako/nugu.conf
- Hypr Lua:
hypr/generated/nugu.lua
- Runtime JSON:
hypr/generated/nugu.json
- Runtime switcher
hypr/scripts/theme.nu writes active color fragments under $XDG_CONFIG_HOME.
Hyprtoolkit:
Nugu semantics:
content.* = app/content/terminal text surfaces.
ui.* = chrome/widgets/borders/status bars.
error|warning|info|debug = semantic signal colors.
- Active UI: bg
ui.focus, fg content.backdrop.
- Hover/accent UI: bg
ui.accent, fg content.backdrop.
- Muted UI text:
ui.minor over ui.backdrop.
- Borders/accent lines:
ui.accent.
Accessibility:
- Check critical fg/bg pairs with
pastel format luminance or pastel textcolor.
- Target ≥4.5 contrast; prefer ≥7 for small bar text.
- Verify screenshots; CSS cascade/child labels may override intended colors.
Fonts:
- Use IBM Plex family exclusively in Hypr desktop configs.
- UI sans:
IBM Plex Sans; mono/status: IBM Plex Mono.
Testing:
- After theme edits:
NUGU_NO_NOTIFY=1 hypr/scripts/theme.nu dark|light.
- Check
systemctl --user is-active mako.service ironbar.service hyprpaper.service.
- Screenshot dark/light with
grim; inspect actual rendered colors, not just CSS.
Markdown source
File outline
# AGENTS — Nugu theming
Scope: `hypr/` desktop theming.
Rules:
- Nugu generators output palette/color fragments only when app supports import/include.
- Keep app behavior/layout/fonts/spacing in app config dir.
- Do not duplicate whole app configs in `nugu/`.
- Use generated fragments:
- Ironbar: `ironbar/nugu.css` via `@import url("nugu.css")`
- Mako: `mako/nugu.conf` via `include=~/.config/mako/nugu.conf`
- Hypr Lua: `hypr/generated/nugu.lua`
- Runtime JSON: `hypr/generated/nugu.json`
- Runtime switcher `hypr/scripts/theme.nu` writes active color fragments under `$XDG_CONFIG_HOME`.
Hyprtoolkit:
- Never rewrite `hyprtoolkit.conf` while Hyprtoolkit apps run.
- Bug: https://github.com/hyprwm/hyprtoolkit/issues/92
- Static session config only until fixed.
Nugu semantics:
- `content.*` = app/content/terminal text surfaces.
- `ui.*` = chrome/widgets/borders/status bars.
- `error|warning|info|debug` = semantic signal colors.
- Active UI: bg `ui.focus`, fg `content.backdrop`.
- Hover/accent UI: bg `ui.accent`, fg `content.backdrop`.
- Muted UI text: `ui.minor` over `ui.backdrop`.
- Borders/accent lines: `ui.accent`.
Accessibility:
- Check critical fg/bg pairs with `pastel format luminance` or `pastel textcolor`.
- Target ≥4.5 contrast; prefer ≥7 for small bar text.
- Verify screenshots; CSS cascade/child labels may override intended colors.
Fonts:
- Use IBM Plex family exclusively in Hypr desktop configs.
- UI sans: `IBM Plex Sans`; mono/status: `IBM Plex Mono`.
Testing:
- After theme edits: `NUGU_NO_NOTIFY=1 hypr/scripts/theme.nu dark|light`.
- Check `systemctl --user is-active mako.service ironbar.service hyprpaper.service`.
- Screenshot dark/light with `grim`; inspect actual rendered colors, not just CSS.