Communitygithub.com

tori-design

Universal, framework-agnostic CSS design system, anti-slop redline workflow, layout architecture, motion physics, and UI engineering ruleset ("Tori Design"). Expresses a luminous, anime-inspired fantasy atmosphere without cheapness, Apple-grade refractive glass and tactile spring physics, poised Outfit + Sora typography, and ruthless editorial restraint that eliminates both vibecoded AI slop (purple gradients, neon glows, emoji chrome, hype copy, arbitrary spacing) and sterile SaaS templates. Activate whenever designing, building, styling, animating, localizing (including RTL), generating UI visuals, unslopping, polishing, or auditing any web or hybrid frontend (Svelte, React, Vue, Solid, Astro, Vanilla HTML/CSS, Tauri/Electron/PWA — across desktop apps, floating islands/widgets, dashboards, mobile shells, docs, and landing pages). Do not apply to non-CSS targets (terminal TUIs, native non-WebView toolkits, pure WebGL engines).

What is tori-design?

tori-design is a Claude Code agent skill that universal, framework-agnostic CSS design system, anti-slop redline workflow, layout architecture, motion physics, and UI engineering ruleset ("Tori Design"). Expresses a luminous, anime-inspired fantasy atmosphere without cheapness, Apple-grade refractive glass and tactile spring physics, poised Outfit + Sora typography, and ruthless editorial restraint that eliminates both vibecoded AI slop (purple gradients, neon glows, emoji chrome, hype copy, arbitrary spacing) and sterile SaaS templates. Activate whenever designing, building, styling, animating, localizing (including RTL), generating UI visuals, unslopping, polishing, or auditing any web or hybrid frontend (Svelte, React, Vue, Solid, Astro, Vanilla HTML/CSS, Tauri/Electron/PWA — across desktop apps, floating islands/widgets, dashboards, mobile shells, docs, and landing pages). Do not apply to non-CSS targets (terminal TUIs, native non-WebView toolkits, pure WebGL engines).

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/toricodesthings/toris-design/tree/HEAD/skills/tori-design

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

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, oklab refractive 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/#09090b enterprise cages and corporate blue slabs. Equally important: when unslopping a messy screen, never strip it down into dead #141415 matte grey, default Inter, flat white buttons, or lifeless motion — unslopping removes noise so Tori's luminous glass, warm/moonlit light, Outfit + Sora voices, 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-edge rims, top-lit .accent-fill/.lit controls, CSS linear() springs, scroll-driven edge masks, @container blocks, 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:

  1. Judge what humans actually see: Render the screen or inspect a live screenshot first — never audit blindly from source text alone.
  2. 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–3 exact micro-refinements, and never churn a good screen just to make it different.
  3. 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–3 concrete 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–2 focal 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.

