The reference

Scrapbook

Handmade and community: white paper, petrol and kraft, editorial headings in Archivo Black, light frames.

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.

Every variable

Light

--backgroundoklch(0.9942 0.0069 88.64)
--foregroundoklch(0.2098 0.0025 67.69)
--cardoklch(0.9942 0.0069 88.64)
--mutedoklch(0.9942 0.0069 88.64)
--muted-foregroundoklch(0.5488 0.0162 74.31)
--borderoklch(0.9315 0.0017 67.8)
--primaryoklch(0.509 0.0875 215.07)
--primary-foregroundoklch(1 0 0)
--secondaryoklch(0.9163 0.0058 84.57)
--accentoklch(0.9163 0.0058 84.57)
--brandoklch(0.509 0.0875 215.07)
--brand-foregroundoklch(1 0 0)
--brand-softoklch(0.9743 0.0065 185.28)
--brand-textoklch(0.509 0.0875 215.07)
--ringoklch(0.8163 0.0288 216.45)
--successoklch(0.624 0.1269 158.51)
--warningoklch(0.789 0.1413 86.31)
--destructiveoklch(0.5487 0.1792 27.9)
--infooklch(0.5569 0.1719 259.46)

Dark

--backgroundoklch(0.2599 0.0074 95.35)
--foregroundoklch(0.9736 0.0017 67.8)
--cardoklch(0.3794 0.0088 88.73)
--mutedoklch(0.3335 0.0074 84.59)
--muted-foregroundoklch(0.7662 0.0132 75.34)
--borderoklch(0.3641 0.0037 84.58)
--primaryoklch(0.6342 0.067 215.29)
--primary-foregroundoklch(0.1726 0.002 106.61)
--secondaryoklch(0.3335 0.0074 84.59)
--accentoklch(0.3335 0.0074 84.59)
--brand-softoklch(0.259 0.0249 213.32)
--brand-textoklch(0.8163 0.0288 216.45)
--ringoklch(0.509 0.0875 215.07)
--destructiveoklch(0.7784 0.0841 23.73)
--infooklch(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