Style guide
Every piece of this site, on one page.
Colors, type and components, each with the class that makes it. Copy from here when you build a new page. Switch the theme to see both sets of colors.
Color
Ten names, each with a light and a dark value. They are set at the top of src/input.css.
- paperPage background
- surfaceCards and fields
- sunkenBands and tables
- inkText and solid buttons
- mutedSecondary text
- line-strongBorders
- accentLinks, marks, focus
- accent-softQuiet highlights
- markThe marker stroke
- badErrors
Type
Fraunces for headings, Instrument Sans for reading, JetBrains Mono for labels.
text-hero
Start on site
text-title
Start on site
text-heading
Show the working thing
text-lead
A prototype someone can hold beats a slide someone can admire.
body
We do not design for places we have not stood in. Every project begins with a visit, and the budget always has travel in it. A link in running text.
accents
An italic word and a marked one.
Tags and notes
Small labels, and boxes for something worth saying twice.
A plain note, for an aside.
Good news, or something finished.
Something went wrong, or needs fixing.
Form fields
Every field has a label, room for a hint, and a place for its error. Leave a required field empty and move on to see one.
Cards
A project, a journal post, and a plain card.
Table
Scrolls sideways inside itself on a narrow screen, so the page never does.
| Phase | Weeks | Who | You get |
|---|---|---|---|
| Go and look | 1 | Two of us, on site | Notes and photographs |
| Frame | 1 | Research and design | A two-page brief |
| Make | 6 to 12 | The whole team | Working versions, weekly |
Tabs
Arrow keys move between them. Used for the four services.
Questions
Built on the browser's own details element, so it works without the script.
Does this open and close?
It does, with a click, a tap, Enter or Space.
Do they close each other?
Yes: questions that share a name close when another opens.
Filter chips
Buttons that show and hide what is in a list, and say how many are left.
Showing all 3 items.
- 01
- 02
- 03
Copy and toast
A small message at the bottom of the window that goes away on its own.
Pagination
For a journal with more posts than fit on a page.