theme
¶
Colors for the Reloaded terminal UI.
Every value comes from the shared Color palette (Tailwind) and each role mirrors a dark mode token in the Dojo's theme.css, so the terminal and the browser read as the same product. Pick a role from here instead of a color name or a hex value.
CANVAS
module-attribute
¶
Page background.
-
Reference
mujoco_mojoutilslayersreloadedtheme
SURFACE
module-attribute
¶
Panels and bars sitting on the canvas.
-
Reference
mujoco_mojoutilslayersreloadedthemeMOJO_THEME
SURFACE_INSET
module-attribute
¶
Deeply nested inputs.
-
Reference
mujoco_mojoutilslayersreloadedthemeMOJO_THEME
LINE
module-attribute
¶
Structural borders and dividers.
-
Reference
mujoco_mojoutilslayersreloadedtheme
SCRIM
module-attribute
¶
Backdrop behind a modal.
-
Reference
mujoco_mojoutilslayersreloadedthemeMOJO_THEME
INK_BODY
module-attribute
¶
Default text.
-
Reference
mujoco_mojoutilslayersreloadedtheme
INK_SECONDARY
module-attribute
¶
Labels and de-emphasized text.
-
Reference
mujoco_mojoutilslayersreloadedthemeMOJO_THEME
INK_MUTED
module-attribute
¶
Timestamps, disabled and empty states.
-
Reference
mujoco_mojoutilslayersreloadedtheme
ACCENT
module-attribute
¶
The brand color.
-
Reference
mujoco_mojoutilslayersreloadedtheme
LINK
module-attribute
¶
The accent step used for text on a dark background.
-
Reference
mujoco_mojoutilslayersreloadedtheme
ON_ACCENT
module-attribute
¶
Readable text over a filled accent, success, warning, or danger surface.
-
Reference
mujoco_mojoutilslayersreloadedthemeMOJO_THEME
MOJO_ANSI_THEME
module-attribute
¶
MOJO_ANSI_THEME = TerminalTheme(
_rgb(CANVAS),
_rgb(INK_BODY),
normal=[
_rgb(c)
for c in (
LINE,
DANGER,
SUCCESS,
WARNING,
INFO,
SECONDARY,
ACCENT,
INK_BODY,
)
],
bright=[
_rgb(c)
for c in (
INK_MUTED,
ROSE_400,
EMERALD_400,
AMBER_400,
INDIGO_400,
VIOLET_400,
LINK,
SLATE_50,
)
],
)
What the 16 named terminal colors (green, bold red, cyan, and so on) mean inside the UI. This is what lets markup like [bold green] in controller messages and in user code come out in the Mojo palette.
MOJO_THEME
module-attribute
¶
MOJO_THEME = Theme(
name="mojo",
primary=ACCENT,
secondary=SECONDARY,
accent=LINK,
warning=WARNING,
error=DANGER,
success=SUCCESS,
foreground=INK_BODY,
background=CANVAS,
surface=SURFACE,
panel=SURFACE,
dark=True,
variables={
"border": ACCENT,
"border-blurred": LINE,
"input-cursor-background": ACCENT,
"input-cursor-foreground": ON_ACCENT,
"input-selection-background": f"{ACCENT} 35%",
"footer-background": SURFACE,
"footer-key-foreground": LINK,
"footer-description-foreground": INK_SECONDARY,
"scrollbar": SLATE_600,
"scrollbar-hover": INK_MUTED,
"scrollbar-active": ACCENT,
"scrollbar-background": CANVAS,
"scrollbar-corner-color": CANVAS,
"link-color": LINK,
"surface-inset": SURFACE_INSET,
"scrim": SCRIM,
},
)
The Textual theme, registered and selected by ReloadedApp.