#LawEngineering Mandate
1Instant ComprehensionEvery 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.
2Progressive DiscoveryLayer 1 is unmistakable; Layer 2 opens via a clear trigger/alcove/switcher; Layer 3 (hotkeys, scrubbing, gestures) is never the sole path.
3Visible TrustSurface live/stale/offline/sync state honestly beside affected data, once. Never discard user input on error.
4Intact IdentityOne domain concept = one word + one icon + one behavior everywhere. Never create drifting shadow duplicates.
5At Home on Every HostAdapt to host × viewport × pointer (wide, laptop, tablet, phone + isTouch, plus island companion shells and dir="rtl" mirroring).
6Calm Before PowerPriority order: clarity → calm → confidence → speed → power. Never invert for flash or widget density.
7Mind's Shape, Not Schema'sGroup and name by human intent, never database tables, ORM nouns, or API providers.
Tori ConceptSvelte 5 / SvelteKitReact / NextVue 3 / NuxtVanilla / Astro / WC
Tokens & surfacesGlobal backbone.css / app.cssGlobal backbone.cssGlobal backbone.cssLinked backbone.css
Shell / media stateReactive $derived + MediaQueryuseSyncExternalStoreref composableEventTarget + data-shell on <html>
Gesture / scrub actionsAttachments {@attach} / use:*Pointer ref hook + springCustom directivePointer controller writing el.style.translate
Theme / density / calmSynchronous <head> dataset (data-theme, data-palette, data-density, data-calm / data-motion)Same <head> datasetSame <head> datasetSame <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:

  1. 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.
  2. 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.
  3. Tokens, Surface Ladder, Refractive Glass, Spacing & Geometry — Twilight, Daylight & translucent OS-island modes, oklab mixing, 4px spacing & columnar alignment, 8-step surface ladder, specular rims, .glass-edge, .accent-fill/.lit, squircles & concentric radii, .layer-* z-scale.
  4. Typography, Iconography & Microcopy Discipline — Outfit + Sora voices, optical scale (450–550 poised figures, 15px UI row sweet spot, 16px mobile input floor), tabular-nums uniformity, zero-emoji single-stroke icon rules, hype-free copy & data plausibility.
  5. Motion Physics, Pointer Dualism & Lifecycle Performance — Frequency gate, slop loop bans, CSS linear() & JS velocity springs (bounce ≤ 0.15), .press & .morph-surface pointer dualism, <svg> wrapper rule, idle/away pausing, reduced-motion/transparency/forced-colors.
  6. Adaptive Shells, Ambient Islands, Mobile Chrome & Sheet Physics — ShellMode (wide/laptop/tablet/phone × isTouch), Rest → Glance → Peek → Open companion islands, .glass bottom dock & LensScrub, top-bar Sheet grammar & rubber-band physics, safe areas.
  7. 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.
  8. 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/.
  9. 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, mandatory letter-spacing: 0 on Arabic, scripture integrity.
  10. UI Primitives, Accessibility Floor & Lint Enforcement — Button (control/lit), Segmented, <kbd>, ⋮ menu grammar, Dialog vs AlertDialog, [data-focus-container], .tori-toast, <Tip>, 44px hit floor, and tori/* Oxlint/ESLint AST rules.
  11. 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.
  12. 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):

  1. Inspect & Audit: Open/render the live screen (or capture external URLs via node <skill>/scripts/snapshot.mjs). Log every tell against signs-and-redlines.md. If RTL applies, load rtl-and-bidi.md first.
  2. 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.)
  3. Pass 1 — Spacing & Alignment: Snap to the 4px grid, 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.)
  4. Pass 2 — Atmosphere, Surfaces & Color: Wire global tokens (backbone.css), place every container on the 8-step oklab surface ladder with overhead specular catchlights, restrict --accent-primary to primary intent/live focus, and strip hue-to-hue surface gradients and neon outer glows.
  5. Pass 3 — Icons: Replace every UI emoji and generic ✨ badge with one uniform stroke icon family (16–18px, 1.5–1.8 stroke, ink-role color, fixed box) — or remove unneeded icons.
  6. 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.)
  7. Pass 5 — Typography: Set Outfit (450–600) for display/figures/buttons and Sora (400–500, 15px rows, ≥ 16px mobile inputs) for UI/prose, sentence case by default, uniform tabular-nums, zero small negative tracking, zero UI italics.
  8. Pass 6 — Shell, Layout & Component Details: Verify ShellMode / island / mobile sheet recomposition, concentric superellipse(1.3) radii, <kbd> keycaps, single hero chart hierarchy, and varied card rhythm.
  9. 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.
  10. 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. (Render story.mjs video 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 (oklab Twilight, warm Daylight parchment with umber shadows, or translucent OS glass) — neither purple neon AI slop nor flat #141415 matte template grey.
  • Rhythm & Alignment: 4px spatial 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-fill reserved for primary actions, flat passive chips, concentric superellipse(1.3) radii, named .layer-* z-index.
  • Icons, Copy & Type: Zero UI emoji/sparkles; uniform stroke icons; Outfit + Sora (400–650 max, poised 450–550 figures, tabular-nums in one format); sentence case (.micro uppercase 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×44px touch floor; :focus-visible + aria-label (zero DOM title); RTL rules applied where relevant; explicit compositor transitions, lifecycle pausing, and prefers-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.

Related Skills