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
--f-paper · #f2eddfkit text--f-ink · #0b0b0bkit surface--f-graphite · #242424kit surfaceRaised--f-cobalt · #0047ffkit accent--f-vermilion · #ff533drare: one intervention per screen at most--f-stone · #d8d3c8--f-chalk · #faf8f2Derived 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 · #a9a496Semantic 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 144pxLayout
--f-max | 1360px |
--f-gutter | clamp(16px, 5vw, 80px) |
--f-gap | 32px |
--f-section | 144px |
--f-header-h | 64px |
--f-h-sm | 32px |
--f-h-md | 40px |
--f-h-lg | 48px |
Radius
xs 4pxsm 8pxmd 12pxlg 16pxpill 999pxMotion
--f-fast | 120ms |
--f-micro | 200ms |
--f-ease | cubic-bezier(0.05, 0.7, 0.1, 1) |
--f-beat | 800ms |
--f-stagger | 90ms |
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
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
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.
| Mode | Text | On | Ratio | Grade |
|---|---|---|---|---|
| night | fg | surface | 16.83 | AAA |
| night | fg | surface-2 | 15.61 | AAA |
| night | fg | surface-3 | 13.27 | AAA |
| night | muted | surface | 9.61 | AAA |
| night | muted | surface-2 | 8.92 | AAA |
| night | muted | surface-3 | 7.58 | AAA |
| night | subtle | surface | 6.02 | AA |
| night | subtle | surface-2 | 5.59 | AA |
| night | subtle | surface-3 | 4.75 | AA |
| night | accent-fg | surface | 10.31 | AAA |
| night | accent-fg | surface-2 | 9.57 | AAA |
| night | accent-fg | surface-3 | 8.13 | AAA |
| night | on-accent | accent | 6.28 | AA |
| night | on-inverse | inverse | 16.83 | AAA |
| night | alert | surface | 6.15 | AA |
| night | alert | surface-3 | 4.85 | AA |
| night | ok | surface | 9.28 | AAA |
| night | ok | surface-3 | 7.32 | AAA |
| night | warn | surface | 9.32 | AAA |
| night | warn | surface-3 | 7.35 | AAA |
| night | bad | surface | 7.71 | AAA |
| night | bad | surface-3 | 6.08 | AA |
| night | focus | surface | 10.31 | ≥3 non-text |
| night | accent | surface | 3.14 | ≥3 non-text (fill, never text) |
| night | control | surface | 4.05 | ≥3 non-text (control border) |
| night | control | surface-2 | 3.75 | ≥3 non-text (control border) |
| night | control | surface-3 | 3.19 | ≥3 non-text (control border) |
| day | fg | surface | 16.83 | AAA |
| day | fg | surface-2 | 18.53 | AAA |
| day | fg | surface-3 | 19.68 | AAA |
| day | muted | surface | 8.56 | AAA |
| day | muted | surface-2 | 9.43 | AAA |
| day | muted | surface-3 | 10.01 | AAA |
| day | subtle | surface | 5.45 | AA |
| day | subtle | surface-2 | 6.00 | AA |
| day | subtle | surface-3 | 6.38 | AA |
| day | accent-fg | surface | 5.37 | AA |
| day | accent-fg | surface-2 | 5.91 | AA |
| day | accent-fg | surface-3 | 6.28 | AA |
| day | on-accent | accent | 6.28 | AA |
| day | on-inverse | inverse | 16.83 | AAA |
| day | alert | surface | 5.26 | AA |
| day | alert | surface-3 | 6.15 | AA |
| day | ok | surface | 5.14 | AA |
| day | ok | surface-3 | 6.02 | AA |
| day | warn | surface | 5.07 | AA |
| day | warn | surface-3 | 5.93 | AA |
| day | bad | surface | 4.57 | AA |
| day | bad | surface-3 | 5.34 | AA |
| day | focus | surface | 5.37 | ≥3 non-text |
| day | accent | surface | 5.37 | ≥3 non-text (fill, never text) |
| day | control | surface | 3.22 | ≥3 non-text (control border) |
| day | control | surface-2 | 3.55 | ≥3 non-text (control border) |
| day | control | surface-3 | 3.77 | ≥3 non-text (control border) |
| riff | on-accent (ink) | vermilion | 6.15 | AA |