forever components

Swiss Typographic

Accent Shift

A red accent block migrates through 6 discrete modular positions on a dark 12-column grid while bold Swiss type and an expanding red rule animate in sync.

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

Dark-mode hero sections, design system showcases, typographic brand moments needing restrained ambient motion.

When not to

Light backgrounds (bg hardcoded dark). Contexts needing interactive input — this is purely decorative and passive.

Working with an AI agent

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

Change accent color to electric blue by setting --sw09-accent to #2563eb, then update the heading text from "Accent Shift." to "Form Shift." in the h1 element. 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

  • accent color (--sw09-accent, default #e8482b)
  • heading text (h1.sw09-h content)
  • animation duration (11s on sw09-march and sw09-rule)
  • grid cell positions (seed array)
  • keyframe translate values in sw09-march
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper with visibilitychange pause
  • prefers-reduced-motion guard (CSS + JS early-return)
  • grid-template-columns/rows defining the modular field
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Light re-theme via the [data-theme=light] token block; catalog bg/accent describe the dark default
  • Transform percentages in keyframes are relative to the element size, not the grid; changing grid spans may require re-tuning translate values

swisstypographygridgeometricaccentloopminimal

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.
  • Type RampFive-step type scale drifts horizontally and fades in a staggered sine wave on a Swiss baseline grid; red accent rules breathe in opposition.
  • 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.