forever components

Swiss Typographic

Type Ramp

Five-step type scale drifts horizontally and fades in a staggered sine wave on a Swiss baseline grid; red accent rules breathe in opposition.

csslight complexitysubtle motion

Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited

Live demo — the real component, running in a sandbox. One self-contained HTML file, zero dependencies. Open it on the canvas →
Worth keeping? Votes steer what gets built next — sign in to cast one, free to read

When to use it

Design-system showcases, typographic hero sections, Swiss/modernist brand aesthetics needing ambient motion.

When not to

Contexts requiring legible static type — the constant drift and opacity shift make reading the words difficult.

Working with an AI agent

Every component ships agent-ready metadata. An example instruction for this one:

Change the five words to 'Scale', 'Form', 'Grid', 'Space', 'Weight', and set the bold row accent to #0057FF instead of #e8482b. Theme: dark tokens live in :root, the light variant in :root[data-theme="light"]; ?theme=light or a {type:'forever:theme'} postMessage switches at runtime.

Safe to edit

  • word content (.sw02-word text nodes)
  • drift amplitude per row (amp array, 14-k*1.4)
  • animation speed (x = t*0.0011)
  • accent red color (#e8482b)
  • font-size steps (.sw02-r1 through .sw02-r5 vmin values)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • prefers-reduced-motion guard (drawOne static fallback)
  • visibilitychange pause/resume
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Font weight steps rely on system Helvetica/Arial — no variable font axis, weights snap to nearest available
  • Drift is purely horizontal; vertical rhythm is fixed via CSS flex layout

typographyswisstype-scalebaseline-gridweightambientloop

More Swiss Typographic components

  • Grid SystemA 12x12 CSS grid of ink, outline, and red accent blocks that scale in and decompose in staggered rhythm, composing an asymmetric Swiss typographic layout.
  • Column FlowThree columns of text-block bars flow in from the left, scale to full justified width, then retract in staggered typographic rhythm with red accent lines.
  • Baseline TickRed vertical bar sweeps pendulum-style across a Swiss baseline grid at 120 BPM; "tempo" and "measure" flash in sync with each beat.
  • Poster BuildSwiss-grid poster assembles itself: ink and red panels wipe/slide into a 12x16 grid while "POSTER BUILD" rises line by line beneath a red rule.
  • Rule LinesSix horizontal bars slide in from alternating edges then pulse slowly. One red accent rule and a vertical axis enforce Swiss typographic restraint.
  • Rotated HeadlineBold headline rotates 90 degrees to snap vertical along a modular grid column while a red accent block slides in to fill negative space.