System Studio

Presets and Randomize Design

A preset is a complete identity. Randomize Design generates new ones within curated relationships and hard constraints. Everything on this page is read from the same modules the Studio runs.

implemented

Preset composition

A preset is a bundle of values for every design dimension, never just a palette. It sets theme, accent, typeface, fine-tuning (reset to default), spacing, corners, button, card, navigation, hero, project presentation and motion. It never changes content. Selecting a preset applies the whole bundle as one history entry; changing anything afterwards marks the design as Custom (the Studio compares the current values with the preset bundle). Editorial is the original identity and equals the defaults, so Reset returns to exactly it.

Presetthemeaccenttypedensityradiusbuttoncardnavheroprojectsmotion
Editorial
Bold, cinematic, ink and lavender
Match deviceLavenderGroteskComfortableSharpSolidRaisedMinimalEditorialCinematicMatch my device
Swiss Minimal
Calm, light and orderly
LightEmberNeo-groteskSpaciousSubtleOutlineOutlinedBoxedSplitGridSubtle
Neo Brutalism
Loud type, hard borders, offset shadows
LightRosePosterComfortableSharpOffset shadowOffsetSplitAsymmetricMasonryDynamic
Modern Studio
Soft, floating and contemporary
DarkVioletStudioComfortableRoundedSolidRaisedFloatingCenteredHorizontal gallerySmooth
Terminal
Monospaced, dark and precise
DarkAcidMonoCompactSharpGhostOutlinedMinimalSplitIndexSubtle
Luxury Editorial
Elegant serif, generous whitespace
LightSandLuxe serifExtra spaciousSubtleUnderlineMinimalCenteredFull bleedCinematicSmooth

Presets also set display size and border weights through the preset token variants (for example Neo Brutalism uses 2px and 3px borders and larger display type). A preset never overrides an OS reduced-motion request: motion is left as it is.

Randomization architecture

The engine is one pure module, src/studio/randomize.ts. It reads a configuration and returns a patch; it does not touch the page, the store or content. Rendering lives elsewhere.

  1. Families (curated relationships). Each preset doubles as a family: the values that belong together. A run picks a family other than the current one, then draws each value from the family about 82% of the time and from the whole list otherwise, so results are coherent but not predictable.
  2. Rules. Hard compatibility, quality and accessibility constraints over a complete configuration (below).
  3. Locks. A locked category is never changed. Rules only repair values that are free.
  4. Rejection sampling. Up to 400 candidates are generated until one breaks no repairable rule, is not a repeat of the last eight designs, and differs enough from the current one. If the rules cannot be met because of locks, the least-violating candidate is returned with the unresolved rule ids.
  5. One action. The result is a complete patch (every design key, locked ones at their current value) applied through the store once, so one randomization is one history entry, one view transition and one scene rebuild.
FamilyTypefacesAccentsHeroProjectsMotion
EditorialGrotesk, Neo-grotesk, StudioLavender, Signal, Ember, Acid, Amber, RoseEditorial, Full bleed, SplitCinematic, Index, GridCinematic, Smooth, Subtle
Swiss MinimalNeo-grotesk, Geometric, StudioEmber, Cobalt, Crimson, Emerald, SignalSplit, Centered, AsymmetricGrid, Index, MasonrySubtle, Smooth
Neo BrutalismPoster, Geometric, Neo-groteskRose, Ember, Acid, Cyan, Amber, Crimson, LavenderAsymmetric, Split, EditorialMasonry, Grid, IndexDynamic, Cinematic, Subtle
Modern StudioStudio, Geometric, Neo-groteskViolet, Lavender, Cyan, Emerald, Rose, CobaltCentered, Split, Full bleedHorizontal gallery, Grid, Masonry, CinematicSmooth, Cinematic, Dynamic
TerminalMono, Geometric, Neo-groteskAcid, Emerald, Cyan, Amber, SignalSplit, Editorial, AsymmetricIndex, Grid, MasonrySubtle, Smooth, Off
Luxury EditorialLuxe serif, Warm serif, StudioSand, Amber, Crimson, Lavender, SignalFull bleed, Centered, EditorialCinematic, Horizontal gallery, IndexSmooth, Subtle, Cinematic

