Skip to content
Download

FormRiffSystemv0.1

One system. Every page.

The site, the manifesto and the app share these tokens and components. Dark is the default; day mode is real. Every text pair below meets WCAG AA, computed from tokens.css.

01Colour

Seven colours, a few roles.

Primitives are the brand. Components only ever use roles, and each role is a light-dark() pair, so a theme is one switch.

Brand primitives

paper--f-paper · #f2eddfkit text
ink--f-ink · #0b0b0bkit surface
graphite--f-graphite · #242424kit surfaceRaised
cobalt--f-cobalt · #0047ffkit accent
vermilion--f-vermilion · #ff533drare: one intervention per screen at most
stone--f-stone · #d8d3c8
chalk--f-chalk · #faf8f2

Derived primitives

--f-mist · #b9b5aakit textMuted
--f-hair-night · #262626kit border
--f-cobalt-lift · #a6b9ffkit accentText
--f-ink-2 · #151515raised band on Ink
--f-white · #ffffffon Cobalt; the raised card by day
--f-dust · #928e84metadata by night
--f-umber · #45423cmuted text by day
--f-ash · #625f57metadata by day
--f-rule-night · #454545
--f-rule-day · #88837acontrol border by day: 3.2:1 on Paper
--f-rule-control · #74716bcontrol border by night: 4.1:1 on Ink, 3.2:1 on Graphite
--f-hair-day · #e2dccf
--f-vermilion-deep · #b82c1aVermilion as text on Paper
--f-moss · #86bf95
--f-moss-deep · #2a7040
--f-amber · #d9ab5f
--f-amber-deep · #8a5a00
--f-coral · #ff7a66
--f-coral-deep · #c8321f
--f-motif-night · #5a5751
--f-motif-day · #a9a496

Semantic roles

Dark (default)data-theme="dark"

surface

fg text

muted text

subtle text

accent text

surface-2

fg text

muted text

subtle text

accent text

surface-3

fg text

muted text

subtle text

accent text

  • --f-surfacethe page
    f-ink #0b0b0b
  • --f-surface-2a raised band, the header once scrolled
    f-ink-2 #151515
  • --f-surface-3cards, menus, panels
    f-graphite #242424
  • --f-fgtext and icons
    f-paper #f2eddf
  • --f-mutedsecondary text, ledes, nav
    f-mist #b9b5aa
  • --f-subtlemetadata, kickers, captions
    f-dust #928e84
  • --f-linehairlines, dividers
    f-hair-night #262626
  • --f-line-strongstrong hairlines: frames, panel edges, rules (decorative)
    f-rule-night #454545
  • --f-controlthe border that identifies a control: ≥3:1 (WCAG 1.4.11)
    f-rule-control #74716b
  • --f-accentfills, contours, progress: never small text
    f-cobalt #0047ff
  • --f-accent-fgthe accent as text
    f-cobalt-lift #a6b9ff
  • --f-on-accent
    f-white #ffffff
  • --f-inversethe main CTA pill
    f-paper #f2eddf
  • --f-on-inverse
    f-ink #0b0b0b
  • --f-focus
    f-cobalt-lift #a6b9ff
  • --f-alertthe rare intervention, as text
    f-vermilion #ff533d
  • --f-ok
    f-moss #86bf95
  • --f-warn
    f-amber #d9ab5f
  • --f-bad
    f-coral #ff7a66
  • --f-motifcontours of the form studies (decorative)
    f-motif-night #5a5751

Daydata-theme="light"

surface

fg text

muted text

subtle text

accent text

surface-2

fg text

muted text

subtle text

accent text

surface-3

fg text

muted text

subtle text

accent text

  • --f-surfacethe page
    f-paper #f2eddf
  • --f-surface-2a raised band, the header once scrolled
    f-chalk #faf8f2
  • --f-surface-3cards, menus, panels
    f-white #ffffff
  • --f-fgtext and icons
    f-ink #0b0b0b
  • --f-mutedsecondary text, ledes, nav
    f-umber #45423c
  • --f-subtlemetadata, kickers, captions
    f-ash #625f57
  • --f-linehairlines, dividers
    f-hair-day #e2dccf
  • --f-line-strongstrong hairlines: frames, panel edges, rules (decorative)
    f-stone #d8d3c8
  • --f-controlthe border that identifies a control: ≥3:1 (WCAG 1.4.11)
    f-rule-day #88837a
  • --f-accentfills, contours, progress: never small text
    f-cobalt #0047ff
  • --f-accent-fgthe accent as text
    f-cobalt #0047ff
  • --f-on-accent
    f-white #ffffff
  • --f-inversethe main CTA pill
    f-ink #0b0b0b
  • --f-on-inverse
    f-paper #f2eddf
  • --f-focus
    f-cobalt #0047ff
  • --f-alertthe rare intervention, as text
    f-vermilion-deep #b82c1a
  • --f-ok
    f-moss-deep #2a7040
  • --f-warn
    f-amber-deep #8a5a00
  • --f-bad
    f-coral-deep #c8321f
  • --f-motifcontours of the form studies (decorative)
    f-motif-day #a9a496

02Type

Manrope and IBM Plex Mono.

Display heavy and tight; text calm; mono for kickers, numbers and data. Each step is a font shorthand plus a tracking token.

Dark (default)type scale

--f-display · .f-display

