Tori Design
Tori Design is a universal, framework-agnostic interface philosophy, CSS engineering architecture, and anti-slop redline discipline. It fuses luminous, anime-inspired atmospheric beauty with Apple-grade optical materials, physical spring motion, neurodivergent-first calm, and razor-sharp redline craft.
Opening or glancing at software built with Tori Design should feel like a quiet, lantern-lit sanctuary or precision glass instrument overlooking a painterly horizon — wondrous, tactile, effortless to read, and completely free of visual noise.
The Tone & Aesthetic Mandate (Non-Negotiable):
- Cinematic Atmosphere — Without Cheapness or AI Slop: Channel painterly twilight/daylight skies,
oklabrefractive glass, overhead specular catchlights, and intentional negative space (ma) — never vibecoded purple-to-pink gradients, neon outer glows, emoji-stuffed labels (New ✨,🚀), glossy 3D blobs, RPG kitsch, or gamer RGB chrome.- Fiercely Anti-SaaS — Never Flattened into Grey Monotony: Reject sterile
#fff/#09090benterprise cages and corporate blue slabs. Equally important: when unslopping a messy screen, never strip it down into dead#141415matte grey, defaultInter, flat white buttons, or lifeless motion — unslopping removes noise so Tori's luminous glass, warm/moonlit light,Outfit+Soravoices, squircles, and physical springs shine clearly.- Where Richness Lives (Quiet Chrome, Luminous Moments): Keep structural chrome calm on a single temperature-tuned elevation ladder with one semantic accent; concentrate rich multi-hue color, bespoke SVG/canvas craft, dials, or world art into one or two memorable focal moments per screen.
- Cutting-Edge Web Craft: Lean into
color-mix(in oklab, ...),superellipse(1.3)squircles, subpixel XOR.glass-edgerims, top-lit.accent-fill/.litcontrols, CSSlinear()springs, scroll-driven edge masks,@containerblocks, and pointer-modality dualism.
1. Principles of Thinking & The Five-Line Direction
Before writing or refactoring UI, think like an art director executing an ordered redline pass:
- Judge what humans actually see: Render the screen or inspect a live screenshot first — never audit blindly from source text alone.
- Triage honestly:
- Heavy Slop / Generic SaaS: Pervasive tells across color, spacing, type, icons, and copy → confirm the 5-line Direction below with the user (unless told to build immediately) and run all ordered passes.
- Light Slop (Surgical Polish): Sound structure and real brand identity with a few stray tells → fix only audited violations, keep existing brand/layout intact, and note optional moment ideas in your report.
- Already Strong: Say so plainly, suggest at most
2–3exact micro-refinements, and never churn a good screen just to make it different.
- Write the Five-Line Direction (derived from what the product actually does and for whom — never trends):
- Product: One plain sentence stating what it does and for whom.
- Character:
2–3concrete sensory words (calm, exact, lantern-warm) — ban empty template words (clean, modern, sleek, minimal, premium). - World: The physical light/material environment that sets ground temperature, accent pigment, and scene art inside Tori's optical system.
- Moments: The
1–2focal places on screen that earn rich color, custom dials/medallions, sculpted charts, or world visuals. - Signature: One unmistakable product-native detail used consistently where it belongs (e.g., living companion eyes, burning fuse, tactile
<kbd>caps, split lap ribbon) — never five competing gimmicks.
2. Core Invariant, Seven Laws & Framework Mapping
Master Invariant: Reduce cognitive load before adding capability. Every feature must lower decisions, noise, and friction; sink complexity into smart defaults and progressive layers.
| # | Law | Engineering Mandate |
|---|---|---|
| 1 | Instant Comprehension | Every state answers one primary question in human order (< 1s for glances/islands, < 10s for full workspaces), with one primary action and each fact stated once. |
| 2 | Progressive Discovery | Layer 1 is unmistakable; Layer 2 opens via a clear trigger/alcove/switcher; Layer 3 (hotkeys, scrubbing, gestures) is never the sole path. |
| 3 | Visible Trust | Surface live/stale/offline/sync state honestly beside affected data, once. Never discard user input on error. |
| 4 | Intact Identity | One domain concept = one word + one icon + one behavior everywhere. Never create drifting shadow duplicates. |
| 5 | At Home on Every Host | Adapt to host × viewport × pointer (wide, laptop, tablet, phone + isTouch, plus island companion shells and dir="rtl" mirroring). |
| 6 | Calm Before Power | Priority order: clarity → calm → confidence → speed → power. Never invert for flash or widget density. |
| 7 | Mind's Shape, Not Schema's | Group and name by human intent, never database tables, ORM nouns, or API providers. |
| Tori Concept | Svelte 5 / SvelteKit | React / Next | Vue 3 / Nuxt | Vanilla / Astro / WC |
|---|---|---|---|---|
| Tokens & surfaces | Global backbone.css / app.css | Global backbone.css | Global backbone.css | Linked backbone.css |
| Shell / media state | Reactive $derived + MediaQuery | useSyncExternalStore | ref composable | EventTarget + data-shell on <html> |
| Gesture / scrub actions | Attachments {@attach} / use:* | Pointer ref hook + spring | Custom directive | Pointer controller writing el.style.translate |
| Theme / density / calm | Synchronous <head> dataset (data-theme, data-palette, data-density, data-calm / data-motion) | Same <head> dataset | Same <head> dataset | Same <head> dataset |
3. Progressive Reference Modules, Assets & Scripts
Read the specific module(s) matching your current task — never guess token curves, physics, or script rules from memory:
- Philosophy, Principles of Thinking & Behavioral Contracts — 5-line Direction, Quiet Chrome vs. Moments, neurodivergent ergonomics, priority stack, reversible/neutral state, AI contract, behavioral anti-patterns.
- Diagnostic Signs of Slop, Redlines & Story Video — Complete slop-to-Tori redline table (separating slop glass/glows/caps from Tori craft), audit triage, and how to record 10s morphing redline videos.
- Tokens, Surface Ladder, Refractive Glass, Spacing & Geometry — Twilight, Daylight & translucent OS-island modes,
oklabmixing,4pxspacing & columnar alignment, 8-step surface ladder, specular rims,.glass-edge,.accent-fill/.lit, squircles & concentric radii,.layer-*z-scale. - Typography, Iconography & Microcopy Discipline —
Outfit+Soravoices, optical scale (450–550poised figures,15pxUI row sweet spot,16pxmobile input floor),tabular-numsuniformity, zero-emoji single-stroke icon rules, hype-free copy & data plausibility. - Motion Physics, Pointer Dualism & Lifecycle Performance — Frequency gate, slop loop bans, CSS
linear()& JS velocity springs (bounce ≤ 0.15),.press&.morph-surfacepointer dualism,<svg>wrapper rule, idle/away pausing, reduced-motion/transparency/forced-colors. - Adaptive Shells, Ambient Islands, Mobile Chrome & Sheet Physics —
ShellMode(wide/laptop/tablet/phone×isTouch),Rest → Glance → Peek → Opencompanion islands,.glassbottom dock &LensScrub, top-barSheetgrammar & rubber-band physics, safe areas. - Page Layout Flows, Universal Archetypes, Data Views & Skeletons — Width tiers, 7 universal archetypes (Command, Instrument Stage & Alcoves, Collection/Board, Analytical Charts & Stat Cards, Temporal/Matrix, Guided Wizard, Scene Heroes & Docs), zero-CLS skeletons.
- Visuals, Moments, Code Treatments & Reference Studies — When to build moments in code vs. generate scenes, 1-sentence visual test, studio objects & HTML-over-device, 7-part prompt recipe, canvas
glyphs/halftone/dither/duotone + annotated studies in./references/refs/. - Right-to-Left (RTL) & Bidirectional Interface Engineering — Root
dir/lang, logical CSS properties, selective icon mirroring,<bdi>isolation, unified digits, Arabic/Persian/Hebrew/Urdu font pairings, mandatoryletter-spacing: 0on Arabic, scripture integrity. - UI Primitives, Accessibility Floor & Lint Enforcement —
Button(control/lit),Segmented,<kbd>,⋮menu grammar,DialogvsAlertDialog,[data-focus-container],.tori-toast,<Tip>,44pxhit floor, andtori/*Oxlint/ESLint AST rules. - Starter CSS Backbone (
backbone.css) — Drop-in global CSS starter with Twilight, Daylight, Island, squircle,.glass,.lit,.press,.morph-surface,.fade-scroll-y, and.layer-*utilities. - Executable Assistance Scripts (
snapshot.mjs,story.mjs,story-path.mjs) — Playwright page/live-site snapshotter (.live.png+ self-contained HTML) and 10-second CSS-tweened redline transformation video renderer.
4. Ordered Execution & Redline Workflow
Apply passes in this exact dependency order across the whole screen (when building fresh or rewriting heavily, plan all passes in sequence and write clean code in one cohesive pass; keep verification renders to ≤ 3):
- Inspect & Audit: Open/render the live screen (or capture external URLs via
node <skill>/scripts/snapshot.mjs). Log every tell againstsigns-and-redlines.md. If RTL applies, loadrtl-and-bidi.mdfirst. - Triage & Confirm Direction: Classify (Heavy, Light Polish, or Already Strong), write the 5-line Direction, and confirm with the user on major redesigns before editing. (Do not rename the product or invent features/claims.)
- Pass 1 — Spacing & Alignment: Snap to the
4pxgrid, equalize sibling heights/paddings, enforce Gestalt group proximity, and align icon, label, and right-aligned number columns. (Spacing comes first because everything reads differently once rhythm locks in.) - Pass 2 — Atmosphere, Surfaces & Color: Wire global tokens (
backbone.css), place every container on the 8-stepoklabsurface ladder with overhead specular catchlights, restrict--accent-primaryto primary intent/live focus, and strip hue-to-hue surface gradients and neon outer glows. - Pass 3 — Icons: Replace every UI emoji and generic
✨badge with one uniform stroke icon family (16–18px,1.5–1.8stroke, ink-role color, fixed box) — or remove unneeded icons. - Pass 4 — Copy & Plausible Data: Rewrite headlines in plain domain nouns, strip
!, trailing periods, greetings, and hype words, anchor deltas (+12% vs last month), verify claims, and make preview data realistic and cross-surface consistent. (Copy precedes Type & Layout because text length governs scale and balance.) - Pass 5 — Typography: Set
Outfit(450–600) for display/figures/buttons andSora(400–500,15pxrows,≥ 16pxmobile inputs) for UI/prose, sentence case by default, uniformtabular-nums, zero small negative tracking, zero UI italics. - Pass 6 — Shell, Layout & Component Details: Verify
ShellMode/ island / mobile sheet recomposition, concentricsuperellipse(1.3)radii,<kbd>keycaps, single hero chart hierarchy, and varied card rhythm. - Pass 7 — Visuals & Focal Moments: Build code-crafted dials/medallions/charts or generate a World Scene / studio object (
visuals-effects-and-refs.md), blending edges cleanly into the ground. - Pass 8 — Motion, Accessibility & Gate Check: Wire compositor-only transitions,
.press/.morph-surface, lifecycle pausing,prefers-reduced-motion/[data-calm="true"],:focus-visible, and run the checklist below. (Renderstory.mjsvideo only when requested.)
When presenting UI Audit / Review findings, always use a single Before | After | Rule / Why Markdown table.
5. Final Verification Checklist
- 5-Line Direction & Template Swap Test: If you swapped the product name for another product's, would this screen still fit? If yes, sharpen the domain copy, world atmosphere, focal moment, and single signature detail.
- Tori Look Preserved: Luminous temperature-tuned world (
oklabTwilight, warm Daylight parchment with umber shadows, or translucent OS glass) — neither purple neon AI slop nor flat#141415matte template grey. - Rhythm & Alignment:
4pxspatial scale, equal sibling geometry, tighter intra-group than inter-group gaps, aligned icon/label/tabular-number columns. - Materials & Restraint: 3 ink roles (
--ink-primary,--ink-soft,--ink-muted), 8-step surface ladder with overhead specular catchlights,.lit/.accent-fillreserved for primary actions, flat passive chips, concentricsuperellipse(1.3)radii, named.layer-*z-index. - Icons, Copy & Type: Zero UI emoji/sparkles; uniform stroke icons;
Outfit+Sora(400–650max, poised450–550figures,tabular-numsin one format); sentence case (.microuppercase rare and icon-free); zero!, zero trailing periods on UI strings, baseline-anchored deltas, zero unverified claims. - Data, Heroes & Visuals: At most one hero chart with one primary accent/ramp; clean figure-first stat cards/alcoves; authentic scene or code-built product moment with feathered edges and zero filler blobs.
- Shell, RTL, Motion & A11y: Desktop/touch/island recomposition intact;
44×44pxtouch floor;:focus-visible+aria-label(zero DOMtitle); RTL rules applied where relevant; explicit compositor transitions, lifecycle pausing, andprefers-reduced-motion/[data-calm="true"]verified.
Anti-slop redline workflow, visual composition studies (references/refs/), and snapshot/story scripts (scripts/) adapted from unslop by Damir Sokolovsky (@heydamir), licensed under CC BY 4.0.