@@ -78,7 +78,7 @@ block. The override wins; the preset provides the rest.
7878| ` hop_bg ` / ` hop_fg ` | Jump host badge |
7979
8080All colour values are CSS colour strings (` "#003366" ` , ` "rgb(0,51,102)" ` ,
81- ` "hsl(210 100% 20%)" ` — anything CSS accepts).
81+ ` "hsl(210 100% 20%)" ` , anything CSS accepts).
8282
8383### Example: corporate branding on top of a preset
8484
@@ -105,8 +105,8 @@ users; selectable as `preset = "<name>"` in `config.toml`.
105105A theme file is a flat TOML table with one entry per colour. The filename
106106(minus ` .toml ` ) is the theme id. There is ** no** ` name ` field inside the
107107file. Every field listed in the table below is required (the field names
108- match the per-field overrides above, but ** without** the ` _color ` suffix —
109- e.g. ` primary ` , not ` primary_color ` ); the sole exception is ` bg_pattern ` ,
108+ match the per-field overrides above, but ** without** the ` _color ` suffix
109+ ( e.g. ` primary ` , not ` primary_color ` ); the sole exception is ` bg_pattern ` ,
110110which defaults to ` "none" ` if omitted.
111111
112112``` toml
@@ -145,13 +145,13 @@ bg_pattern = "none"
145145```
146146
147147A complete example ships with rustguac at
148- ` static/themes/catppuccin-macchiato.toml ` — copy it and tweak.
148+ ` static/themes/catppuccin-macchiato.toml ` . Copy it and tweak.
149149
150150### Naming rules
151151
152152Theme filenames (and therefore theme ids) must match
153- ` [a-zA-Z0-9_-]{1,64} ` . Anything outside that set — spaces, dots,
154- non-ASCII, control characters — is ** rejected at load time with a log
153+ ` [a-zA-Z0-9_-]{1,64} ` . Anything outside that set ( spaces, dots,
154+ non-ASCII, control characters) is ** rejected at load time with a log
155155warning** and the file is ignored. This keeps theme ids safe to render
156156unescaped in the UI picker, safe in log lines, and free of any
157157path-traversal or homoglyph mischief from crafted filenames.
0 commit comments