▣
module · drop-in viewer
theme
The look of every HOLLOWBELL screen, and the numbers it lays out by.
by·posted 1mo ago
What it does
theme
The look of every HOLLOWBELL screen, and the numbers it lays out by.
Two things live here:
- The palette and the type ramp — wet-stone ink, bone, parchment, ember,
verdigris, blood and gold, plus the two bundled font families the game sets
in (
antonfor display,ebgaramondfor anything read as a sentence). No host-OS font is named, so the browser build draws what the native one draws. metrics()— the proportions of the screen as it is right now. It readsui.screenSize()on every call and returnsw,h, the unitu(which tracks the short edge), the paddings, the card measure, the type sizes and the bottom inset the engine's touch overlay needs. Nothing in the slice writes a pixel position chosen for one shape.
local T = require("presentation.theme")
local m = T.metrics(surfaceClass == "touch")
{ type = "vertical", style = T.panelStyle(m), children = {
T.menuRow(m, "resume", "Resume", nil, focused, true),
} }
Also here: label / paragraph / capsStyle for type, cardBackdrop and
panelStyle for card chrome, menuRow for a focusable choice, and riseIn /
emberPulse for motion.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.