The reference
Scrapbook
Handmade and community: white paper, petrol and kraft, editorial headings in Archivo Black, light frames.
Every preview on the site now wears Scrapbook.
On real blocks
The same markup as every other theme; only the stylesheet changes. The Customize button in the toolbar tries the decisions below on it.
Its decisions
What Scrapbook was generated from. Everything else — every ramp, every role, light and dark, every mood — is unfolded from these, and every text pair is checked for contrast.
- Brand
- #0b7285
- the colour every brand role is built from
- Accent
- #d6336c
- the second colour, for highlights
- Palette
- ivory #fffdf8
- the other colours the roles are assigned from
- Roles
- background ivory · sidebar ivory · card ivory.raised · popover ivory.raised · muted ivory.tint · secondary ivory.tint · accent ivory.tint
- which colour each surface and fill takes
- Primary action
- brand
- ink buttons, or buttons in the brand colour
- Neutral
- warm · whisper
- the greys: their temperature, and how much of it they carry
- Page
- ivory
- the page itself: white, or a palette colour
- Opens in
- light
- the mode a site opens in
- Bands
- strong · alt
- the named bands a page can call (mood-* classes)
- Fonts
- Archivo Black · Archivo
- headings · body
- Headings
- editorial · 400
- the scale and weight of the titles
- Radius
- subtle
- how round the corners are
- Depth
- offset
- the shadows of cards and overlays (offset: a sharp poster shadow)
- Lines
- solid
- the borders: fine or full strength, and their colour
- Button style
- solid
- solid, outline, soft or hard
- Fields
- outlined
- outlined, filled or underlined
- Density
- regular
- the spacing of the whole interface
- Section spacing
- regular
- the vertical rhythm between sections
- Page width
- regular
- the page’s width and reading measure
- Motion
- bouncy
- the character of transitions and reveals
Colours
The roles every component and block reads, light and dark.
--background
oklch(0.9942 0.0069 88.64) · oklch(0.2599 0.0074 95.35)
--foreground
oklch(0.2098 0.0025 67.69) · oklch(0.9736 0.0017 67.8)
--card
oklch(0.9942 0.0069 88.64) · oklch(0.3794 0.0088 88.73)
--muted
oklch(0.9942 0.0069 88.64) · oklch(0.3335 0.0074 84.59)
--muted-foreground
oklch(0.5488 0.0162 74.31) · oklch(0.7662 0.0132 75.34)
--border
oklch(0.9315 0.0017 67.8) · oklch(0.3641 0.0037 84.58)
--primary
oklch(0.509 0.0875 215.07) · oklch(0.6342 0.067 215.29)
--primary-foreground
oklch(1 0 0) · oklch(0.1726 0.002 106.61)
--brand
oklch(0.509 0.0875 215.07) · oklch(0.509 0.0875 215.07)
--brand-soft
oklch(0.9743 0.0065 185.28) · oklch(0.259 0.0249 213.32)
--brand-text
oklch(0.509 0.0875 215.07) · oklch(0.8163 0.0288 216.45)
--success
oklch(0.624 0.1269 158.51) · oklch(0.624 0.1269 158.51)
--warning
oklch(0.789 0.1413 86.31) · oklch(0.789 0.1413 86.31)
--destructive
oklch(0.5487 0.1792 27.9) · oklch(0.7784 0.0841 23.73)
--info
oklch(0.5569 0.1719 259.46) · oklch(0.7009 0.1314 260.97)
Every variable
Light
| --background | oklch(0.9942 0.0069 88.64) | |
| --foreground | oklch(0.2098 0.0025 67.69) | |
| --card | oklch(0.9942 0.0069 88.64) | |
| --muted | oklch(0.9942 0.0069 88.64) | |
| --muted-foreground | oklch(0.5488 0.0162 74.31) | |
| --border | oklch(0.9315 0.0017 67.8) | |
| --primary | oklch(0.509 0.0875 215.07) | |
| --primary-foreground | oklch(1 0 0) | |
| --secondary | oklch(0.9163 0.0058 84.57) | |
| --accent | oklch(0.9163 0.0058 84.57) | |
| --brand | oklch(0.509 0.0875 215.07) | |
| --brand-foreground | oklch(1 0 0) | |
| --brand-soft | oklch(0.9743 0.0065 185.28) | |
| --brand-text | oklch(0.509 0.0875 215.07) | |
| --ring | oklch(0.8163 0.0288 216.45) | |
| --success | oklch(0.624 0.1269 158.51) | |
| --warning | oklch(0.789 0.1413 86.31) | |
| --destructive | oklch(0.5487 0.1792 27.9) | |
| --info | oklch(0.5569 0.1719 259.46) |
Dark
| --background | oklch(0.2599 0.0074 95.35) | |
| --foreground | oklch(0.9736 0.0017 67.8) | |
| --card | oklch(0.3794 0.0088 88.73) | |
| --muted | oklch(0.3335 0.0074 84.59) | |
| --muted-foreground | oklch(0.7662 0.0132 75.34) | |
| --border | oklch(0.3641 0.0037 84.58) | |
| --primary | oklch(0.6342 0.067 215.29) | |
| --primary-foreground | oklch(0.1726 0.002 106.61) | |
| --secondary | oklch(0.3335 0.0074 84.59) | |
| --accent | oklch(0.3335 0.0074 84.59) | |
| --brand-soft | oklch(0.259 0.0249 213.32) | |
| --brand-text | oklch(0.8163 0.0288 216.45) | |
| --ring | oklch(0.509 0.0875 215.07) | |
| --destructive | oklch(0.7784 0.0841 23.73) | |
| --info | oklch(0.7009 0.1314 260.97) |
brand
accent
neutral
Type
Archivo Black for headings, Archivo for the text.
Headings · Archivo Black
The quick brown fox jumps over the lazy dog
Text · Archivo
Every theme is a stylesheet. The markup never changes: the same blocks, the same components, and the decisions you make decide how they read — the corners, the depth, the colours and these words.
const theme = 'scrapbook' // and its code
Shape and depth
Its corners, from the smallest control to a panel, and its shadows, from a card at rest to an overlay.
Control corner
resting shadow
Field corner
lifted, on hover
Card corner
a popover
Panel corner
a dialog
Use it
Its stylesheet
After Tailwind, in your global CSS.
@import '@trame-ui/themes/themes/scrapbook/css/tokens.css';
@import '@trame-ui/themes/themes/scrapbook/css/theme-light.css';
@import '@trame-ui/themes/themes/scrapbook/css/theme-dark.css';
@import '@trame-ui/themes/themes/scrapbook/css/theme-moods.css';
@import '@trame-ui/themes/themes/scrapbook/css/type.css';
@import '@trame-ui/themes/themes/scrapbook/css/controls.css';
@import '@trame-ui/themes/themes/scrapbook/css/motion.css';Or make it yours
Change a decision in its intent and generate the theme: every ramp, role and contrast check follows.
{
"name": "scrapbook",
"label": "Scrapbook",
"description": "Handmade and community: white paper, petrol and kraft, editorial headings in Archivo Black, light frames.",
"primary": "brand",
"palette": {
"brand": "#0b7285",
"accent": "#d6336c",
"ivory": "#fffdf8"
},
"neutral": {
"temperature": "warm",
"chroma": "whisper"
},
"roles": {
"background": "ivory",
"sidebar": "ivory",
"card": "ivory.raised",
"popover": "ivory.raised",
"muted": "ivory.tint",
"secondary": "ivory.tint",
"accent": "ivory.tint"
},
"schemes": {
"strong": "#0b4f5c",
"alt": "#c9a77c"
},
"fonts": {
"heading": "Archivo Black",
"body": "Archivo"
},
"headings": {
"scale": "editorial",
"weight": 400,
"tracking": "-0.01em"
},
"radius": "subtle",
"depth": {
"recipe": "offset",
"x": 3,
"y": 3,
"blur": 0
},
"lines": {
"style": "solid"
},
"button": "solid",
"hover": "lift",
"field": "outlined",
"density": "regular",
"sectionSpacing": "regular",
"container": "regular",
"motion": "bouncy",
"relief": "offset",
"nav": {
"recipe": "highlight",
"current": "brand"
}
}node node_modules/@trame-ui/tokens/src/generate.mjs intent.json --out=themes