Give AI your taste.

--f-headline · .f-headline

One look, everywhere.

--f-title · .f-title

Collect, mix, ship.

--f-body-lg · .f-lede

A lede: one or two sentences that open a section, in the muted role.

--f-body · .f-body

Body text at 17 px. FormRiff keeps your references on your machine and gives every part one look: yours.

--f-body-sm · .f-small

Small text and captions, in the subtle role.

--f-mono · .f-label

01 / Collect

--f-code · .f-code

kit=formriff · 1440 · 768 · 390

Daytype scale

--f-display · .f-display

Give AI your taste.

--f-headline · .f-headline

One look, everywhere.

--f-title · .f-title

Collect, mix, ship.

--f-body-lg · .f-lede

A lede: one or two sentences that open a section, in the muted role.

--f-body · .f-body

Body text at 17 px. FormRiff keeps your references on your machine and gives every part one look: yours.

--f-body-sm · .f-small

Small text and captions, in the subtle role.

--f-mono · .f-label

01 / Collect

--f-code · .f-code

kit=formriff · 1440 · 768 · 390

Display shown at a reduced size inside the pane; on a page it runs clamp(56px, to the hero.

03Space · radius · motion

A 4 px grid, four radii, one curve.

Space

--f-space-1 4px
--f-space-2 8px
--f-space-3 12px
--f-space-4 16px
--f-space-5 24px
--f-space-6 32px
--f-space-7 48px
--f-space-8 64px
--f-space-9 96px
--f-space-10 144px

Layout

--f-max1360px
--f-gutterclamp(16px, 5vw, 80px)
--f-gap32px
--f-section144px
--f-header-h64px
--f-h-sm32px
--f-h-md40px
--f-h-lg48px

Radius

xs 4px
sm 8px
md 12px
lg 16px
pill 999px

Motion

--f-fast120ms
--f-micro200ms
--f-easecubic-bezier(0.05, 0.7, 0.1, 1)
--f-beat800ms
--f-stagger90ms
Hover or focus: --f-beat on --f-ease. Reduced motion stops it.

04Components

The parts every page is built from.

src/system/*.astro, markup classes in components.css. The app can use the same classes in its templates.

Dark (default)Button

Download

Eyebrow · Label · Theme toggle

01Collect

The manifesto12 lines

Subtle

Accent

Fg

Card

01 / Collect

Paste a site

FormRiff saves its pages and finds the parts it is made of.

Link card

Mix a kit

The whole card is the link; its border lights on hover.

Site header

Site footer

Wordmark

DayButton

Download

Eyebrow · Label · Theme toggle

01Collect

The manifesto12 lines

Subtle

Accent

Fg

Card

01 / Collect

Paste a site

FormRiff saves its pages and finds the parts it is made of.

Link card

Mix a kit

The whole card is the link; its border lights on hover.

Site header

Site footer

Wordmark

05Contrast

Every pair, computed.

Generated by src/system/contrast.mjs from tokens.css; the build of the table fails below 4.5:1 for text and 3:1 for focus and fills.

ModeTextOnRatioGrade
nightfgsurface16.83AAA
nightfgsurface-215.61AAA
nightfgsurface-313.27AAA
nightmutedsurface9.61AAA
nightmutedsurface-28.92AAA
nightmutedsurface-37.58AAA
nightsubtlesurface6.02AA
nightsubtlesurface-25.59AA
nightsubtlesurface-34.75AA
nightaccent-fgsurface10.31AAA
nightaccent-fgsurface-29.57AAA
nightaccent-fgsurface-38.13AAA
nighton-accentaccent6.28AA
nighton-inverseinverse16.83AAA
nightalertsurface6.15AA
nightalertsurface-34.85AA
nightoksurface9.28AAA
nightoksurface-37.32AAA
nightwarnsurface9.32AAA
nightwarnsurface-37.35AAA
nightbadsurface7.71AAA
nightbadsurface-36.08AA
nightfocussurface10.31≥3 non-text
nightaccentsurface3.14≥3 non-text (fill, never text)
nightcontrolsurface4.05≥3 non-text (control border)
nightcontrolsurface-23.75≥3 non-text (control border)
nightcontrolsurface-33.19≥3 non-text (control border)
dayfgsurface16.83AAA
dayfgsurface-218.53AAA
dayfgsurface-319.68AAA
daymutedsurface8.56AAA
daymutedsurface-29.43AAA
daymutedsurface-310.01AAA
daysubtlesurface5.45AA
daysubtlesurface-26.00AA
daysubtlesurface-36.38AA
dayaccent-fgsurface5.37AA
dayaccent-fgsurface-25.91AA
dayaccent-fgsurface-36.28AA
dayon-accentaccent6.28AA
dayon-inverseinverse16.83AAA
dayalertsurface5.26AA
dayalertsurface-36.15AA
dayoksurface5.14AA
dayoksurface-36.02AA
daywarnsurface5.07AA
daywarnsurface-35.93AA
daybadsurface4.57AA
daybadsurface-35.34AA
dayfocussurface5.37≥3 non-text
dayaccentsurface5.37≥3 non-text (fill, never text)
daycontrolsurface3.22≥3 non-text (control border)
daycontrolsurface-23.55≥3 non-text (control border)
daycontrolsurface-33.77≥3 non-text (control border)
riffon-accent (ink)vermilion6.15AA