We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Design
Change the look, keep the words.
A page’s words and photographs are one thing; how it looks is another. Choose a theme for colour and type, a style template for how each kind of block looks, and a layout for the frame. Change any of them, and not a word of the page changes.
Themes
A theme is colour and type.
A theme holds a site’s colours and fonts: the page and its surfaces, text, the accent, buttons, borders, even the photo viewer’s background. Edit them with a live preview of the palette. Name a Google font, or upload your own and serve it from your own site.
Offer readers a choice of themes, light or dark, and let any page choose its own: this page is light, while the rest of this studio’s site is dark. A reader’s own choice wins for the visit. One of the themes Alnitak comes with is built to stay legible with colour vision deficiency.
Style recipes
Name a look once. Use it on any block.
A recipe is a named look for one kind of block: a card, a ruled table, a dark panel for code. Pick recipes from a menu on any block, give a single block CSS of its own when it needs it, and the editor’s preview shows the result as you go. A style template gathers recipes for each kind of block, so every title or every photo on a site gets the same treatment, and it sets the width text is read at, in one place.
Some recipes move: a block fades in, rises into place, or appears as you scroll to it. The entrances hold still for readers who ask their system for less motion.
The recipes this page is built from
| Recipe | What it does here |
|---|---|
| studio-reveal | From the style template, on every title, paragraph, photo and link: a quiet entrance, still for readers who ask for less motion. |
| alnitak-light-palette | From the style template, on every stack: this page’s light colours. |
| studio-heading-xl | The largest heading, for the page’s main claim. |
| studio-heading | The heading of each band. |
| studio-kicker | The small capitals above a heading. |
| studio-lead | The opening paragraph, larger. |
| studio-product-frame | The frame around each screenshot. |
| table-ruled | This table. |
| code-terminal | The dark panel for code. |
| underline-accent | Links underlined in the accent colour. |
| band-seamless | Each band meets the one above it, with no strip of page between. |
Layouts
A frame for the page, and a header you write like a page.
Five layouts frame a page: full width, a hero above the content, a sidebar on either side, or a hero and a sidebar. Make the header stay in view, and set how wide the content runs.
The header, the footer, the sidebar and the hero are documents of their own, written in the same editor, with the same blocks, recipes and languages. Each page shows the site’s, one of its own, or none, as a landing page might.
The Design page
Try a look on a real page before you apply it.
On the Design page, pick a theme, a layout and a style template, choose one of your pages, and see it in the new look at once. Apply makes them the site’s defaults, and no page is rewritten. Pages that chose their own look keep it; the Design page says how many there are, and can bring them back to the site’s design.
For agents
An agent styles through the same API.
Themes, fonts, recipes, style templates and the site’s design are all in the API, with a styling guide that teaches an agent the rules and the mistakes to avoid. The recipes made for these pages, the card, the ruled table and the dark code panel among them, were written by an agent through the API, and it saw each one rendered before anything was saved.
{
"slug": "card",
"block_type": "stack",
"styles": {
"__selectors__": {
"&": {
"background": "var(--color-surface-raised)",
"border": "1px solid var(--color-border)",
"border-radius": "1rem",
"padding": "clamp(1.4rem, 2.6vw, 2rem)"
}
}
}
}