What it does
Set game.ui.theme = 'block' and every widget the ui pack draws wears it: buttons in every colour, round icon
buttons, windows and title bars, sliders, toggles, progress bars, checkboxes, radios, text fields and lists. A button
is a clean face with a slight gradient, on a darker lip in its own hue, under a caption with a hard shadow in the
lip's colour. The caption is white, or the colour's dark ink on a pale face, so a pastel button stays legible. It is
style data, not images, and one button style fits every height.
Features
- The flat 3D key — a 7 px lip at the 64 px design height and 10 px corners, with no outline and no gloss.
- Readable on any colour — white captions on strong colours, dark ones on pale colours.
- Passion One captions — a bold display face with a hard drop shadow.
- A button per colour —
default,good,warn,bad,flatand ten named colours, with a matching speech box.
Good for
- Hyper-casual games, where the interface should get out of the way.
- Modern minimal puzzle games with flat art.
- Pastel palettes, whose pale buttons need dark captions to read.
- Clean settings and menu screens in any game that wants depth without decoration.
Make it yours
The options are color (teal by default), surface for the windows (a slate blue), accent, radius (10, or
'pill'), depth (7), roles, extra colors and designHeight; the material has no trim. Keep teal keys on slate
windows for a puzzle game, or make pink pills with a mint colour added; with depth: 0 the buttons become fully
flat and nudge down when pressed.
A quick look
// manifest: … typography, ui, ui-skins, ui-skin-block
game.ui.theme = 'block';
game.ui.button({ text: 'PLAY', style: 'good', icon: 'play', onClick: start }); // sized to its caption and icon
game.ui.button({ h: 72, icon: 'settings', style: 'icon' }); // the round icon button
game.skins.use({ material: 'block', color: 'pink', name: 'pink-block' }); // another colour, live
Works with
ui-skins— required; the generator andgame.skins, overuiandtypography.ui-skin-jellyandui-skin-glossy— when the buttons should shine and carry an outline.ui-skin-cartoon— flat colour too, but inked and comic.
Good to know
- The options recolour and reshape the look but do not change it; for another, compose another skin.
- Passion One comes from the CDN when the skin is first chosen, and covers Latin, Greek and Cyrillic.
- Stroked labels and headings redraw the text behind itself: fine for titles, wasteful on a label rewritten every frame.
Changes
3.0.0-2 (2026-10-21)
- Fixed: the skin's font, Passion One, loads a re-baked copy with fewer specks at sharp corners and where strokes cross, which showed in large titles and buttons.