Randomized dimensions: theme, accent, type, hscale, weight, leading, tracking, density, radius, button, card, nav, hero, projects, motion. Fine typography settings return to the defaults with the typeface (and occasionally take a mild variation). Custom accent colours and content are never generated.

Compatibility and accessibility rules

RuleKindDimensionsWhy
accent-presence-lightaccessibilitytheme, accentOn a light page the accent fill needs enough presence to identify controls; pale accents (Signal, Acid) are kept for dark pages.
single-weight-typecompatibilitytype, weightThe poster typeface has a single weight, so weight shifts are not offered with it.
poster-sizequalitytype, hscaleThe poster typeface is already tall and condensed: heading size stays at or below the default.
tight-tracking-wide-facesqualitytype, trackingMonospaced and poster faces keep default or wide letter spacing, so glyphs never collide.
mono-leadingqualitytype, leadingMonospaced type needs at least the default line height to stay legible.
pill-needs-filled-buttoncompatibilityradius, buttonA pill corner needs a solid, outline or ghost button; underline and offset buttons have no shape to round.
offset-card-cornerscompatibilityradius, cardAn offset shadow card keeps square to soft corners, so the hard shadow stays aligned.
offset-button-cornerscompatibilityradius, buttonAn offset shadow button keeps square to soft corners.
compact-readabilityaccessibilitydensity, leading, hscaleExtra compact spacing needs at least the default line height and a heading size at or below the default.
cinematic-needs-motionqualityprojects, motionThe cinematic project scenes are scroll-driven, so they need motion to be on.

Accent contrast is not a rule the randomizer has to enforce: text on the accent, accent text and focus rings are derived for every accent so they reach 4.5:1, and npm run tokens:check verifies it for all twelve accents on both themes. The presence rule (minimum 1.4:1 of the fill against a light page) is a design-quality guard, not a WCAG claim. Every preset also satisfies every rule (asserted by the test suite).

Category locks

Six categories can be locked with a lock icon. A locked category keeps its exact values through any number of randomizations; free categories change around it, and the rules still apply to them. When everything is locked the button explains that nothing can change instead of silently doing nothing. When the device requests reduced motion, motion behaves as locked.

LockDimensions held
Colorstheme, accent, customAccent
Typetype, hscale, weight, leading, tracking
Layouthero, projects, nav
Componentsbutton, card, radius
Spacingdensity
Motionmotion

Locks belong to the visitor and are stored on their device (bf-studio-locks).

History, persistence and export

  • Undo and redo. The store keeps up to 60 states. A preset, a randomization and a reset are each one entry; a burst of colour-picker changes is merged into one. A new change after an undo discards the redo branch. Ctrl+Z and Ctrl+Shift+Z work when no text field has focus.
  • Races. Every change is built on the requested state (target), not on what is already painted, so rapid clicks or repeated randomizations cannot overwrite each other. The preview frame is mirrored from the editor store without adding history entries.
  • Scroll. Before a change is painted the motion controller records which section or project is a quarter of the way down the viewport and restores it after the layout settles; all ScrollTriggers are killed and rebuilt once per change.
  • Persistence. The configuration is saved locally (bf-config, schema version 3). Older saves are migrated (renamed values) and any invalid value falls back to its default. Nothing is sent anywhere.
  • Reset and export. Reset restores the original Editorial. Export writes the configuration, instance overrides and every resolved token to a JSON file on the visitor's device.
Programmatic access (window.bfStudio)
bfStudio.set({ hero: 'centered' });      // validated, one history entry
bfStudio.undo(); bfStudio.redo();
bfStudio.history();                       // { canUndo, canRedo, depth }
bfStudio.reset();                         // back to the original Editorial

What is verified

npm run test:studio runs the engine with seeded randomness: preset validity and distinctness, accent derivation, thousands of randomizations from random starting points with random locks (locks never change, no repairable rule violated, no immediate repeat), reduced-motion handling and dead-rule detection. It tests data and rules, not rendering. Visual and interaction checks are done in a real browser and recorded in the project README.

Beyond Design System v0.4.0Human-led. AI-assisted. System-driven.