@shavin/skills 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +193 -0
- package/CHANGELOG.md +27 -0
- package/LICENSE +21 -0
- package/README.md +48 -2
- package/bin/hex-policy.mjs +157 -0
- package/bin/install.mjs +219 -0
- package/bin/lint-tokens.mjs +178 -0
- package/build.mjs +540 -0
- package/commands/add-composition.md +14 -0
- package/commands/apply-theme.md +59 -0
- package/commands/audit-layout.md +15 -0
- package/commands/audit-ui.md +42 -0
- package/commands/compose-page.md +16 -0
- package/commands/create-block.md +79 -0
- package/commands/create-primitive.md +40 -0
- package/commands/create-screen.md +45 -0
- package/commands/create-theme.md +41 -0
- package/cursor/shavin.mdc +14 -0
- package/package.json +66 -4
- package/posix-path.mjs +7 -0
- package/skills/core-rules.md +294 -0
- package/skills/layout-choreography/SKILL.md +102 -0
- package/skills/layout-choreography/references/fallbacks-and-accessibility.md +76 -0
- package/skills/layout-choreography/references/scenes.md +113 -0
- package/skills/layout-choreography/references/shavin-timelines.md +100 -0
- package/skills/layout-choreography/references/tech-and-performance.md +147 -0
- package/skills/layout-compositions/SKILL.md +149 -0
- package/skills/layout-compositions/references/adapters/shavin-ui.md +122 -0
- package/skills/layout-compositions/references/adapters/tailwind-html.md +100 -0
- package/skills/layout-compositions/references/component-language.md +105 -0
- package/skills/layout-compositions/references/compositions/conversion.md +286 -0
- package/skills/layout-compositions/references/compositions/documentation.md +125 -0
- package/skills/layout-compositions/references/compositions/editorial.md +126 -0
- package/skills/layout-compositions/references/compositions/expressive.md +151 -0
- package/skills/layout-compositions/references/compositions/features.md +262 -0
- package/skills/layout-compositions/references/compositions/gallery.md +172 -0
- package/skills/layout-compositions/references/compositions/hero.md +184 -0
- package/skills/layout-compositions/references/compositions/proof.md +194 -0
- package/skills/layout-compositions/references/compositions/structural.md +173 -0
- package/skills/layout-compositions/references/distinctiveness.md +65 -0
- package/skills/layout-compositions/references/foundations.md +119 -0
- package/skills/layout-compositions/references/metadata-schema.md +64 -0
- package/skills/layout-compositions/references/page-recipes.md +143 -0
- package/skills/layout-compositions/references/selection-guide.md +207 -0
- package/skills/layout-compositions/references/treatments.md +60 -0
- package/skills/layout-compositions/references/unsection-source-examples.md +92 -0
- package/skills/layout-compositions/references/visual-review.md +40 -0
- package/skills/layout-compositions/scripts/render_wireframes.py +138 -0
- package/skills/layout-compositions/scripts/validate_library.py +165 -0
- package/skills/layout-motion/SKILL.md +83 -0
- package/skills/layout-motion/references/composition-motion-map.md +69 -0
- package/skills/layout-motion/references/presets.md +209 -0
- package/skills/layout-motion/references/tokens.md +100 -0
- package/skills/shavin-app/SKILL.md +242 -0
- package/skills/shavin-app/patterns.md +35 -0
- package/skills/shavin-studio/SKILL.md +97 -0
- package/skills/shavin-webpage/SKILL.md +210 -0
- package/skills/shavin-webpage/editorial-craft.md +117 -0
- package/skills/shavin-webpage/page-architecture.md +137 -0
- package/skills/shavin-webpage/style-recipes.md +107 -0
- package/skills/visual-compositor/SKILL.md +200 -0
- package/skills/visual-compositor/anti-patterns.md +109 -0
- package/skills/visual-compositor/audit-checklist.md +162 -0
- package/skills/visual-compositor/cognitive-layer.md +287 -0
- package/skills/visual-compositor/composition-motion-map.md +167 -0
- package/skills/visual-compositor/concentric-laws.md +147 -0
- package/skills/visual-compositor/docs-mode.md +32 -0
- package/skills/visual-compositor/editorial-mode.md +48 -0
- package/skills/visual-compositor/font-pairings.md +224 -0
- package/skills/visual-compositor/graphics-and-assets.md +128 -0
- package/skills/visual-compositor/interface-polish.md +125 -0
- package/skills/visual-compositor/layout-restraint.md +80 -0
- package/skills/visual-compositor/motion-and-physics.md +257 -0
- package/skills/visual-compositor/page-motion-presets.md +246 -0
- package/skills/visual-compositor/references/EDITORIAL_EXPRESSIVE.md +163 -0
- package/skills/visual-compositor/spacing-core.md +386 -0
- package/skills/visual-compositor/spacing-dense.md +63 -0
- package/skills/visual-compositor/spacing-marketing.md +192 -0
- package/skills/visual-compositor/typography-rules.md +114 -0
- package/token-budget.json +86 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# Style Recipes & Design Calibration Dials
|
|
2
|
+
|
|
3
|
+
> Synthesizing **Garden Skills' Design Dials & Style Archetypes** mapped strictly to `@shavin/ui` semantic tokens and two-tier architecture.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. The 5 Design Calibration Dials
|
|
8
|
+
|
|
9
|
+
Before composing or reviewing any webpage or block, define the project's **Calibration Vector** [1–10]:
|
|
10
|
+
|
|
11
|
+
```yaml
|
|
12
|
+
Design Calibration:
|
|
13
|
+
visual-variance: 6 # [1: strict repetition -> 10: every section introduces novel layout geometry]
|
|
14
|
+
motion-intensity: 5 # [1: instant transitions -> 10: cinematic scroll-linked physics & page reveals]
|
|
15
|
+
information-density: 7 # [1: expansive consumer white space -> 10: high-density dev tooling & telemetry]
|
|
16
|
+
asset-dependence: 8 # [1: pure CSS/SVG geometry -> 10: rich photography, mesh & video backdrops]
|
|
17
|
+
brand-fidelity: 10 # [10: 100% token purity, zero raw hex, zero untokened geometry]
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### How the Dials Steer Decisions:
|
|
21
|
+
- **High Visual Variance (>7)**: Break predictable 3-column grids. Alternate asymmetric bento cards, full-width interactive code terminals, and split sticky narratives.
|
|
22
|
+
- **High Information Density (>7)**: Use tighter padding (`p-4` to `p-6`), monospaced telemetry pills, inline status badges, and compact data tables.
|
|
23
|
+
- **High Motion Intensity (>7)**: Implement word-by-word tagline reveal, fluid island navigation, and staggered viewport entrances (`motion-and-physics.md`).
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 2. Five Flagship Style Archetypes
|
|
28
|
+
|
|
29
|
+
Every interface should declare its anchor archetype to maintain unified stylistic discipline:
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
### Archetype 1: Linear Dark (High-Performance Engineering)
|
|
34
|
+
- **Visual Feel**: Deep charcoal surfaces, razor-sharp hairline borders, luminous brand glows, keyboard-first aesthetic.
|
|
35
|
+
- **Token Configuration**:
|
|
36
|
+
- Theme: `.dark`
|
|
37
|
+
- Canvas: `bg-canvas` (`--n-950` / `#09090b`)
|
|
38
|
+
- Surface: `bg-surface` (`--n-900` / `#121215`)
|
|
39
|
+
- Brand: from the brief or `SHAVIN.md` (`monochrome` if none)
|
|
40
|
+
- Radius: `large` (`--radius-lg: 12px`, `--radius-panel: 24px`)
|
|
41
|
+
- **Key Layout Patterns**:
|
|
42
|
+
- Monospaced keyboard shortcut badges (`<Kbd>⌘K</Kbd>`).
|
|
43
|
+
- Asymmetric bento grid with thin hairline borders (`border-hairline/60`).
|
|
44
|
+
- Micro-telemetry chips (`<3.2ms`, `100.0% Purity`).
|
|
45
|
+
- Subtle top-down directional spotlight gradient.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
### Archetype 2: Apple Clean Minimal (Human-Centric Consumer)
|
|
50
|
+
- **Visual Feel**: Expansive whitespace, ultra-large display typography, crisp organic shadows, zero clutter.
|
|
51
|
+
- **Token Configuration**:
|
|
52
|
+
- Theme: `:root` (light) or `.dark`
|
|
53
|
+
- Canvas: `bg-canvas` (`#ffffff` light / `#000000` dark)
|
|
54
|
+
- Surface: `bg-surface` (`#f5f5f7` light / `#1c1c1e` dark)
|
|
55
|
+
- Brand: `sky` or `neutral`
|
|
56
|
+
- Radius: `full` or `large`
|
|
57
|
+
- **Key Layout Patterns**:
|
|
58
|
+
- Centered headlines with extreme measure discipline (`max-w-3xl mx-auto`).
|
|
59
|
+
- Soft, large cards with generous internal padding (`p-8 md:p-12`).
|
|
60
|
+
- High-resolution hero photograph (Lummi/Unsplash) or soft mesh backdrop with deep breathing room.
|
|
61
|
+
- Generous vertical section rhythm (`py-28 md:py-44`) — scoped archetype override of the canonical Section table.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
### Archetype 3: Stripe Precision (Enterprise Vibrant)
|
|
66
|
+
- **Visual Feel**: Chromatic warmth, multi-layer gradient mesh ribbons, isometric feature cards, high trust proof.
|
|
67
|
+
- **Token Configuration**:
|
|
68
|
+
- Theme: `:root` (light)
|
|
69
|
+
- Canvas: `bg-canvas` (`#ffffff`)
|
|
70
|
+
- Brand: `iris` or `indigo`
|
|
71
|
+
- Radius: `medium` (`--radius-panel: 16px`)
|
|
72
|
+
- **Key Layout Patterns**:
|
|
73
|
+
- Multi-stop chromatic mesh backdrops with soft directional scrims.
|
|
74
|
+
- Interactive multi-tab code showcase with live API response panels.
|
|
75
|
+
- Dense trust matrix: verified enterprise customer logos, uptime SLA counters, compliance certifications (SOC2, ISO, WCAG 2.2 AA).
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
### Archetype 4: Technical Editorial / Brutalist (Developer Infrastructure)
|
|
80
|
+
- **Visual Feel**: CAD blueprint precision, hairline coordinate grids, monospaced metadata, raw architecture diagrams.
|
|
81
|
+
- **Token Configuration**:
|
|
82
|
+
- Theme: Both Light and Dark
|
|
83
|
+
- Canvas: `bg-canvas`
|
|
84
|
+
- Surface: `bg-surface`
|
|
85
|
+
- Brand: `amber` or `bronze`
|
|
86
|
+
- Radius: `small` or `none` (`rounded-none` or `rounded-sm`)
|
|
87
|
+
- **Key Layout Patterns**:
|
|
88
|
+
- Corner crosshairs (`+`) on card boundaries.
|
|
89
|
+
- Strict typographic hierarchy: Serif or heavy display sans headlines paired with monospaced code blocks.
|
|
90
|
+
- Raw JSON/YAML config snippets in bordered syntax panels.
|
|
91
|
+
- Border dividers (`divide-x divide-hairline`) spanning across full container widths.
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
### Archetype 5: Vercel Monochrome (Speed & Latency Obsession)
|
|
96
|
+
- **Visual Feel**: Pure binary black/white contrast, geometric grid lines, zero gradient fluff, razor-sharp focus on deploy speed.
|
|
97
|
+
- **Token Configuration**:
|
|
98
|
+
- Theme: Both Light and Dark
|
|
99
|
+
- Canvas: `bg-canvas` (`#000000` dark / `#ffffff` light)
|
|
100
|
+
- Surface: `bg-surface` (`#111111` dark / `#fafafa` light)
|
|
101
|
+
- Brand: `neutral` (black/white high contrast)
|
|
102
|
+
- Radius: `medium` (`--radius-panel: 16px`, `--radius-lg: 8px`)
|
|
103
|
+
- **Key Layout Patterns**:
|
|
104
|
+
- Geometric isometric deployment pipelines.
|
|
105
|
+
- Tabular monospace numbers with zero letter-spacing drift (`tabular-nums font-mono`).
|
|
106
|
+
- Razor-thin 1px border cards with crisp hover lighting.
|
|
107
|
+
- Instant tactile button response (`active:scale-[0.98] duration-100`).
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: visual-compositor
|
|
3
|
+
description: >
|
|
4
|
+
Precise structural and spatial composition rules for web pages and web apps.
|
|
5
|
+
Covers concentric spacing, concentric radius, layout rhythm, section architecture,
|
|
6
|
+
flex/grid spacing, container nesting depth, and token-mapped values for @shavin/ui.
|
|
7
|
+
Activate whenever composing or reviewing a page layout, section structure, card nesting,
|
|
8
|
+
flex arrangement, or any spatial decision in HTML/JSX. Works alongside shavin-webpage
|
|
9
|
+
(marketing/content pages) and shavin-app (app screens).
|
|
10
|
+
sections:
|
|
11
|
+
- id: activation-modes
|
|
12
|
+
description: "Mode identification (STRUCTURAL/MARKETING/EDITORIAL/HYBRID/DOCS) — in this file's body. This table is the canonical source of truth for mode selection; see 'Precedence' subsection for how it relates to SHAVIN.md defaults and the get_skill_mode MCP tool."
|
|
13
|
+
- id: cognitive-layer
|
|
14
|
+
file: cognitive-layer.md
|
|
15
|
+
description: "Pre-generation checklist, state coverage, affordances, action hierarchy — CORE: load before generating a screen (~2.3K tokens)"
|
|
16
|
+
- id: concentric-laws
|
|
17
|
+
file: concentric-laws.md
|
|
18
|
+
description: "Concentric radius and spacing laws — CORE: load for any nested radius or padding (~1.8K tokens)"
|
|
19
|
+
- id: spacing-core
|
|
20
|
+
file: spacing-core.md
|
|
21
|
+
description: "Section architecture, flex/grid, alignment, containment, nesting, responsive — CORE: load for any section, flex or grid structure (~4.4K tokens)"
|
|
22
|
+
- id: spacing-marketing
|
|
23
|
+
file: spacing-marketing.md
|
|
24
|
+
description: "Hierarchy stack, visual weight, negative space, first-3-seconds, gradient blending — MARKETING/EDITORIAL (~2.5K tokens)"
|
|
25
|
+
- id: spacing-dense
|
|
26
|
+
file: spacing-dense.md
|
|
27
|
+
description: "Density framework, monospace restraint — STRUCTURAL/dashboards (~1K tokens)"
|
|
28
|
+
- id: graphics-and-assets
|
|
29
|
+
file: graphics-and-assets.md
|
|
30
|
+
description: "Atmospheric depth, soft pastel meshes, 3D abstract assets, scrims (~2.5K tokens)"
|
|
31
|
+
- id: layout-restraint
|
|
32
|
+
file: layout-restraint.md
|
|
33
|
+
description: "Anti-bloat, single clear thought, breathing room, visual elegance (~2.5K tokens)"
|
|
34
|
+
- id: typography-rules
|
|
35
|
+
file: typography-rules.md
|
|
36
|
+
description: "Type scale snapping, text-balance, tabular-nums, optical contrast (~2.5K tokens)"
|
|
37
|
+
- id: interface-polish
|
|
38
|
+
file: interface-polish.md
|
|
39
|
+
description: "Tactile scale on press, anti-box law, Lummi-mesh recipes, optical alignment (~2.5K tokens)"
|
|
40
|
+
- id: motion-and-physics
|
|
41
|
+
file: motion-and-physics.md
|
|
42
|
+
description: "Emil Kowalski animation framework, custom easings, duration/distance/stagger tokens, reduced-motion safety net, Rauno stagger choreography — CORE: load for any animation or transition (~3.4K tokens)"
|
|
43
|
+
- id: page-motion-presets
|
|
44
|
+
file: page-motion-presets.md
|
|
45
|
+
description: "Tier-1 entrance presets (fade-rise, blur-rise, split-stagger, word-reveal, scale-in, slide-in) using motion tokens — loaded for MARKETING/EDITORIAL/HYBRID page composition (~2K tokens)"
|
|
46
|
+
- id: composition-motion-map
|
|
47
|
+
file: composition-motion-map.md
|
|
48
|
+
description: "Which motion preset to apply per layout composition. Includes new compositions (ST, H5, F6, C4, E, D, X). 'None' is a valid answer — loaded alongside page-motion-presets (~2K tokens)"
|
|
49
|
+
- id: font-pairings
|
|
50
|
+
file: font-pairings.md
|
|
51
|
+
description: "Font pairings by mode — loaded when making font decisions (~2.5K tokens)"
|
|
52
|
+
- id: editorial-mode
|
|
53
|
+
file: editorial-mode.md
|
|
54
|
+
description: "Editorial & expressive mode — loaded ONLY for EDITORIAL/HYBRID (~0.5K + ~1.5K reference)"
|
|
55
|
+
- id: docs-mode
|
|
56
|
+
file: docs-mode.md
|
|
57
|
+
description: "Documentation-portal mode (persistent sidebar nav, dense reference prose, code blocks) — loaded ONLY for DOCS (~0.5K tokens)"
|
|
58
|
+
- id: audit-checklist
|
|
59
|
+
file: audit-checklist.md
|
|
60
|
+
description: "Master anti-pattern table + audit checklist — loaded at end of tasks (~2.5K tokens)"
|
|
61
|
+
- id: anti-patterns
|
|
62
|
+
file: anti-patterns.md
|
|
63
|
+
description: "Consolidated named anti-pattern catalogue (AP-01–AP-13) with code examples, remediation, and decision table — loaded when composing/reviewing blocks or when output 'feels AI-generated' (~2K tokens)"
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
# Visual Compositor — Spatial Composition Engine
|
|
67
|
+
|
|
68
|
+
## Do this first
|
|
69
|
+
|
|
70
|
+
- **Components only.** Every UI element is a `@shavin/ui` component. No raw `button`/`input`/`table`/`dialog`, no hand-styled div imitations, no other UI library in new code. Tokens only (no hex, `rgb()`, `--n-*`).
|
|
71
|
+
- **Six states.** Every surface covers first-time, empty, loading, error, success and disabled: see `shavin-app` section `state`.
|
|
72
|
+
- **Every UI turn.** These rules apply on every UI-writing turn, including small follow-ups. Run `validate_code` / `check_page` (no MCP: `npx shavin-lint-tokens <path>`).
|
|
73
|
+
- **Theme.** New site or page with colours and fonts still `UNSET` in `SHAVIN.md`: pick them from the brief, apply with `npx @shavin/cli brand`, then tell the user what you chose after the first page: section `font-pairings`, "Theme for a new site or page".
|
|
74
|
+
- **Mode.** Resolve it with the Mode Precedence below: explicit user request > `SHAVIN.md` > `get_skill_mode` (advisory) > default (`STRUCTURAL` for app screens, `MARKETING` otherwise). Declare it before writing markup (see Mode Declaration).
|
|
75
|
+
- **Load files.** CORE files load when the task touches their area (see the table); nothing is injected. Mode files load by mode.
|
|
76
|
+
|
|
77
|
+
- **File usage:** This skill is split into 17 files:
|
|
78
|
+
|
|
79
|
+
| File | When to load | Tokens |
|
|
80
|
+
|------|-------------|--------|
|
|
81
|
+
| `cognitive-layer.md` | **CORE** — before generating a screen: states, affordances, action hierarchy | ~2.3K |
|
|
82
|
+
| `concentric-laws.md` | **CORE** — any nested radius or padding | ~1.8K |
|
|
83
|
+
| `spacing-core.md` | **CORE** — section, flex and grid structure, alignment, responsive | ~4.4K |
|
|
84
|
+
| `layout-restraint.md` | **CORE** — content density of sections: one idea, anti-bloat, breathing room | ~1.1K |
|
|
85
|
+
| `typography-rules.md` | **CORE** — any text hierarchy: type scale, balance, tabular-nums, line length | ~1.5K |
|
|
86
|
+
| `interface-polish.md` | **CORE** — buttons, interaction feel, anti-box law, depth recipes | ~1.8K |
|
|
87
|
+
| `motion-and-physics.md` | **CORE** — any animation or transition: easings, motion tokens, reduced motion | ~3.4K |
|
|
88
|
+
| `page-motion-presets.md` | **MARKETING / EDITORIAL / HYBRID** — entrance preset recipes using motion tokens | ~2K |
|
|
89
|
+
| `composition-motion-map.md` | **MARKETING / EDITORIAL / HYBRID** — which preset per composition + new compositions | ~2K |
|
|
90
|
+
| `graphics-and-assets.md` | **MARKETING / EDITORIAL / HYBRID** — atmospheric depth, pastel meshes, 3D abstract assets | ~2.5K |
|
|
91
|
+
| `spacing-marketing.md` | **MARKETING / EDITORIAL** — hierarchy stack, visual weight, negative space, first-3-seconds, gradient blending | ~2.5K |
|
|
92
|
+
| `spacing-dense.md` | **STRUCTURAL / DOCS** — density framework, monospace restraint | ~1K |
|
|
93
|
+
| `font-pairings.md` | When choosing fonts for a project | ~2.5K |
|
|
94
|
+
| `editorial-mode.md` | **ONLY** for EDITORIAL mode or HYBRID hero sections | ~0.5K + ~1K reference |
|
|
95
|
+
| `docs-mode.md` | **ONLY** for DOCS mode | ~0.5K |
|
|
96
|
+
| `audit-checklist.md` | At the END of layout tasks for final verification | ~2.5K |
|
|
97
|
+
| `anti-patterns.md` | When composing/reviewing blocks, or when output "feels AI-generated" | ~2K |
|
|
98
|
+
|
|
99
|
+
- **Core rules (token compliance, radius basics, typography hierarchy, font loading, anti-slop):** in `.agents/skills/core-rules.md`; not injected. Read it when you need the full detail.
|
|
100
|
+
|
|
101
|
+
- This skill governs **how space and shape are structured** in a layout: how to say it geometrically, not what to say. Domain skills: `shavin-webpage` (marketing, editorial, docs pages), `shavin-app` (app screens).
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## Activation Modes
|
|
106
|
+
|
|
107
|
+
**The first thing you do** on any layout task is identify the mode. Different modes activate different rule sets. Getting this wrong applies constraints that don't fit the intent — or worse, misses constraints that do.
|
|
108
|
+
|
|
109
|
+
### Mode Identification
|
|
110
|
+
|
|
111
|
+
Read the user's request for these signal words:
|
|
112
|
+
|
|
113
|
+
| Mode | Trigger phrases / signals | Common aliases / colloquial intent | Representative examples |
|
|
114
|
+
| ------------ | ----------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
|
|
115
|
+
| `STRUCTURAL` | "dashboard", "admin", "app", "SaaS product", "data", "analytics", "console", "tool", "settings", "table", "form" | "like Linear", "like Figma", "like Notion", "make it dense", "data-heavy", "productivity app", "enterprise UI", "control panel" | Figma, Linear, Notion, analytics dashboards, admin panels |
|
|
116
|
+
| `MARKETING` | "landing page", "marketing site", "homepage", "pricing", "product page", "website" | "like Stripe", "like Vercel", "like Linear's site", "SaaS site", "startup page", "conversion page", "clean and modern", "professional" | SaaS homepages, product marketing sites |
|
|
117
|
+
| `EDITORIAL` | "awwwards", "agency", "portfolio", "creative", "immersive", "brand experience", "artsy", "luxury", "cinematic", "scroll experience" | **"awwwards style"**, **"fancy"**, **"expressive"**, **"more animations"**, **"wow factor"**, **"make it pop"**, "editorial", "high-end", "premium feel", "bold", "loud", "magazine", "art direction", "motion-heavy", "parallax", "boutique", "curator", "bespoke", "storytelling", "experiential", "like apple.com", "like bruno-simon.com" | Agency sites, creative studios, brand launches, portfolios |
|
|
118
|
+
| `HYBRID` | Mixed signals — a product that also needs to market itself; one page containing both a marketing hero and an interactive product UI | "product launch", "show the app inside the page", "interactive demo on homepage", "half marketing half product" | SaaS product launch pages, interactive demos embedded in marketing |
|
|
119
|
+
| `DOCS` | "documentation", "docs portal", "docs site", "API reference", "changelog", "guide pages" | "like Stripe docs", "like Tailwind docs", "reference site", "knowledge base" | docs.shavin.cc, API reference portals, changelog sites |
|
|
120
|
+
|
|
121
|
+
- 💡 **Colloquial phrase matching is first-class input.** Users rarely say "EDITORIAL"; they say "make it fancy", "awwwards style", or "add more animations". These aliases are equal weight signals to the formal trigger words — don't require the user to use the exact terminology. If a request for a **new page or page type** includes an alias phrase (e.g. "expressive", "wow factor", "luxury"), trigger `EDITORIAL`. Aliases ("make it pop", "bold", "professional", "clean and modern") on a **follow-up edit to an existing page or screen** never flip the mode: the mode stays fixed by `SHAVIN.md` (or the mode already in use) unless the user asks for a new page type.
|
|
122
|
+
|
|
123
|
+
**Mode Precedence (canonical):** explicit user request (trigger or alias for a new page/page type) > `SHAVIN.md` `Default Visual Mode` (`## 3. Site & Mode Defaults`) > `get_skill_mode` (advisory only; never returns `HYBRID` or `DOCS`) > default: `STRUCTURAL` when the task is an app screen, else `MARKETING`.
|
|
124
|
+
|
|
125
|
+
**Floor in every mode (relaxed modes never drop these):** components-only (`@shavin/ui`), semantic tokens only, and the six states (`shavin-app` section `state`). Relaxed rules below apply to spatial and decorative choices only.
|
|
126
|
+
|
|
127
|
+
### Mode Rule Map
|
|
128
|
+
|
|
129
|
+
This table shows which files/sections apply to each mode and whether rules are strict, relaxed, or suspended:
|
|
130
|
+
|
|
131
|
+
| File / Section | STRUCTURAL | MARKETING | EDITORIAL | HYBRID | DOCS |
|
|
132
|
+
| --------------------------- | :--------: | :----------: | :---------------------: | :--------------: | :---------------: |
|
|
133
|
+
| `cognitive-layer.md` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
134
|
+
| `concentric-laws.md` | ✅ Strict | ✅ Strict | ⚠️ Relaxed\* | ✅ Strict | ✅ Strict |
|
|
135
|
+
| `spacing-core.md` | ✅ Strict | ✅ Strict | ✅ Strict | ✅ Strict | ✅ Strict |
|
|
136
|
+
| `layout-restraint.md` | ✅ Strict | ✅ Strict | ✅ Strict | ✅ Strict | ✅ Strict |
|
|
137
|
+
| `typography-rules.md` | ✅ Strict | ✅ Strict | ✅ Strict | ✅ Strict | ✅ Strict (prose) |
|
|
138
|
+
| `interface-polish.md` | ✅ Strict | ✅ Strict | ✅ Strict | ✅ Strict | ✅ Strict |
|
|
139
|
+
| `motion-and-physics.md` | ✅ Strict | ✅ Strict | ✅ Strict | ✅ Strict | ✅ Strict |
|
|
140
|
+
| `page-motion-presets.md` | ⛔ Skip | ✅ | ✅ | ✅ Hero sections | ⛔ Skip |
|
|
141
|
+
| `composition-motion-map.md` | ⛔ Skip | ✅ | ✅ | ✅ Hero sections | ⛔ Skip |
|
|
142
|
+
| `graphics-and-assets.md` | ⚠️ Subtle | ✅ | ✅ | ✅ | 🚫 Skip |
|
|
143
|
+
| `spacing-marketing.md` | 🚫 Skip | ✅ | ✅ | ✅ Hero sections | 🚫 Skip |
|
|
144
|
+
| `spacing-dense.md` | ✅ | 🚫 Skip | 🚫 Skip | ⚠️ If dense | ✅ |
|
|
145
|
+
| `font-pairings.md` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
146
|
+
| `editorial-mode.md` | 🚫 Skip | ⚠️ Hero only | ✅ Full chapter | ✅ Hero sections | 🚫 Skip |
|
|
147
|
+
| `docs-mode.md` | 🚫 Skip | 🚫 Skip | 🚫 Skip | 🚫 Skip | ✅ Full chapter |
|
|
148
|
+
| `audit-checklist.md` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
149
|
+
| `anti-patterns.md` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
150
|
+
|
|
151
|
+
\*Relaxed = the rule holds as a baseline but editorial intentionality overrides specific constraints. You must still be able to justify every deviation.
|
|
152
|
+
|
|
153
|
+
### Mode Declaration
|
|
154
|
+
|
|
155
|
+
At the start of any layout task, declare the mode explicitly before writing markup:
|
|
156
|
+
|
|
157
|
+
```
|
|
158
|
+
// MODE: EDITORIAL
|
|
159
|
+
// Trigger: "award-winning agency portfolio, scroll experience"
|
|
160
|
+
// Files loaded: cognitive-layer, concentric-laws, spacing-core, layout-restraint, typography-rules, interface-polish, motion-and-physics, page-motion-presets, composition-motion-map, graphics-and-assets, spacing-marketing, font-pairings, editorial-mode
|
|
161
|
+
// Relaxed constraints: Concentric spacing in hero, content width budget, density floor
|
|
162
|
+
// Floor kept: components-only, tokens-only, six states
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## File Loading Guide
|
|
168
|
+
|
|
169
|
+
### Always Load (ALL MODES)
|
|
170
|
+
|
|
171
|
+
1. **`cognitive-layer.md`** — Pre-generation checklist, state coverage, affordances, action hierarchy, navigation/orientation, progressive disclosure. Reason about purpose before writing components.
|
|
172
|
+
2. **`concentric-laws.md`** — The two concentric laws (radius + spacing) that govern every spatial decision
|
|
173
|
+
3. **`spacing-core.md`** — Section architecture, flex/grid rules, typography spacing, alignment, containment, nesting, responsive, repeating units, spatial scale reference
|
|
174
|
+
4. **`layout-restraint.md`** — Anti-bloat, single clear thought, breathing room, avoiding content dumping
|
|
175
|
+
5. **`typography-rules.md`** — Type scale snapping, text-balance, tabular-nums, reading length bounds, optical text gradients
|
|
176
|
+
6. **`interface-polish.md`** — Tactile scale on press, anti-box law, Lummi-mesh recipes, motion polish
|
|
177
|
+
7. **`motion-and-physics.md`** — Animation framework, motion tokens (dur/dist/stagger), reduced-motion safety net
|
|
178
|
+
|
|
179
|
+
### Load by Mode
|
|
180
|
+
|
|
181
|
+
8. **`page-motion-presets.md`** — Load for **MARKETING / EDITORIAL / HYBRID** modes. Tier-1 entrance presets (fade-rise, blur-rise, split-stagger, word-reveal, scale-in, slide-in) using motion tokens.
|
|
182
|
+
9. **`composition-motion-map.md`** — Load alongside `page-motion-presets.md`. Maps each layout composition to its suggested motion preset. Includes new compositions (ST, H5, F6, C4, E, D, X).
|
|
183
|
+
10. **`graphics-and-assets.md`** — Load for **MARKETING / EDITORIAL / HYBRID** modes. Atmospheric depth, soft pastel meshes, 3D abstract assets, directional scrims.
|
|
184
|
+
11. **`spacing-marketing.md`** — Load for **MARKETING / EDITORIAL** modes. Hierarchy stack, visual weight balance, negative space budget, first-3-seconds rule, gradient blending.
|
|
185
|
+
12. **`spacing-dense.md`** — Load for **STRUCTURAL / DOCS** mode (dashboards, admin panels, data tables, documentation). Density framework, monospace restraint.
|
|
186
|
+
13. **`font-pairings.md`** — Load when choosing fonts. Contains mode-specific curated pairings.
|
|
187
|
+
14. **`editorial-mode.md`** — Load **ONLY** for EDITORIAL mode or HYBRID hero sections. Contains motion architecture, 3D transforms, glassmorphism, theatrical space.
|
|
188
|
+
15. **`docs-mode.md`** — Load **ONLY** for DOCS mode. Documentation-specific layout patterns, reading ergonomics, code-block density, and navigation hierarchy for reference/learning content.
|
|
189
|
+
|
|
190
|
+
### Load at End
|
|
191
|
+
|
|
192
|
+
16. **`audit-checklist.md`** — Load after completing a layout for final verification. Contains the master anti-pattern table (single source of truth).
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
## Cross-References
|
|
197
|
+
|
|
198
|
+
- **Core rules (token compliance, radius basics, typography hierarchy, font loading):** in `.agents/skills/core-rules.md`; not injected. Read it when you need the full detail
|
|
199
|
+
- **Domain-specific patterns:** See `shavin-app` (dashboards) or `shavin-webpage` (marketing pages)
|
|
200
|
+
- **Full editorial reference:** See `references/EDITORIAL_EXPRESSIVE.md` for complete code blocks
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# Anti-Pattern Registry — The Slop Catalogue
|
|
2
|
+
|
|
3
|
+
> **Load priority:** ON-DEMAND. Load whenever composing or reviewing blocks, screens, or sections — especially when the output "feels AI-generated" or looks like a wireframe draft.
|
|
4
|
+
> **Token cost:** ~2K tokens.
|
|
5
|
+
> **Referenced by:** `core-rules.md` §7 & §11, `layout-restraint.md`, `interface-polish.md`, `audit-checklist.md`.
|
|
6
|
+
|
|
7
|
+
This file is the **single consolidated catalog** of named anti-patterns that signal AI-generated UI degradation. Always-loaded files reference these by ID (e.g. "see AP-03") to stay token-lean; the full explanation, code examples, and remediation live here.
|
|
8
|
+
|
|
9
|
+
- 💡 If `shavin-mcp` is connected: call `get_skill({ name: "visual-compositor", section: "anti-patterns" })`.
|
|
10
|
+
- 💡 Otherwise (No-MCP): read this file directly — `.agents/skills/visual-compositor/anti-patterns.md`.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## The One Governing Principle
|
|
15
|
+
|
|
16
|
+
> **Prefer typographic hierarchy (size, weight, color, spacing) over decorative elements (badges, pills, chips, colored dividers) for structural/organizational labeling. Reserve decorative elements for stateful, interactive, or status-bearing information only.**
|
|
17
|
+
|
|
18
|
+
This single principle covers badges, chips, pills, dividers, and any future decorative element. Every anti-pattern below is a specific violation of it or of one of the other principles in this file. When in doubt, ask: *am I reaching for a visual element because it adds information, or because it fills space?*
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Registry
|
|
23
|
+
|
|
24
|
+
### AP-01: Defensive Minimalism (Sterile Wireframe)
|
|
25
|
+
**Symptom:** Token-pure but visually flat — stark white background, harsh black text, zero depth, zero atmosphere. Looks like an unstyled HTML document.
|
|
26
|
+
**Why it's slop:** Confuses token compliance with aesthetic poverty. Real production UI uses layered depth.
|
|
27
|
+
**Fix:** Add atmospheric layering — soft pastel mesh backdrops (`opacity 15–30% light, 10–20% dark`), frosted glass panels (`bg-surface/80 backdrop-blur-md border border-hairline/70`), directional gradient scrims.
|
|
28
|
+
|
|
29
|
+
### AP-02: Ambient Brand Glow Balls
|
|
30
|
+
**Symptom:** Garish `bg-brand/20 blur-3xl` glowing orbs placed in corners of sections.
|
|
31
|
+
**Why it's slop:** A recognized AI design cliché. Saturated, distracting, and cheap-looking.
|
|
32
|
+
**Fix:** Replace with diffuse **pastel meshes** (lavender, soft sage, mist, peach, slate) at low opacity with CSS mask gradient dissolves (`maskImage: linear-gradient(...)`).
|
|
33
|
+
|
|
34
|
+
### AP-03: Literal Stock Photos
|
|
35
|
+
**Symptom:** Context-heavy cliché stock — people typing on laptops, handshakes, generic office desks — or dense, tiny, unreadable UI screenshots dropped into hero or feature sections.
|
|
36
|
+
**Why it's slop:** Looks cheap, breaks visual cohesion, and signals "I couldn't think of what to put here."
|
|
37
|
+
**Fix:** Choose: (1) Curated editorial photography from Lummi (`assets.lummi.ai`), Unsplash, or the user — usable anywhere, including as highlights for visual balance, not only for people/testimonials; (2) Mesh gradients (`bgOverlays="mesh-lime"` etc.) or animated backgrounds (Pexels video via `bgVideo` + `bgPoster`) with copy on top behind a scrim; (3) Abstract atmospheric textures (procedural waves, blurred chromatic grain). 3D renders are **optional decorative graphics only** — never focal hero/feature media. Do NOT rebuild product mockups/UI screenshots from Shavin primitives as imagery unless you are highly confident of the result (rarely the right call).
|
|
38
|
+
|
|
39
|
+
### AP-04: Badge Soup
|
|
40
|
+
**Symptom:** Stacking 3–4 colored `<Badge>` pills above a single heading ("⚡ FAST", "🔒 SECURE", "✨ NEW", "v2.4"). Scattering `<Badge>` across every section, card, or feature row.
|
|
41
|
+
**Why it's slop:** Adds visual noise without information value. Multiple decorative pills per viewport is the #1 hallmark of AI-generated UI.
|
|
42
|
+
**Fix:** Maximum 1 `<Badge>` per section, only for genuine state changes (version tags, success/error, notification counts). A section label is optional: most headings need none. Where a label carries real information (a category, a version, a sequence), set it as plain **overline text** rather than a pill:
|
|
43
|
+
```jsx
|
|
44
|
+
<Text size="xs" className="uppercase tracking-wider text-fg-subtle font-medium">
|
|
45
|
+
Section Label
|
|
46
|
+
</Text>
|
|
47
|
+
```
|
|
48
|
+
Overline is typographically lighter (no fill, no border, no pill), respects reading hierarchy via `text-fg-subtle`, and doesn't compete with the headline. Use it on at most one section or region per page view, never as a header on every section.
|
|
49
|
+
|
|
50
|
+
### AP-05: Paragraph Walls
|
|
51
|
+
**Symptom:** 3–4 lines of dense marketing prose under every heading.
|
|
52
|
+
**Why it's slop:** Looks like an AI trying to appear thorough. Humans curate; machines dump.
|
|
53
|
+
**Fix:** 1 paired description, 15–25 words max, `text-fg-subtle`. If more context is needed, use a dedicated sub-section, not a wall of text.
|
|
54
|
+
|
|
55
|
+
### AP-06: Metric Clutter in Heroes
|
|
56
|
+
**Symptom:** Jamming 4–6 arbitrary telemetry boxes ("99.9% uptime", "500k queries", "10x speed", "$2M saved") directly underneath the hero headline.
|
|
57
|
+
**Why it's slop:** Dilutes the single clear thought. The hero should communicate one idea in 3 seconds.
|
|
58
|
+
**Fix:** Move metrics to a dedicated proof/social-proof section below the fold. Hero keeps: 1 title, 1 subtitle, 1 primary CTA + 1 secondary, 1 clean horizontal trust line.
|
|
59
|
+
|
|
60
|
+
### AP-07: Kitchen-Sink Bento Grids
|
|
61
|
+
**Symptom:** Packing 6–8 miniature cards with charts, lists, toggles, and buttons into a single section with no breathing room.
|
|
62
|
+
**Why it's slop:** Looks like a wireframe that hasn't undergone editorial distillation.
|
|
63
|
+
**Fix:** Maximum 3–4 thoughtfully balanced cards. Generous `gap-6` or `gap-8`. Each card communicates one concept.
|
|
64
|
+
|
|
65
|
+
### AP-08: Status-Chip Soup
|
|
66
|
+
**Symptom:** Multiple colored status chips/pills on a card to communicate priority instead of using size, weight, and placement.
|
|
67
|
+
**Why it's slop:** Relies on decorative labels instead of hierarchy. Violates "Hierarchy before Labels."
|
|
68
|
+
**Fix:** Size, weight, placement, and contrast must do 90% of the work. At most 1 concise badge per view, only for urgent state changes.
|
|
69
|
+
|
|
70
|
+
### AP-09: Over-Containment (The Box Law Violation)
|
|
71
|
+
**Symptom:** Wrapping every piece of content, metric, or feature in its own bordered card or box. Related items separated by containers instead of proximity.
|
|
72
|
+
**Why it's slop:** Looks like a clunky spreadsheet. Proximity is the primary grouping tool; containers are secondary.
|
|
73
|
+
**Fix:** Use proximity to group related items (`gap-2` to `gap-4`); separate conceptual groups by whitespace (`gap-8` to `gap-12`). Reserve `<Card>` for top-level interactive surfaces only. If 3 metrics share a card, use a horizontal layout with subtle dividers — don't wrap each in a sub-card.
|
|
74
|
+
|
|
75
|
+
### AP-10: Vacuous Copywriting
|
|
76
|
+
**Symptom:** Tech clichés ("Empower your workflow", "Revolutionize your efficiency", "Seamless intelligence"), binary contrast tropes ("It's not just a dashboard. It's your command center."), throat-clearing openers ("In today's fast-paced digital ecosystem...").
|
|
77
|
+
**Why it's slop:** Generic, instantly recognizable as machine-generated.
|
|
78
|
+
**Fix:** Use domain-specific telemetry (`p99: 42ms`, `99.98% SLA`), real RBAC terms (`viewer`, `billing_admin`), precise action labels ("Generate API Key", "Deploy to Production"), and contextual callouts ("Cluster degraded — 2 of 5 replicas unhealthy in us-east-1").
|
|
79
|
+
|
|
80
|
+
### AP-11: Lazy Placeholder Content
|
|
81
|
+
**Symptom:** `"Card Title"`, `"Card Description"`, `"Option 1, 2, 3"`, `"Lorem ipsum"`, `"John Doe"`, `"user@example.com"`.
|
|
82
|
+
**Why it's slop:** Signals no editorial thought was applied to the content.
|
|
83
|
+
**Fix:** Write authentic microcopy that reflects the actual product domain. Even placeholder content should sound like a real user wrote it.
|
|
84
|
+
|
|
85
|
+
### AP-12: Harsh Border Glare (Brand-Colour Overuse Card Borders)
|
|
86
|
+
**Symptom:** Using `border-brand` or `ring-brand` for active, selected, or featured cards in standard product apps, dashboards, consoles, and documentation.
|
|
87
|
+
**Why it's slop:** In dark themes, `--brand` is mapped to high-contrast foreground (`#fafafa` / `--n-100`). Applying raw `border-brand` creates a harsh 100% white outline that causes distracting glare and disrupts reading flow.
|
|
88
|
+
**Fix:** In functional product interfaces, apps, dashboards, and docs, always use `border-hairline` for resting cards and `border-hairline-strong` for active, hover, or featured cards. Reserve `border-brand` exclusively for expressive website/marketing moments where vibrant brand colour is explicitly demanded for creative impact.
|
|
89
|
+
|
|
90
|
+
### AP-13: Sparkles Icon
|
|
91
|
+
**Symptom:** `<Icon name="sparkles">`, Lucide `Sparkles`, ✨ for AI, "magic" or "thinking" cues.
|
|
92
|
+
**Why it's slop:** The default tell of machine-made UI.
|
|
93
|
+
**Fix:** Omit it, or use a domain icon (`message-square`, `wand` only if asked). For AI activity use `<Murmur>`. Only use sparkles when the user explicitly requests it.
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Quick-Reference Decision Table
|
|
98
|
+
|
|
99
|
+
| You're about to... | Stop and ask... | Correct alternative |
|
|
100
|
+
|---|---|---|
|
|
101
|
+
| Add a `<Badge>` above a heading | "Does this convey a **state change** or **status**?" | No → drop the label, or use plain overline text only if it adds information (AP-04) |
|
|
102
|
+
| Add a 3rd+ badge in a section | "Am I filling space or adding information?" | Remove. Use hierarchy instead (AP-04, AP-08) |
|
|
103
|
+
| Wrap content in another `<Card>` | "Would **proximity** group these just as well?" | Use `gap-*` spacing, not a border (AP-09) |
|
|
104
|
+
| Add 4+ metric boxes to a hero | "Can the user scan this in 3 seconds?" | Move to dedicated section below fold (AP-06) |
|
|
105
|
+
| Write 3+ lines of body text | "Can I say this in 1–2 sentences?" | Cut to 15–25 words, `text-fg-subtle` (AP-05) |
|
|
106
|
+
| Use a stock photo of people | "Does this add **context** or just fill space?" | Use curated Lummi/Unsplash photography, a mesh, or an abstract texture (AP-03) |
|
|
107
|
+
| Add `bg-brand/20 blur-3xl` glow | "Is this a soft mesh or a garish orb?" | Use pastel mesh with mask dissolve (AP-02) |
|
|
108
|
+
| Write "Empower your workflow" | "Would a real engineer say this?" | Write domain-specific telemetry (AP-10) |
|
|
109
|
+
| Use `border-brand` on cards/panels | "Is this an expressive marketing showcase or a product/app/docs UI?" | Product/app/docs → use `border-hairline-strong` (AP-12) |
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# Audit Checklist & Anti-Patterns
|
|
2
|
+
|
|
3
|
+
> **Load priority:** Loaded at the END of layout tasks for final verification.
|
|
4
|
+
> **Token cost:** ~4K tokens.
|
|
5
|
+
> **Contains:** Master anti-pattern table (structural/spacing/motion violations) + final audit checklist.
|
|
6
|
+
> **Companion:** `visual-compositor/anti-patterns.md` — the consolidated named catalogue (AP-01–AP-13) for AI-slop visual/copywriting anti-patterns with code examples and remediation.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Master Anti-Pattern Table
|
|
11
|
+
|
|
12
|
+
> **Mode column:** `ALL` = applies to all modes; `S/M` = STRUCTURAL + MARKETING only; `E` = EDITORIAL only.
|
|
13
|
+
|
|
14
|
+
| Anti-pattern | Mode | Law / Chapter violated |
|
|
15
|
+
| -------------------------------------------------------------- | :--: | ------------------------------- |
|
|
16
|
+
| Inner element has more padding than its parent | ALL | Concentric Spacing Law |
|
|
17
|
+
| `rounded-xl` or `rounded-2xl` as a literal | ALL | Concentric Radius Law |
|
|
18
|
+
| `rounded-full` on a Card, Dialog, or Panel | ALL | Concentric Radius Law |
|
|
19
|
+
| `px-*` on a `<section>` instead of on `<Container>` | ALL | Section Architecture |
|
|
20
|
+
| `gap-*` instead of `p-*` inside a surface | ALL | Gap vs Padding |
|
|
21
|
+
| Same padding value on every nesting level | ALL | No spatial hierarchy |
|
|
22
|
+
| Arbitrary spacing values (`py-[73px]`) | ALL | Rhythm (Ch 08) |
|
|
23
|
+
| More than 6 div nesting levels | S/M | Cognitive weight |
|
|
24
|
+
| More than 7 div nesting levels | E | Cognitive weight |
|
|
25
|
+
| Card nested inside card without semantic reason | ALL | False Containment (Ch 21) |
|
|
26
|
+
| `justify="between"` with one child | ALL | Meaningless alignment |
|
|
27
|
+
| Heading below Badge below Body text (wrong order) | ALL | Reading path (Ch 07) |
|
|
28
|
+
| Sibling gap <= internal group gap | ALL | Grouping perception (Ch 03) |
|
|
29
|
+
| Two primary-level elements on one screen | ALL | Hierarchy (Ch 04) |
|
|
30
|
+
| `font-bold` on tertiary / body text | ALL | False primacy (Ch 04) |
|
|
31
|
+
| Center-aligned paragraph or form label | ALL | Reading path (Ch 07) |
|
|
32
|
+
| Inconsistent padding across a card grid | ALL | Rhythm / repeating unit (Ch 08) |
|
|
33
|
+
| Wrong density for interface type | ALL | Density (Ch 09) |
|
|
34
|
+
| h1 below the fold on first load | ALL | First-3-Seconds (Law 1) |
|
|
35
|
+
| CTA more than 320px below the primary heading | S/M | First-3-Seconds (Law 1) |
|
|
36
|
+
| More than 3 focal elements in a hero | S/M | Attention budget (Law 4) |
|
|
37
|
+
| `gap-0` or `space-y-0` between conceptually separate items | ALL | Negative space (Law 3) |
|
|
38
|
+
| Border/shadow/bg applied for aesthetics with no semantic group | ALL | False Containment (Ch 21) |
|
|
39
|
+
| `shadow-panel` on inner element, `shadow-card` on outer | ALL | Inverted containment (Ch 21) |
|
|
40
|
+
| Padding reduced on mobile below section minimums | ALL | Responsive negative space |
|
|
41
|
+
| Alignment mixed within a repeating element set | ALL | Repeating unit (Ch 08) |
|
|
42
|
+
| **Single italic/colored word in headline ("AI tell")** | ALL | Anti-Slop Design Law |
|
|
43
|
+
| **Meaningless numbered markers ("01", "02") on non-sequences** | ALL | Anti-Slop Design Law |
|
|
44
|
+
| **Status-chip soup (over-badging every card)** | ALL | Distillation & Cognitive Budget (AP-04, AP-08) |
|
|
45
|
+
| **Ambient brand glow ball (blur-3xl saturated orb)** | ALL | Atmospheric Depth & Assets (AP-02) |
|
|
46
|
+
| **Context-heavy literal stock photo in block/template** | ALL | Atmospheric Depth & Assets (AP-03) |
|
|
47
|
+
| **Content dumping / layout bloat (metric grid in hero, etc.)** | ALL | Layout Restraint & Anti-Bloat (AP-05, AP-06, AP-07) |
|
|
48
|
+
| **Scattered fade-up entrance animations on all cards** | ALL | Motion Restraint & Choreography |
|
|
49
|
+
| **Warm cream #F4F1EA background cliché on tech products** | ALL | Subject Grounding & Palette Intent |
|
|
50
|
+
| Editorial motion applied to UI feedback (button press) | E | Motion Architecture |
|
|
51
|
+
| `ease-linear` or `ease-in` on entrance animations | E | Motion Architecture |
|
|
52
|
+
| Stagger delay > 500ms total | E | Motion Architecture |
|
|
53
|
+
| `z-[999]` or non-scale z-index values | E | Z-Axis Scale |
|
|
54
|
+
| `rotateX/Y` > 6deg on a 3D card | E | Z-Axis — reads broken |
|
|
55
|
+
| Grid escape on mobile without overflow-hidden wrapper | E | Responsive Depth |
|
|
56
|
+
| Glass effect over a flat solid background (no variation) | E | Glassmorphism Rule |
|
|
57
|
+
| backdrop-blur without fallback for mobile performance | E | Responsive Atmosphere |
|
|
58
|
+
| `100vh` instead of `100dvh` on mobile hero | E | Hero Scale — chrome cut-off |
|
|
59
|
+
| Video background without a legibility overlay | E | Contrast — WCAG 2.2 AA |
|
|
60
|
+
| Parallax ratio > 0.6 | E | Parallax — reads mechanical |
|
|
61
|
+
| Theatrical void section without a stated cognitive purpose | E | Theatrical space rule |
|
|
62
|
+
| Missing loading states on async content | ALL | Cognitive Layer — State Coverage |
|
|
63
|
+
| Empty states showing nothing or generic "Nothing here" | ALL | Cognitive Layer — State Coverage |
|
|
64
|
+
| Error states without recovery path | ALL | Cognitive Layer — State Coverage |
|
|
65
|
+
| Interactive elements indistinguishable from static | ALL | Cognitive Layer — Affordances |
|
|
66
|
+
| Relying on hover as the only affordance | ALL | Cognitive Layer — Affordances |
|
|
67
|
+
| Navigation with no active/current state | ALL | Cognitive Layer — Orientation |
|
|
68
|
+
| Generic action labels ("Submit", "OK", "Click here") | ALL | Cognitive Layer — Action Hierarchy |
|
|
69
|
+
| Destructive actions with same emphasis as primary | ALL | Cognitive Layer — Action Hierarchy |
|
|
70
|
+
| Critical functionality hidden or not discoverable | ALL | Cognitive Layer — Progressive Disclosure |
|
|
71
|
+
| All features shown during onboarding | ALL | Cognitive Layer — Progressive Disclosure |
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Audit Checklist
|
|
76
|
+
|
|
77
|
+
Run this before finalising any layout. Each item maps to a specific law or chapter.
|
|
78
|
+
|
|
79
|
+
### Concentric Laws `[ALL MODES]`
|
|
80
|
+
|
|
81
|
+
- [ ] **Concentric Radius:** Does every inner element satisfy `R_inner = max(floor, R_outer - P)` (floor = `min(radius-lg, radius-panel / 2)`)?
|
|
82
|
+
- [ ] **No literal radius:** Are `rounded-lg`, `rounded-xl`, `rounded-2xl` literals absent (use `rounded-[var(--radius-panel)]` for containers, `rounded-[var(--radius-lg)]` for controls)?
|
|
83
|
+
- [ ] **Concentric Spacing:** Does padding decrease as nesting depth increases?
|
|
84
|
+
- [ ] **Section padding:** Is `px-*` on `<Container>`, never on `<section>`?
|
|
85
|
+
|
|
86
|
+
### Hierarchy + Weight `[ALL MODES]`
|
|
87
|
+
|
|
88
|
+
- [ ] **Single primary:** Is there exactly one primary-level element per screen?
|
|
89
|
+
- [ ] **Size ratio:** Is the primary element at least 2× (STRUCTURAL/MARKETING) or 6× (EDITORIAL) the font-size of the nearest secondary?
|
|
90
|
+
- [ ] **Weight balance:** Does every `shadow-panel` element have `p-5`+ padding?
|
|
91
|
+
- [ ] **No false primacy:** Is `font-bold` absent from tertiary / body-copy elements?
|
|
92
|
+
|
|
93
|
+
### Alignment + Reading Path `[ALL MODES]`
|
|
94
|
+
|
|
95
|
+
- [ ] **Center limit:** Is center alignment restricted to ≤ 3 lines of text?
|
|
96
|
+
- [ ] **No centered prose:** Are paragraphs, form labels, and list content left-aligned?
|
|
97
|
+
- [ ] **Consistent alignment:** Within any repeating element set, is alignment identical?
|
|
98
|
+
- [ ] **Section header order:** if a label exists: Label → Heading → Text, in that order. Is the label there because it adds information?
|
|
99
|
+
|
|
100
|
+
### Rhythm + Density `[ALL MODES]`
|
|
101
|
+
|
|
102
|
+
- [ ] **Repeating units:** Do all cards / rows / items in a set have identical `p-*`, `gap-*`, and `rounded-*`?
|
|
103
|
+
- [ ] **Correct density:** Is the density level appropriate for the interface type?
|
|
104
|
+
- [ ] **No density mix:** Is density consistent across the full view?
|
|
105
|
+
- [ ] **Rhythm:** Does every section use the standard rhythm (or a deliberate, justified deviation)?
|
|
106
|
+
|
|
107
|
+
### First-3-Seconds + Negative Space `[ALL MODES]`
|
|
108
|
+
|
|
109
|
+
- [ ] **Above fold:** Is the h1 fully visible without scrolling on desktop and mobile?
|
|
110
|
+
- [ ] **CTA reach:** Is the primary CTA within 320px (desktop) / 240px (mobile) of the h1 bottom? _(relax for EDITORIAL — CTA may be below a dramatic statement)_
|
|
111
|
+
- [ ] **Focal count:** Are there ≤ 3 focal elements in the hero? _(≤ 2 on mobile)_
|
|
112
|
+
- [ ] **Gap integrity:** Is `gap-0` / `space-y-0` absent between conceptually separate items?
|
|
113
|
+
- [ ] **Section minimum:** Is section py at least `py-12` on mobile?
|
|
114
|
+
|
|
115
|
+
### Containment `[ALL MODES]`
|
|
116
|
+
|
|
117
|
+
- [ ] **Semantic boundary:** Does every border/bg/shadow answer "what group does this define"?
|
|
118
|
+
- [ ] **No false containment:** Are borders and backgrounds absent from purely decorative wrappers?
|
|
119
|
+
- [ ] **Hierarchy match:** Is `shadow-panel` used on outer surfaces, `shadow-card` on inner surfaces?
|
|
120
|
+
- [ ] **Mobile containment:** Does every boundary still communicate correctly at mobile viewport?
|
|
121
|
+
|
|
122
|
+
### Editorial & Expressive `[EDITORIAL + HYBRID only]`
|
|
123
|
+
|
|
124
|
+
- [ ] **Mode declared:** Is the mode identified and declared before writing markup?
|
|
125
|
+
- [ ] **Easing vocabulary:** Are editorial animations using `--ease-editorial` or `--ease-reveal` (not `ease-linear` or `ease-in`)?
|
|
126
|
+
- [ ] **Stagger limit:** Is total stagger delay ≤ 500ms across siblings?
|
|
127
|
+
- [ ] **Scroll trigger threshold:** Is IntersectionObserver threshold set to 0.1–0.2?
|
|
128
|
+
- [ ] **reduced-motion:** Is `prefers-reduced-motion` respected for all scroll animations?
|
|
129
|
+
- [ ] **clamp() used:** Are hero headlines using `clamp(min, vw, max)` instead of breakpoint steps?
|
|
130
|
+
- [ ] **Z-index scale:** Are only the 6 defined z-index steps used (no `z-[999]`)?
|
|
131
|
+
- [ ] **3D max rotation:** Is rotateX/Y ≤ 6deg on any 3D transform?
|
|
132
|
+
- [ ] **Mobile overflow:** Is `overflow-hidden` wrapping any grid-escape elements on mobile?
|
|
133
|
+
- [ ] **Glass background:** Does any glass element have a non-flat visual layer behind it?
|
|
134
|
+
- [ ] **Mobile backdrop-blur:** Is `backdrop-blur` reduced or removed on mobile?
|
|
135
|
+
- [ ] **Hero uses `100dvh`:** Are editorial heroes using `100dvh` not `100vh`?
|
|
136
|
+
- [ ] **Video contrast:** Does every video/image hero have a legibility overlay achieving 4.5:1 (WCAG 2.2 AA)?
|
|
137
|
+
- [ ] **Theatrical void justified:** Can you state what each void section communicates?
|
|
138
|
+
|
|
139
|
+
### Atmospheric Depth & Asset Choice `[ALL MODES]`
|
|
140
|
+
|
|
141
|
+
> See also: `anti-patterns.md` AP-01 (Defensive Minimalism), AP-02 (Glow Balls), AP-03 (Stock Photos).
|
|
142
|
+
|
|
143
|
+
- [ ] **No AI-slop brand glow balls:** Are garish `bg-brand/20 blur-3xl` saturated glow balls replaced by soft, diffuse pastel meshes?
|
|
144
|
+
- [ ] **Aesthetic abstraction over literal stock photos:** Are cliché photos (people at laptops, handshakes, office desks) replaced by curated Lummi/Unsplash photography, mesh gradients, video backdrops, or abstract textures (3D only as optional decoration)?
|
|
145
|
+
- [ ] **Directional scrims:** Does any text placed over background textures use a semantic token gradient scrim?
|
|
146
|
+
|
|
147
|
+
### Layout Restraint & Anti-Bloat `[ALL MODES]`
|
|
148
|
+
|
|
149
|
+
> See also: `anti-patterns.md` AP-04 (Badge Soup), AP-05 (Paragraph Walls), AP-06 (Metric Clutter), AP-07 (Bento Grids), AP-09 (Over-Containment).
|
|
150
|
+
|
|
151
|
+
- [ ] **Single clear thought:** Does the hero communicate one single punchy value proposition in 4–8 words?
|
|
152
|
+
- [ ] **No metric clutter in hero:** Is telemetry/metric data placed in a dedicated section below the fold, rather than jammed into the hero?
|
|
153
|
+
- [ ] **Distillation budget:** At most 1 badge and 2 action buttons per section? No labels above most headings on the page, no badge soup?
|
|
154
|
+
- [ ] **Airy breathing room:** Does the section use generous vertical padding (`py-24 md:py-32` for marketing)?
|
|
155
|
+
|
|
156
|
+
### Responsive `[ALL MODES]`
|
|
157
|
+
|
|
158
|
+
- [ ] **Spacing grows:** Does spacing only grow (never shrink) at larger breakpoints?
|
|
159
|
+
- [ ] **Mobile density:** Is mobile at least one density level more compact than desktop?
|
|
160
|
+
- [ ] **Ratio preserved:** Is the hierarchy size ratio maintained on mobile?
|
|
161
|
+
- [ ] **No arbitrary spacing:** Are all spacing values on the 4px Tailwind scale?
|
|
162
|
+
- [ ] **Gap vs padding:** Are `gap-*` and `p-*` used for their correct semantic roles at all viewports?
|