Design System & Concepts
Tuff and TuffEx core design concepts, physical geometric laws, and productivity micro-interaction guidelines navigation
Design System & Concepts
The Tuff design system is not a mere collection of visual tokens, but a rigorous engineering contract built upon perceptual ergonomics, modern streaming computation, and high-velocity productivity discipline.
This section systematically breaks down the "why" and "how" behind every design decision across geometry, material physics, color science, typography, micro-motion, and AI streaming interactions.
Geometry and Curvature
- G2 Continuous Curvature & Squircle Geometry — Moving beyond standard
border-radiusfillets, explaining curvature jumps, superellipse formulas, and Apple smooth corners. - Concentric Radii & Inset Clearance — The $R_{\text{outer}} = R_{\text{inner}} + \text{Padding}$ conservation law, caret clipping prevention, and 0.65x vertical optical padding.
- 7-Tier Z-Axis Topology & Sticky Dividers — Eliminating
z-index: 99999chaos, the immutable 7-tier elevation topology, and the 1px line divider rule.
Surfaces and Material Physics
- Surface 8-Material Taxonomy & Gatekeepers — Refraction (default), Glass, Acrylic, Mica and the 8-surface matrix with explicit user confirmation gatekeepers.
- Refraction Pipeline & Chromatic Dispersion — Snell's Law, SVG Displacement Map frequency shifts, Smoothstep intensity mapping, and RGB chromatic dispersion.
- Adaptive Surface Deduction & 120Hz Fallback — Pointer velocity sensing, window drag hooks, 0ms mask fallback, and 140ms asymmetric spring recovery.
- Alpha Noise Masks & Specular Tracking — Solving overlay greyness via
mask-composite: intersectalpha noise and card specular cursor tracking.
Color Science and Dark Mode
- #141414 Canvas & 3-Tier Elevation — Why not pure
#000000? Preventing OLED purple smearing, preserving shadows, and the 3-tier dark grey scale. - Retinal Irradiation & Weight Tuning — Helmholtz optical irradiation illusion, 10%–15% white text expansion, variable font 460/560 tuning, and discrete font fallbacks.
- Bipolar Semantic Tints & WCAG 4.5:1 — Resolving dark mode
-light-9distortion,color-mixink fusion, and WCAG 4.5:1 verified across all themes. - Light Modes & Hue Sorting — Why
plus-lighterturns grey on light backgrounds, and the dual independent hue ordering pipeline.
Typography and Text Engineering
- 13–14px Desktop Baseline & 0.9em Code — Differences between productivity tools and marketing pages, scanning fatigue, and monospace code 0.9em optical harmony.
- Modern Soft Wrapping & Zero Tracking —
text-wrap: prettyorphan prevention,balanceheading symmetry, streaming stability, and zero tracking on body text.
Micro-Motion and Interaction Rhythms
- Micro-Motion Philosophy & Sub-100ms Hover — Motion as spatial anchors not entertainment, 0ms instant hover response, and
.is-morphingstate class isolation. - 90ms+90ms Confirmation & Spring Physics — Eliminating dismissal uncertainty with a two-beat rhythm, and the second-order damped spring equation.
- Compositor Thread Priority & Dual Keyframes — Four GPU compositor properties, keeping variables out of keyframes, and dual keyframe name replay.
AI Native Streaming Interfaces
- Stream Pacer & Reveal Presets — The
useStreamPacerclock smoothing network bursts, Aurora / Blur micro-reveals, and single caret handoffs. - Twin-Layer Reserve & Non-Blocking Selection — Reserve pre-measurement eliminating stream height jitter, and immediate text selection / copying (Cmd+C) contracts.