Toss Clean UX — Unified Design Engineering, Dual-Theme, Writing & Finish-Gate Skill
Build or refactor React + Vite + TypeScript + motion/react interfaces grounded in live production audits across the Toss ecosystem (toss.im, tossinvest.com Light & Dark WTS, tossbank.com, toss.tech, tosspayments.com, docs.tosspayments.com, tossplace.com), Toss TDS OKLCH dual-theme architecture, NN/g scrolling & form psychology, WCAG 2.2 accessibility, Apple/CSS corner-shape: squircle, MDN Baseline optical CSS (text-box-trim, scrollbar-gutter: stable), Emil Kowalski / Rauno Freiberg frequency-gated motion, and strict 4-layer Clean Architecture.
Core Non-Negotiables
- Visitor Intent First (Gerry McGovern Top Tasks + JTBD + Toss "One Thing per Page") — BEFORE choosing colors, components, or grids for ANY page or route, explicitly answer ONE question: "Why did the user land on this exact page, and what single 'What' did they come here to see or finish?" Gerry McGovern's Top Tasks power law shows the vital ~5% of tasks carry user intent while the bottom 50% of "tiny tasks" combined account for
< 5%of attention yet ruin navigation and clarity. Classify every proposed block strictly outside-in from visitor intent (NEVER inside-out by dumping database/API fields onto the screen):- Core "What" (Primary Intent): Gets immediate top-of-page hierarchy (
0.5s–3srecognition), maximum visual clarity, zero preamble or KPI clutter sitting above it, and one unambiguous CTA. - Auxiliary ("부가기능"): Useful secondary controls (filters, history, settings, export, terms, deep details) MUST be demoted behind quiet disclosure (secondary button, tab,
BottomSheet,Dialog, accordion, or lower section) so they never compete with the Core "What". - Unnecessary ("없어도 되는 것"): Anything that fails the
>50%Necessity Gate is omitted completely.
- Core "What" (Primary Intent): Gets immediate top-of-page hierarchy (
- Dual-Theme Shadowless OKLCH System (Light Blue-White + Toss Cool-Dark) — Zero drop/elevation shadows (
box-shadowdrop blurs,drop-shadow,text-shadow,shadow-*; only zero-blur1px–2pxinsethairlines/focus rings and autofill inset masks are permitted). Zero pure#FFFFFF/bg-whitebackgrounds and zero pure#000000/bg-black/text-blackanywhere. Always define semantic CSS variables under:root(Light Blue-White:#E8EFFA/#F1F5FB/#F9FBFF/#ECF2FA, muted ink#64707D>= 4.6:1) AND[data-theme="dark"], .dark(Toss Elevated Cool-Dark:#101013/#17171C/#202027/#2C2C35, primary ink#F2F4F8, muted ink#9E9EA4>= 5.3:1, dark primary CTA#3485FA, dark link/focus blue#449BFF–#61B0FF) plus Toss-style cool translucent overlays (--surface-tint-subtle,--surface-tint-hover,--border-hairline). Components reference semantic variables (var(--...)) so Light/Dark switching works automatically without FOUC. → Full Light + Dark OKLCH token sheet, theme toggle, focus-ring fix, squircle radii, CSS shield & custom controls: references/design-tokens.md - Single Focus Border Only (Zero Double Borders) — Scope global
:focus-visiblestrictly to:where(a, button, [role="button"], [tabindex]):focus-visibleand clearoutline: noneoninput, textarea, select. Every focusable element owns exactly one focus visual (focus:outline-none focus-visible:outline-none focus:ring-2 focus:ring-inset focus:ring-[var(--color-focus-ring)]; never stackborder+ring+outline). - Balanced Concentric Squircle Radii (
R_inner = R_outer - P) — Never harshly boxy (0px–4pxon cards/controls) AND never balloon-like (rounded-fullon rectangular bars/inputs or>= 26px). Standard scale:7pxcustom checkbox,8pxbadges/compact icon buttons,12px–14pxinputs/buttons/list rows/active tabs,16pxsegmented track (p-1→12pxchild),18pxdropdown menu (p-1.5→12pxrow),18px–20pxcards/modals/sheets. Enhance progressively with@supports (corner-shape: squircle) { corner-shape: squircle; }. - Icon-Only Intuitive Controls (NN/g + WCAG 2.2) & Clean Multi-Channel Badges —
- Icon-Only Rule: Render icon only (mandatory
aria-label+ instant-subsequent desktop tooltips) strictly for the 12 universally recognized actions (X,Copy,RotateCw,Trash2,Search,Download,ExternalLink,ArrowLeft,Chevron,Settings,Pause/Play,MoreHorizontal, plusSun/Moontheme toggle), with>= 40pxdesktop />= 44–48pxmobile hit boxes and>= 8pxspacing. Keep 2–3 word labels on domain-specific/ambiguous actions. - Zero
·/—Metric Walls: Never glue metrics with middle dots (대비 7.5 · 수정 1회) or chain copy with em-dashes (—). Use cleanrounded-[8px]tonal badges (tabular-nums,text-box: trim-both cap alphabetic), pairing surface tint + icon + text for color-blind accessibility (WCAG 1.4.1).
- Icon-Only Rule: Render icon only (mandatory
- Spacious Natural Scrolling, Peek Effect & Quiet Chrome (No Claustrophobic Scroll Locks) —
- Natural Scroll by Default: Never trap landing pages, forms, blogs, docs, or standard SaaS pages inside cramped
h-[100dvh] overflow-hiddenboxes. Embrace natural fluid vertical scrolling (min-h-[100dvh]) with Toss-style generous whitespace (py-14–py-24), One Thing per Section, crystal-clear above-the-fold primary focus, and NN/g's Peek Effect (gently hinting the next section near the fold to avoid the Illusion of Completeness). - Opt-In Split-Pane Workspace ONLY for Multi-Pane Live Tools: Use a desktop split-pane shell (
lg:h-[100dvh] flex flex-col) strictly for real-time multi-pane apps (like Toss Securities WTS charts + orderbooks, live editors, split previews) where simultaneous viewing is required; keep every inner pane spacious and independently scrollable (min-h-0 flex-1 overflow-y-auto overscroll-contain [scrollbar-gutter:stable]) and release to naturalmin-h-[100dvh]below1024px. Never useh-screen/min-h-screen(breaks mobile browser bars); always includeinteractive-widget=resizes-content. - Quiet Chrome & Clean Navigation: Prefer top navigation + at most ONE clean secondary axis (either a synchronized top segmented switcher or one airy left navigation tree like
docs.tosspayments.com). Reserve Toss Blue strictly for system signals and primary/soft-secondary CTA pairs. → Spacious Scroll vs Split-Pane Decision Matrix, Theme Switching, Frequency-Gated Motion, Accessible Forms & Senior 5-Misconception Playbook: references/interaction-craft.md
- Natural Scroll by Default: Never trap landing pages, forms, blogs, docs, or standard SaaS pages inside cramped
- Zero Native Browser UI Leaks, Custom React Controls & Accessible Form Craft —
- Ban ALL Raw Browser Widgets: Never expose OS-native
<input type="checkbox|radio|file">(withoutsr-onlywrapper),<select>,<datalist>,<input type="range|date|time|datetime-local|month|week|color">,<progress>, or<meter>. Replace with shadowless dual-theme Toss React controls (TossCheckbox,TossSelectwith concentricrounded-[18px] p-1.5/rounded-[12px]rows + rightCheckor mobile BottomSheet,TossSwitch,TossSlider,TossDatePicker,TossFileUpload,TossProgressBar), and prefertype="text" inputMode="numeric"over<input type="number">. - Ban Native Browser Popups & OS Chrome Leaks: Forbid
window.alert/confirm/prompt(TossDialog/TossToast), native HTMLtitle="..."tooltips (aria-label+TossTooltip), and raw HTML5 validation bubbles (<form noValidate>). Neutralize:-webkit-autofill,-webkit-tap-highlight-color, Edge::-ms-reveal, search cancel icons, bulky scrollbars,<details>triangles, and<textarea>resize grippers in base CSS. - Frequency-Gated Motion & Reward-Early-Punish-Late Forms: Use
0ms–150msCSS for high-frequency actions,motion/reactsprings for spatial transitions (exitfaster thanenter, hover gated by@media (hover: hover) and (pointer: fine)). Never disable submit buttons for client validation; validate on submit/blur, clear on edit, and focus the first invalid field with gentle guidance.
- Ban ALL Raw Browser Widgets: Never expose OS-native
- >50% Necessity Gate ("Manga-Panel Editing"), 70% LLM Copy Purge & Structural Re-Layout — Treat every screen like a comic/manga (만화책): draw only the essential scenes that drive the user's current action forward, with zero unnecessary inner monologues, flashbacks, or decorative filler.
- Pass 0 (
>50%Necessity Gate & Silence When Healthy): Default to OMIT. Never add speculative 3-up/4-up top KPI stat strips (초당 처리량 0.0,대기 중인 작업 0건,열린 탭 0개,누적 개선 0점), backend plumbing telemetry, or permanent all-zero error/quarantine boxes (격리 0 | 수집 오류 0 | 개편 오류 0) just to "look like a dashboard." Add a widget or metric ONLY when >50% of real users genuinely need it for their next decision or repeatedly ask for it. When healthy (errors === 0), stay completely silent (hide zero-error strips; never paint0in danger red/amber) and surface ONE actionable alert only whencount > 0. - Pass 1 (Ruthless 70% Copy Purge): LLMs systematically over-generate UI text while NN/g shows users read only 20%–28% and Steve Krug's rule cuts 75%. Delete ~70% of duplicate, low-priority, and filler text — happy talk/greetings, eyebrow kickers, subtitles repeating headings, obvious UI instructions, symmetrical card filler paragraphs, duplicate reassurance, and Korean filler modifiers ("잡초 뽑기"). Keep only the essential ~30%: core value/headline, concrete numbers/status, unmistakable labels/actions, and single-exposure safety/error hints.
- Pass 2 (Mandatory Structural Re-Layout): Never leave awkward hollow boxes after deleting widgets or text! Dissolve emptied card shells into open Toss-style typographic stacks or hairline
divide-ylists, enlarge surviving headlines/metrics, merge thin redundant sections, and rebalance macro (py-14–py-24) vs. micro (gap-2–gap-3) whitespace so the page scans like a billboard in 3 seconds. - Plain-Korean Toss Voice & Typography Floor: Apply Toss 5 Core Values and Toss 5 Senior Misconception Guardrails. Ban jargon, nested cards, 3-up feature card grids,
animate-ping,transition-all,Sparkles, kickers, emojis, and duplicated reassurance (30초,무료,신용점수appear at most once beneath final CTA when used). Minimum font>= 14pxon all consumer, landing, editorial, and form UI (13px tabular-numspermitted strictly for dense pro-data/trading table secondary cells); keep Pretendardletter-spacing: 0on14px–20pxUI copy (-0.02emonly on>= 32pxDisplay H1). → >50% Necessity Gate, 70% Copy Purge + Re-Layout protocol, ban list & copy dictionary: references/ux-writing-anti-slop.md
- Pass 0 (
- Strict 4-Layer Clean Architecture & Verification Gate — Enforce
presentation -> application -> domain <- infrastructure(0React/Motion/UI imports insrc/domain/). Every async surface implements a zero-CLS state contract (idle / loading skeleton / empty / gentle error / duplicate / success). → Layer blueprint & real-browser dual-theme E2E protocol: references/clean-arch-e2e.md
Execution Workflow
Step 0. Visitor Intent Audit (Mandatory Before Any Design or Code)
- For each page or route being built or redesigned, write one explicit Visitor Intent Statement: "이 페이지에 접속한 사람은 [맥락] 때문에 들어왔고, 지금 당장 [단 하나의 핵심 '무엇']을 보고/끝내고 싶다."
- Sort every planned element into 3 strict buckets BEFORE touching layout or code:
- Core "What": Placed first at the top visual anchor with zero obstructions above it.
- Auxiliary ("부가기능"): Demoted cleanly into quiet secondary buttons, tabs, sheets, or lower sections.
- Unnecessary ("없어도 됨"): Cut immediately via the
>50%Necessity Gate (Manga-Panel Rule).
Step 1. Pre-Modification Audit
- Check
package.jsonformotion(motion/react) andlucide-react; inspectindex.html(viewport-fit=cover,interactive-widget=resizes-content, FOUC-free theme init) andindex.css(Light + Dark semantic CSS variables,:focus-visibledouble-border traps, Browser Chrome Shield). - Run the bundled audit script (
scripts/audit.mjsinside this skill directory) for a baseline:node <skill-dir>/scripts/audit.mjs <project-root> - Preserve working
domain/application/infrastructureinterfaces when refactoring UI/copy.
Step 2. Apply Dual-Theme OKLCH Tokens, Browser Chrome Shield & Breathable Layout
- Configure
src/index.cssper references/design-tokens.md: paired:root(Light Blue-White) and[data-theme="dark"], .dark(Toss Cool-Dark) semantic tokens, double-border-safe focus rules, global Browser Chrome Neutralization Shield, progressivecorner-shape: squircle,text-box: trim-both cap alphabetic,scrollbar-gutter: stable, and@media (hover: hover) and (pointer: fine). - Choose the right scroll ergonomics from references/interaction-craft.md: spacious natural vertical scroll (
min-h-[100dvh]) with Peek Effect for content/landing/forms/docs, or opt-inlg:h-[100dvh]multi-pane shell strictly for live multi-pane tools.
Step 3. Execute >50% Necessity Cut, 70% Copy Purge + Re-Layout & Custom Controls
- Manga-Panel Cut & Re-Layout First: Remove every speculative KPI strip, internal telemetry counter, and permanent all-zero error box that fails the
>50%Necessity Gate, then purge ~70% of redundant/low-priority LLM-generated text (keeping only the essential ~30% per references/ux-writing-anti-slop.md), and re-architect the page layout around what survives (dissolve empty cards, merge thin sections, enlarge focal typography, expand breathing room). - Controls & Craft: Replace every native browser widget/popup with dual-theme Toss React components (
TossCheckbox,TossSelect,TossSwitch,TossSlider,TossDatePicker,TossFileUpload,TossDialog,TossToast,TossTooltip,<form noValidate>); wire a cleanSun/Moonicon-only theme switcher when offering manual theme selection; apply frequency-gated motion, reward-early-punish-late forms, icon-only controls, and clean multi-channel badges.
Step 4. Mandatory Verification Gate (Zero Violations Required)
- Static & Build Gate — Run the bundled auditor with
--build(tsc -b && vite build):
Fix every error until exit code isnode <skill-dir>/scripts/audit.mjs <project-root> --build0. - Real Browser Dual-Theme E2E & Visual Gate — Render BOTH Light Mode and Dark Mode at
1440×900,375×812, and360×780(viaego-browserif available) and inspect screenshots for dual-theme contrast, focused inputs (0double borders), custom form controls, balanced concentric squircle corners, breathable scroll rhythm (0pxhorizontal overflow), zero CLS, and all states in references/clean-arch-e2e.md.