Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Theme: buttons

Root menu / screen button chrome in themes/default.json. Choice menus use Choice packs, not this block (unless a pack inherits it).

"buttons": {
  "min_width": 400,
  "corner_radius": 8,
  "border_width": 2,
  "padding_left": 16,
  "padding_right": 16,
  "padding_top": 6,
  "padding_bottom": 10,
  "normal_bg": "#c5cad5b0",
  "hover_bg": "#dfdcd7c0",
  "pressed_bg": "#a8afc290",
  "font_color": "#1e2133",
  "font_hover_color": "#9a4e2a"
}

Usually you need

KeyTypeDefaultEffect
normal_bg / hover_bg / pressed_bgcolorcode greysFlat fills
font_color / font_hover_colorcolor—Label colours
font_sizeinttypography.sizes.buttonPack face size (× typography.size_scale)
min_widthint0 if omitMinimum width when > 0
padding_*int—Content margins

All keys

KeyTypeEffect
spacingintMenu button separation
corner_radiusintUniform flat corner radius
corner_radius_top_left / top_right / bottom_right / bottom_leftintPer-corner radius (any present → per-corner mode; missing sides fall back to corner_radius)
border_widthintUniform flat border width
border_width_left / top / right / bottomintPer-side border (any present → per-side mode; missing sides fall back to border_width)
min_width / min_heightintMin size when > 0
padding_left / padding_right / padding_top / padding_bottomintContent margins
normal_bg / hover_bg / pressed_bg / focus_bg / disabled_bgcolorFlat fills (focus → hover if omit)
normal_border / hover_border / pressed_border / focus_border / disabled_bordercolorFlat borders
normal_texture / hover_texture / pressed_texture / focus_texture / disabled_texturetexture spec or nullPer-state faces
texture_9slice[L,T,R,B]Nine-slice margins
fontstringFamily base under fonts/ (same as typography.font); omit → font_menu → font
font_variantstringregular | bold | italic | bold_italic (default regular)
font_sizeintFace size in px × typography.size_scale; omit → typography.sizes.button
font_color / font_hover_color / font_pressed_color / font_focus_color / font_disabled_colorcolorLabel colours
font_outline_size / font_outline_colorint / colorLabel outline
font_shadow_offset_x / font_shadow_offset_y / font_shadow_colorint / colorLabel shadow
align_h or alignmentstringleft | center | right (horizontal only)
icon / hover_icon / pressed_icon / focus_iconpathGlyphs (avoid dumping defaults on root)
icon_max_widthintIcon width cap
states.<state>.paddingsides objectPer-draw-state padding (normal / hover / pressed / focus / disabled)

Named packs (locale_button, info_close_button, hud_menu_button, …) use the same key set — Named button packs. Textures: Texture specs. Styling model · Typography.