Themes
Shonen Ink and Dojo, how to switch between them, and how menus are generated and edited as data.
rugen’s menus are data, not code. A theme is a folder under
motif/themes/<name>/ with TOML screen layouts, WebP art and a matching
MUGEN screenpack (system.def, fight.def, SFF sprites, fonts). Two themes
ship with the game.
Shonen Ink (ink, the default)
Paper and screentone dots, black ink panels with hard offset shadows, red stamps and ”!!” marks, skewed slabs and speed-line fans: a manga page. This site borrows its look. The fight HUD is the “Ink Slab” lifebar set.
Since 0.6 the ink screens are redesigned: one online hub with toasts and dialogs, PROFILE, the rooms, the matchup face-off, a pause menu that dims the fight with a two-column move list, a result screen that names the winner, and Smash-style fighter cards in arena fights. Room codes get a heavy font of their own.


Dojo (dojo)
A training hall at night, in lacquer and washi: dark lacquer walls, wooden
pillars, beams and plaques, washi paper sheets in wooden frames, sumi
lettering and vermilion hanko seals. Focus is always a brass edge around a
vermilion plaque; player 1 is vermilion, player 2 brass. Its pixel fonts
(Press Start, Jersey) set tags, numbers and captions; the palette is the
theme’s own palette.gpl. It has every screen the ink theme has, the stage
select and the online hub included.


Switching themes
- In the game: OPTIONS → INTERFACE → UI THEME.
- In
rugen.toml:[video] theme = "ink"or"dojo";"classic"uses the flatmotif/folder. - Your own: drop a theme folder into
themes/next tochars/(or runrugen theme new <name>). It shows up in INTERFACE as YOURS and reloads live while you edit it: see Your own themes.
Files missing from a theme fall back to the flat motif/, then to data/.
You can also drop a classic MUGEN screenpack into data/.
Regenerating the defaults: rugen ui-gen
Both themes are drawn by code, so they can be rebuilt at any time:
rugen ui-gen --theme ink # Shonen Ink → motif/themes/ink/
rugen ui-gen --theme dojo # Dojo → motif/themes/dojo/ (also the default)
rugen ui-gen --theme ink --out motif/themes/my-ink --font bold.ttf
| Option | Default | Meaning |
|---|---|---|
--theme | dojo | ink or dojo. |
--out | motif/themes/<theme> | Output folder. |
--motif | motif | Shared motif folder (fonts, kit, palette). |
--font | a system bold TTF (Liberation Sans Narrow, DejaVu Sans Condensed, Arial, …) | Font used for generated text. |
Related generators:
rugen screenpack-gen [--font bold.ttf] [--out motif/themes/dojo] # system/fight screenpack of a theme
rugen fontgen bold.ttf --size 13 --italic 3 --rim --out motif/font/my.def --preview my.png
rugen stage-gen [--out motif/stages] # the four built-in stages
rugen pixelize in.png out.webp --width 640 --dither # pixelize one image by hand
rugen kit-import # re-export the UI kit pieces
Editing a theme
Screens are TOML files in motif/themes/<theme>/ui/ (title.toml,
options.toml, controls.toml, select.toml, stages.toml, vs.toml,
pause.toml, result.toml, online.toml). They are laid out in a virtual 1280x720 space
and built from nodes (panel, image, text, button, vbox, hbox,
list, grid) with positions, docking, 9-slice images, skew, entry
animations and text bindings such as {profile.name}. Buttons trigger
action strings (mode:arcade, netplay, back, …) and are reachable by
keyboard, gamepad and mouse.
The node reference is the module documentation at the top of
crates/ui/src/lib.rs in the engine repository, and each theme’s
README.md (motif/themes/ink/README.md, motif/themes/dojo/README.md)
lists its fonts, colour banks and the data the options and controls pages
bind to. See also Screenpacks: TOML themes.
Prefer WebP for art; PNG works too.
Something wrong on this page? Edit it on GitHub.