Your app's design system
rastrillo new hands your app a stylesheet, a theme, and three scripts. They land in static/ and they are yours from that moment — edit them, delete what you do not use, replace them entirely. Nothing in the framework reaches back in.
That leaves a question this page answers: when you want something the design system does not give you, where does it go?
Customising, cheapest first
Pick a different theme. rastrillo new --theme=signal, or swap static/theme.css later. Three ship: day, the default, with natural depth, shadows lit by the hour and a sheen under the pointer; plain and signal, which are flat. Swapping changes colour, type family, shape and depth, and nothing else has to move.
Override tokens in your own CSS. The head block is your slot, and it comes last, so your stylesheet wins the ties it should win:
{{define "head"}}<link rel="stylesheet" href="/static/app.css">{{end}}
:root { --rst-accent: light-dark(#7c3aed, #a78bfa); --rst-radius: 4px; }
Every component paints itself from these. In day that one line changes the accent everywhere: the fills take its hue at the theme's own lightness, with its chroma scaled and capped, so a grey accent gives a grey button and a white label reads on any hue; the tints, the focus ring and the light's colours are mixed from it. The fills need relative colour (Firefox 128 and later; every Chrome and Safari at the floor), and an older engine keeps day's cobalt fills while following the accent everywhere else. In plain and signal every new token is an alias of the semantic token it stood in for, so a rebrand that sets --rst-accent, --rst-accent-soft, --rst-surface or --rst-line reaches the same controls it always did; the CHANGELOG names them.
Write your own theme. Replace static/theme.css. The only contract is the token set: declare every name day declares and every component already knows what to do with it. A theme of your own reads to rastrillo doctor as "custom or drifted" — supported, not damage.
Edit core.css or extras.css. They are your files. Name each edited file in vendoredIsMine in the generated test so an upgrade does not report your deliberate changes as drift.
The ladder is deliberate. Each rung costs more to carry across upgrades than the one above it.
The light
static/light.js moves the light the depth styles read: the shadows' light comes from the hour, a button catches a sheen under the pointer, and a card's rim brightens near it. It writes custom properties and nothing else, runs one animation frame loop only while something is easing, does not run under reduced motion and does nothing under forced colours. The whole page's light can follow the pointer instead: set FOLLOW to true at the top of the file. It is off because every write of it restyles the page.
To turn it off, delete static/light.js and its <script> tag from your layout, and name it in vendoredIsMine in vendored_test.go. rastrillo doctor then lists the file as yours, removed on purpose, and --fix leaves it alone. To flatten the design and keep the script, set the depth, sheen, light and press tokens in your theme the way plain.css does: transparent, 0 and 0px, and --rst-light-rim to your line colour, or each card's hairline gets a hole near the pointer.
Components the framework does not ship
Write them in your app, in your app's CSS. Do not put them in ui — the framework's vocabulary is what every rastrillo app shares, and a component only your app needs is not that.
Write them in the same grammar so they read like the rest of your markup: an attribute for what a thing is, class for utilities that apply anywhere.
<div app-invoice-row app-invoice-row="overdue">
[app-invoice-row] { … }
[app-invoice-row~="overdue"] { … }
Use your own prefix. rst- is the framework's, and a future version may claim a name you took.
When a second app needs the same component
Move it to a module both depend on. Not before — two specs describing the same want are two guesses, where two working implementations are two facts, and the second use is what tells you the shape the first one got wrong.
A copy is the trigger. The day one app copies or imports another's component, extract it that week and delete the copy. Waiting for "a second consumer appears" never fires; copying is cheap and immediate, so name the cheap act.
A shared module depends on ui, keeps its bones — the tokens, the vocabulary, the accessibility floors — and adds its own components and themes on top. It is not a fork, and it is more than a theme.
Upgrading
Fiesta's stylesheets are copied into your app once and frozen there, while the partials they style keep upgrading with the module. An app can run new markup against old CSS and see nothing but a slightly wrong screen.
So re-copy them when you upgrade:
rastrillo doctor # what drifted
rastrillo doctor --fix # re-copy them
doctor compares your frozen files against the module's. It reports a version mismatch as a mismatch rather than as drift, and refuses --fix across one — copying newer assets into an app that compiles against an older framework manufactures the fault the tool is looking for.
Which spelling to write
Use attributes such as <div rst-box> and rst-btn="primary". From v0.53.0, Fiesta 2 styles components written with attributes. Component markup written with classes is unstyled.
Utilities stay classes, and there are seven of them: rst-sr-only, rst-mono, rst-m-hide, rst-grow, rst-nm, rst-danger, rst-cell-mut. They are not kinds — they are cross-cutting styling, which is what class is for — so they keep the class spelling permanently rather than being migrated and un-migrated.
This matters more than it sounds, because the failure is silent. <span rst-sr-only> has no attribute selector behind it, so the label you meant to hide is simply visible — and that reads as a content mistake rather than a spelling one. rastrillo markup knows the seven and leaves them alone; it is your hand-written markup that can get this wrong.
rastrillo markup --fix converts an app's class markup to attributes. Run it when you upgrade to v0.53.0, before or with rastrillo doctor --fix.
Read this page as markdown — exact, unstyled, and cheap for an agent to fetch.