@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,97 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: shavin-studio
|
|
3
|
+
description: >
|
|
4
|
+
Rules for designing live in Shavin Studio through the MCP: only when a Studio session is connected
|
|
5
|
+
(connect_studio) and you build BlockNode trees for the canvas with compose_to_canvas or inject_blocks.
|
|
6
|
+
Covers BlockNode shape and prop names, responsive @tablet/@mobile overrides, frames, icons and theme
|
|
7
|
+
changes, and the isolated block workflow (design, validate, approve, hand off). Not needed for writing code in a project.
|
|
8
|
+
sections:
|
|
9
|
+
- id: when
|
|
10
|
+
description: "When this skill applies and the Studio tools"
|
|
11
|
+
- id: blocknodes
|
|
12
|
+
description: "BlockNode trees: shape, prop names, what the Studio parser drops"
|
|
13
|
+
- id: responsive
|
|
14
|
+
description: "@tablet / @mobile overrides, frames, the responsive workflow"
|
|
15
|
+
- id: theme
|
|
16
|
+
description: "Icons, spacing and live theme changes"
|
|
17
|
+
- id: block-workflow
|
|
18
|
+
description: "Designing a block or section in isolation: understand, design, validate, approve, hand off"
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# shavin-studio
|
|
22
|
+
|
|
23
|
+
- This skill is for a **connected Studio session only**. Writing `.tsx` in a project does not need it: use `CLAUDE.md`, `AGENTS.md` and `shavin-app` / `shavin-webpage`.
|
|
24
|
+
- Load it with `get_skill({ name: "shavin-studio" })` after `connect_studio` succeeds. Without MCP read `.agents/skills/shavin-studio/SKILL.md`.
|
|
25
|
+
- The component rules still apply on the canvas: every element is a `@shavin/ui` component, semantic tokens only, and the six states.
|
|
26
|
+
|
|
27
|
+
## 1. When it applies
|
|
28
|
+
|
|
29
|
+
The Studio tools appear once `connect_studio({ pairingCode })` has paired with a session (the 6-character code is in Studio's Connect AI panel).
|
|
30
|
+
|
|
31
|
+
| Tool | Use for |
|
|
32
|
+
|---|---|
|
|
33
|
+
| `compose_to_canvas(prompt, frame?)` | Synthesize a layout and render it live on the canvas |
|
|
34
|
+
| `inject_blocks(blocks, mode?, frame?)` | Put a `BlockNode[]` tree on the canvas (`mode: "replace"` or add) |
|
|
35
|
+
| `get_studio_state()` | Read the current canvas blocks and theme before changing them |
|
|
36
|
+
| `set_studio_theme(brand, gray, radius, dark, scaling, panelBackground)` | Change the theme live |
|
|
37
|
+
| `clear_studio_canvas()` | Empty the canvas |
|
|
38
|
+
| `duplicate_frame({ frameId?, title?, count? })` | Copy a frame (new ids) next to the original: carousel slides, breakpoint or colour variants |
|
|
39
|
+
| `export_frame({ path, frameId?, format?, scale? })` | Render a frame to a PNG, JPG or WebP file (1x to 3x) at a local path (local MCP only) |
|
|
40
|
+
| `resize_frame({ frameId, device?, width?, height? })` | Change a frame's device preset or size (social presets ignore `width` and `height`) |
|
|
41
|
+
| `disconnect_studio()` | End the session |
|
|
42
|
+
|
|
43
|
+
## 2. BlockNode trees
|
|
44
|
+
|
|
45
|
+
A block is `{ "type": "<Component>", "props": { … }, "children": [ … ] }`. Studio reads the same props as the components, with these rules:
|
|
46
|
+
|
|
47
|
+
- Prop names are the component's own: `weight` on `Text` and `Heading` (`<Text weight="semibold">`), `name` on `Icon` (not `icon`), `direction="column"` on `Flex` (`col` is accepted, `column` is canonical).
|
|
48
|
+
- `Button` takes `tone="brand"` or `tone="danger"` only. For a neutral look use `variant="ghost"` without `tone`.
|
|
49
|
+
- Never set the same style through a prop and `className` (`size="7"` and `className="text-3xl"` conflict). Pick the prop.
|
|
50
|
+
- The Studio parser drops raw `<ul>`/`<li>` and `<section>`/`<header>`/`<nav>`. Use `Flex` rows (`<Flex direction="column" gap="3">` with child `<Flex direction="row">`), `Box`, or `Section`.
|
|
51
|
+
- Wrap `Card` children in a `Flex` with a `gap`; a `Card` does not space its children.
|
|
52
|
+
- Look every component up with `get_components` first; do not guess props.
|
|
53
|
+
|
|
54
|
+
## 3. Responsive overrides
|
|
55
|
+
|
|
56
|
+
The base (desktop) value is always written without a suffix. Tablet and mobile overrides use `@tablet` / `@mobile` suffixes on the same prop key.
|
|
57
|
+
|
|
58
|
+
| Breakpoint | Suffix | Tailwind prefix | Trigger |
|
|
59
|
+
|---|---|---|---|
|
|
60
|
+
| Desktop (base) | none | none | default |
|
|
61
|
+
| Tablet | `@tablet` | `max-lg:` | below 1024px |
|
|
62
|
+
| Mobile | `@mobile` | `max-md:` | below 768px |
|
|
63
|
+
|
|
64
|
+
Props that accept overrides: `columns`, `rows`, `gap`, `direction` / `flexDir`, `align` / `items`, `justify`, `wrap`, `padding`, `width`, `height`; style props such as margin, font size and display also accept them.
|
|
65
|
+
|
|
66
|
+
```json
|
|
67
|
+
{ "type": "Grid", "props": { "columns": "3", "columns@tablet": "2", "columns@mobile": "1", "gap": "6", "gap@mobile": "4" } }
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
renders as `grid-cols-3 max-lg:grid-cols-2 max-md:grid-cols-1 gap-6 max-md:gap-4`.
|
|
71
|
+
|
|
72
|
+
- Mobile wins over tablet. Only override what changes; do not repeat the whole prop set.
|
|
73
|
+
- Prefer layouts that adapt by themselves (`Grid columns="auto"`, `AppFrame`) before using suffixes.
|
|
74
|
+
- Workflow: `get_studio_state` → add `@mobile` / `@tablet` keys to the blocks → `inject_blocks` with `mode: "replace"`.
|
|
75
|
+
- To show desktop and mobile side by side, pass `frame: { "title": "Mobile Hero", "device": "mobile" }` to `compose_to_canvas` / `inject_blocks`. A frame is a preview, not a substitute for the overrides.
|
|
76
|
+
- A frame has one size. The web devices default to desktop 1440x1024, tablet 768x1024 and mobile 390x844 (`width` and `height` override them; `block` is retired and becomes `desktop`). The social presets are exact canvases with no padding, clipped at the edge, and exported at exactly that size: `social-portrait` 1080x1350 (Instagram 4:5), `social-square` 1080x1080, `social-wide` 1600x900. Their `width` and `height` are ignored.
|
|
77
|
+
- A frame without a `title` is named by its type and size: `Desktop 1440`, `Mobile 390`, `Instagram portrait 1080×1350`, numbered when the name is taken. Pass a `title` that says what the frame is for ("Pricing, mobile") when you add a second frame.
|
|
78
|
+
- To produce a post or carousel: `inject_blocks` with a social preset, `duplicate_frame` for each slide, `resize_frame` to change a slide's preset, then `export_frame` to a path on disk.
|
|
79
|
+
- For a social post or carousel, quote the headline, subhead and call to action of each frame in your reply, so the user can check the copy without opening the frame.
|
|
80
|
+
|
|
81
|
+
## 4. Icons, spacing and theme
|
|
82
|
+
|
|
83
|
+
- Icons are `{ "type": "Icon", "props": { "name": "Check", "size": "sm", "color": "brand" } }`. No emoji or Unicode glyphs.
|
|
84
|
+
- Spacing and radius follow `core-rules.md`; the canvas applies the project's tokens.
|
|
85
|
+
- `set_studio_theme` changes brand, gray, radius, dark mode, scaling and panel background on the canvas only. To change a project, edit `SHAVIN.md`, `.shavin/config.json` and the `ThemeProvider` (see `CLAUDE.md`, "Brand colour").
|
|
86
|
+
|
|
87
|
+
## 5. Designing a block or section in isolation
|
|
88
|
+
|
|
89
|
+
Use this when the user wants a section, block or screen designed and approved before it is merged into the project (on the Studio canvas or as a scratch file). Work in a silo: do not touch production files until the user approves.
|
|
90
|
+
|
|
91
|
+
1. **Understand.** Call `get_studio_schema` for the block registry (key, name, category, tier) and `get_block_template({ key })` for a block you can start from. Ask at most one clarifying question (for example "full page or a card section?").
|
|
92
|
+
2. **Design.** `get_tokens` for the legal utilities, `get_components({ name })` for each primitive's props. Every element is a `@shavin/ui` component, floating surfaces carry `data-panel`, and the six states are built in (see `CLAUDE.md`).
|
|
93
|
+
3. **Validate.** Run `validate_code` on the JSX and fix every finding before showing it. Do not show the user code that fails.
|
|
94
|
+
4. **Present.** Show the block in a code fence with one line per section and ask: "Does this look right? Any changes before I hand this off?" Iterate until the user approves explicitly.
|
|
95
|
+
5. **Hand off.** Output the final block labelled "Approved, ready to merge", with a header: `// [SHAVIN-HANDOFF] Target: <path>`, the imports, and the props. The main agent or the user merges it; do not write to production files yourself.
|
|
96
|
+
|
|
97
|
+
When delegating this to a subagent, give it a dense brief: `TASK: <feature>; Mode=<STRUCTURAL|MARKETING|EDITORIAL>`, `CONTAINER: size, padding`, `RADIUS: panel=rounded-[var(--radius-panel)]; control=rounded-[var(--radius-lg)]`, `ACTIONS: primary, secondary`, `RULES: tokens only, data-panel on floating surfaces, import @shavin/ui root only`.
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: shavin-webpage
|
|
3
|
+
description: >
|
|
4
|
+
Guides the architecture, visual composition, layout design, and implementation of
|
|
5
|
+
marketing pages, landing pages, documentation portals, editorial showcases, and content-driven
|
|
6
|
+
web experiences using @shavin/ui as the base design system engine, powered by cognitive design principles, Vercel Web Interface Guidelines, Meng To editorial craft, and
|
|
7
|
+
high-conversion landing page doctrines. Not for app screens, dashboards, settings, auth or
|
|
8
|
+
onboarding: those go to shavin-app.
|
|
9
|
+
sections:
|
|
10
|
+
- id: page-architecture
|
|
11
|
+
file: page-architecture.md
|
|
12
|
+
description: "12-section architecture, intake, layout selection, copywriting, tagline reveal, fluid nav (~3.5K tokens)"
|
|
13
|
+
- id: editorial-craft
|
|
14
|
+
file: editorial-craft.md
|
|
15
|
+
description: "Meng To editorial craft, atmospheric recipes, container lines, progressive blur, UI previews (~3K tokens)"
|
|
16
|
+
- id: style-recipes
|
|
17
|
+
file: style-recipes.md
|
|
18
|
+
description: "Garden Skills calibration dials, 5 flagship style archetypes (Linear, Apple, Stripe, Editorial, Vercel) (~2.5K tokens)"
|
|
19
|
+
- id: blueprint
|
|
20
|
+
description: "Pre-generation design blueprint"
|
|
21
|
+
- id: primitives
|
|
22
|
+
description: "@shavin/ui primitive hierarchy"
|
|
23
|
+
- id: composition
|
|
24
|
+
description: "Web page composition rules"
|
|
25
|
+
- id: checklist
|
|
26
|
+
description: "Pre-flight verification checklist"
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
- Targeted sections: `get_skill({ name: "shavin-webpage", section: "page-architecture" | "editorial-craft" | "style-recipes" })`.
|
|
30
|
+
- Layout catalogue: `get_skill({ name: "layout-compositions" })` (57 compositions); motion: `layout-motion` (Tier 1), `layout-choreography` (Tier 2).
|
|
31
|
+
- Core rules (tokens, radius, typography, fg vs fg-subtle vs fg-muted, font loading) are in `.agents/skills/core-rules.md` and are not injected. Read it when you need the full detail.
|
|
32
|
+
- Mode: `get_skill_mode` is advisory only. Precedence: explicit user request > `SHAVIN.md` > `get_skill_mode` > default (see `visual-compositor` section Mode Precedence). For DOCS sites also load `visual-compositor/docs-mode.md`.
|
|
33
|
+
- Without MCP: read `page-architecture.md`, `editorial-craft.md`, `style-recipes.md` directly; take mode from `SHAVIN.md`.
|
|
34
|
+
- App screens, dashboards, settings, auth, onboarding and data tables are not webpages: use `shavin-app`.
|
|
35
|
+
- Every UI element is a `@shavin/ui` component (no raw HTML controls, no hand-styled div imitations, no other UI library). These rules apply on every UI-writing turn, including small follow-ups.
|
|
36
|
+
|
|
37
|
+
# shavin-webpage Skill
|
|
38
|
+
|
|
39
|
+
You are a **Web Experience Architect & Designer** using the **Shavin Design System (`@shavin/ui`)**. Your purpose is to architect, visually compose, and implement stunning, high-converting, accessible, and editorial web experiences — landing pages, marketing sites, documentation portals, and brand showcases.
|
|
40
|
+
|
|
41
|
+
This skill synthesizes **`@shavin/ui` primitives and design tokens** with cognitive design laws, the engineering craft of **Meng To and Rauno Freiberg**, the motion physics of **Emil Kowalski**, and **Vercel Web Interface Guidelines** to prevent AI UI slop and produce web experiences that are visually breathtaking, cognitively clear, and perfectly structured.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## 1. Core Philosophy: Webpages as Visual Stories
|
|
46
|
+
|
|
47
|
+
> **Law 1:** Perception precedes comprehension. Users form an impression before they read a single line of copy. Shape it intentionally.
|
|
48
|
+
> **Law 4:** Attention is finite. Every screen has a budget. If everything is bold and loud, nothing is important.
|
|
49
|
+
|
|
50
|
+
Webpages are reading paths and visual stories. Unlike web applications (which focus on task execution), webpages focus on **orientation, messaging hierarchy, visual engagement, and narrative flow**.
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
- **Start every page with `plan_page({ brief })`** (Shavin MCP). It turns the brief into a section-by-section composition plan; `check_page` verifies the plan and that every `<Section data-composition="<ID>">` matches it. Without MCP: write the plan yourself (section, composition ID from `layout-compositions`, treatment, motion tier, reason) to `.shavin/plans/<page>.json` before coding.
|
|
55
|
+
- **Every section is `<Section data-composition="<ID>">`**, or `"none"` for utility screens (auth, 404).
|
|
56
|
+
|
|
57
|
+
## 2. Pre-Generation Design Blueprint
|
|
58
|
+
|
|
59
|
+
Before writing any JSX component code, define the **Web Page Blueprint**:
|
|
60
|
+
|
|
61
|
+
### 1. The 3-Second Cognitive Goal
|
|
62
|
+
What single takeaway must a user understand within 3 seconds of landing here?
|
|
63
|
+
_Example: "@shavin/ui is a zero-slop, token-driven React design system built for speed."_
|
|
64
|
+
|
|
65
|
+
### 2. Narrative Arc & Visual Hierarchy
|
|
66
|
+
Define the vertical visual rhythm:
|
|
67
|
+
1. **Hero Banner** — Immediate value proposition + primary conversion CTA + preview artifact.
|
|
68
|
+
2. **Social Proof / Metrics** — Trust indicators (`<StatCard label value sub>` or logo grids).
|
|
69
|
+
3. **Core Feature Grid** — 3–4 key capabilities (`Grid columns="auto"` of `Card`s).
|
|
70
|
+
4. **Deep Dive / Interactive Demo** — Live preview or code block showcase (`<CodeBlock>`).
|
|
71
|
+
5. **Secondary Information / FAQ** — Accordion disclosures or technical specs.
|
|
72
|
+
6. **Closing Conversion Banner** — Final high-contrast CTA section.
|
|
73
|
+
|
|
74
|
+
### 3. Reading Path & Scanning Pattern
|
|
75
|
+
- Use **F-pattern** for documentation and text-heavy pages (`<Container size="md">`, `<Heading>`, `<Text>`, `<List>`).
|
|
76
|
+
- Use **Z-pattern** for marketing and feature landing pages (`<Grid columns="2">` alternating image/text blocks).
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## 3. Base Engine: `@shavin/ui` Primitive Hierarchy & Font Protocol
|
|
81
|
+
|
|
82
|
+
Always compose using native `@shavin/ui` primitives. Never use raw HTML elements (`<p>`, `<code>`, `<h1-h6>`) when a Shavin primitive exists.
|
|
83
|
+
|
|
84
|
+
| Category | `@shavin/ui` primitives to use |
|
|
85
|
+
|---|---|
|
|
86
|
+
| **Page layout** | `Container` (size `xs` 28rem, `sm` 42rem, `md` 56rem, `lg` 72rem, `xl` 88rem, `full`), `Section`, `Grid`, `Flex`, `Box`, `AspectRatio`, `Inset`, `TopBar`, `Breadcrumbs` |
|
|
87
|
+
| **Typography** | `Heading`, `Text`, `Strong`, `Em`, `Quote`, `Blockquote`, `Code`, `Link`, `Kbd` |
|
|
88
|
+
| **Surfaces & content** | `Card`, `CardList`, `CardListItem`, `Callout`, `Badge`, `Avatar`, `Separator`, `Image`, `List`, `ListItem`, `StatCard`, `CodeBlock` |
|
|
89
|
+
| **Interactive** | `Button`, `IconButton`, `Accordion`, `AccordionItem`, `AccordionTrigger`, `AccordionContent`, `Tabs`, `TabsList`, `TabsTrigger`, `TabsContent`, `Pagination`, `Carousel` |
|
|
90
|
+
| **Page chrome** | No `Header` or `Footer` primitive: build navigation and footers as `Section`/`Container` + `Flex`/`Grid` with `Link` and `Button` (compositions ST1–ST4) |
|
|
91
|
+
|
|
92
|
+
Font loading protocol: see `core-rules.md` (not injected; read the file).
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## 4. Web Page Composition & Ergonomic Rules
|
|
97
|
+
|
|
98
|
+
### Rule 1: Decouple HTML Semantics from Visual Size
|
|
99
|
+
- Always set **`as`** for SEO/screen readers (`as="h1"`, `as="h2"`, `as="h3"`).
|
|
100
|
+
- Always set **`size`** for visual hierarchy (`size="3xl"`, `size="2xl"`, `size="xl"`, `size="lg"`, `size="sm"`).
|
|
101
|
+
|
|
102
|
+
```tsx
|
|
103
|
+
// Correct: h1 semantic tag, 48px visual display header
|
|
104
|
+
<Heading as="h1" size="3xl" className="tracking-tight text-fg font-bold">
|
|
105
|
+
Build Faster with Shavin UI
|
|
106
|
+
</Heading>
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Rule 2: Token-Only Styling & Concentric Radius
|
|
110
|
+
See `core-rules.md` (not injected; read the file) for token compliance and concentric radius rules.
|
|
111
|
+
|
|
112
|
+
### Rule 3: Typography Color Hierarchy
|
|
113
|
+
See `core-rules.md` (not injected; read the file) for fg vs fg-subtle vs fg-muted rules.
|
|
114
|
+
|
|
115
|
+
### Rule 4: Ergonomics, Performance & Animation (Vercel Guidelines)
|
|
116
|
+
- **Zero CLS & Aspect Ratio**: Always reserve space for hero images or graphic mockups via `<AspectRatio ratio="16/9">` or `<Image ratio="4/3">` to prevent layout shift.
|
|
117
|
+
- **Mobile Input Safety**: `TextField`, `TextArea`, `Select` and `Combobox` already render 16px below `md`, so iOS never zooms. Do not override font size with `className`. Controls in the same row (search + filter + button) share one `size` so heights match (sm 32px, md 40px, lg 48px).
|
|
118
|
+
- **Stack gaps**: `Flex` defaults to `gap="3"` even in a column. A title over a subtitle needs `gap="0"` or `gap="1"`, set explicitly.
|
|
119
|
+
- **Compositor-Only Animations**: hand-written animation uses `transform` and `opacity` only; never `transition: all`. Components that own a height animation (`Accordion`, `Skeleton`) are fine to use as shipped.
|
|
120
|
+
- **Hit Targets**: Controls reach 44px on touch automatically (24px AA floor). Stand-alone links use `<Link standalone>`; custom controls `hit-area-touch`.
|
|
121
|
+
|
|
122
|
+
### Rule 5: Page Width via `Container`
|
|
123
|
+
|
|
124
|
+
Use `<Container size>` for every width. Never hand-write `mx-auto max-w-*` wrappers.
|
|
125
|
+
|
|
126
|
+
| `size` | Max width | Use |
|
|
127
|
+
|---|---|---|
|
|
128
|
+
| `xs` | 28rem | Auth card, narrow forms |
|
|
129
|
+
| `sm` | 42rem | Measure-limited prose, hero sub-headlines |
|
|
130
|
+
| `md` (default) | 56rem | Articles, docs content |
|
|
131
|
+
| `lg` | 72rem | Body sections |
|
|
132
|
+
| `xl` | 88rem | Nav and footer only |
|
|
133
|
+
| `full` | none | Full-bleed media |
|
|
134
|
+
|
|
135
|
+
```tsx
|
|
136
|
+
<Section data-composition="F1">
|
|
137
|
+
<Container size="lg">
|
|
138
|
+
<Grid columns="auto" minWidth="md" gap="4">{/* cards */}</Grid>
|
|
139
|
+
</Container>
|
|
140
|
+
</Section>
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Cap body copy at `size="sm"` measure (about 42rem).
|
|
144
|
+
|
|
145
|
+
Use one `Container` size for all body sections of a page. Mixing `xl` and `lg` makes the left and right edges jump from section to section, and `xl` never caps at a 1280px viewport, so the content ends up about 24px from the screen edges.
|
|
146
|
+
|
|
147
|
+
### Rule 6: Anti-Copy Slop & Authentic Messaging Standards
|
|
148
|
+
Marketing and product pages quickly look fake and low-effort when filled with generic AI copywriting tropes:
|
|
149
|
+
- ❌ **Forbidden Clichés:** *"Empower your growth"*, *"Unleash next-generation innovation"*, *"It's not just a tool. It's a game-changer."*, *"In today's fast-paced world..."*.
|
|
150
|
+
- ❌ **Meaningless Feature Titles:** *"Smart Automation"*, *"Effortless Integration"*, *"Maximum Performance"*, *"Seamless Synergy"*.
|
|
151
|
+
- ✅ **Specific Value Propositions:** *"Deploy globally across 35 edge regions in <300ms"*, *"Zero-runtime CSS with token-checked Tailwind preset"*, *"Accessible primitives with focus traps, tested against WCAG 2.2 AA"*.
|
|
152
|
+
- ✅ **Concrete Numbers & Proof:** Use actual benchmark numbers, concrete customer team sizes, and real technical capabilities.
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## 5. Layout Compositions — Creative Direction Catalogue
|
|
157
|
+
|
|
158
|
+
When architecting a page, consult the **layout compositions catalogue** for proven structural patterns. It is a standalone skill with 57 compositions in 9 families:
|
|
159
|
+
|
|
160
|
+
- 💡 **MCP:** `get_skill({ name: "layout-compositions", section: "selection-guide" })` for decision tables, `section: "compositions-hero"` for a family.
|
|
161
|
+
- 💡 **No-MCP:** read `.agents/skills/layout-compositions/references/` directly.
|
|
162
|
+
|
|
163
|
+
Families:
|
|
164
|
+
|
|
165
|
+
| Family | IDs | Example Use |
|
|
166
|
+
|---|---|---|
|
|
167
|
+
| **Structural** | ST1–ST6 | Nav, announcement bar, footer, page shell, app shell |
|
|
168
|
+
| **Hero** | H1–H5 | Centered, split, asymmetric, full-bleed, type-led |
|
|
169
|
+
| **Features** | F1–F9 | Grid, bento, Z-pattern, card rail, tabs, sticky scroll, timeline, comparison split, ecosystem |
|
|
170
|
+
| **Proof** | S1–S3, T1–T4 | Stats, testimonials, logos |
|
|
171
|
+
| **Conversion** | C1–C5, P1–P3, Q1–Q2 | CTA, contact, newsletter, pricing, FAQ |
|
|
172
|
+
| **Gallery** | G1–G5 | Masonry, filterable, marquee rows, case study, people |
|
|
173
|
+
| **Editorial** | E1–E4 | Article, longform, magazine, archive |
|
|
174
|
+
| **Documentation** | D1–D4 | Docs shell, API ref, changelog, landing |
|
|
175
|
+
| **Expressive** | X1–X5 | Broken-grid, type wall, sticky split, horizontal track, hover preview |
|
|
176
|
+
|
|
177
|
+
Each composition includes **metadata** (id, family, job, density, styles, treatments, media, slots, motion), **ASCII wireframe**, **Best for / Avoid when / Contract / Grid / Watch** lines, and **page recipes** for multi-section blueprints. Use `/compose-page` to plan and build from the catalogue.
|
|
178
|
+
|
|
179
|
+
### Motion Tiers
|
|
180
|
+
|
|
181
|
+
- **Tier 0** (default): No motion. Static is better than gratuitous.
|
|
182
|
+
- **Tier 1** (`layout-motion` skill): Restrained presets — reveals, hovers, count-ups, marquees. 11 presets using `--dur-*`, `--dist-*`, `--stagger` tokens.
|
|
183
|
+
- **Tier 2** (`layout-choreography` skill): Cinematic/awwwards scenes — pinned scrollytelling, scroll-scrubbed timelines, horizontal scroll, split-text reveals. One signature + two supporting scenes max per page. Requires finished static layout first.
|
|
184
|
+
|
|
185
|
+
### Composition Selection Principles
|
|
186
|
+
1. **Content contract first** — if the real content doesn't fit a composition's contract, change the composition, not the content.
|
|
187
|
+
2. **Rhythm** — no three consecutive sections with the same grid. Adjacent sections differ in background, alignment, density, or column count.
|
|
188
|
+
3. **One hero, one closing CTA** — every page should open strong and close with intent.
|
|
189
|
+
4. **Distinctiveness** — apply at least two variation knobs and name one bold moment (see `layout-compositions/references/distinctiveness.md`).
|
|
190
|
+
5. **Preview artifacts > decorative graphics** — always prefer real screenshots, code blocks, or live previews over abstract illustrations.
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## 6. Pre-Flight Verification Checklist
|
|
195
|
+
|
|
196
|
+
Before publishing or outputting any webpage code, verify:
|
|
197
|
+
|
|
198
|
+
- [ ] **3-Second Goal:** Is the primary message instantly clear?
|
|
199
|
+
- [ ] **Content Realism:** Is the page copy free of AI marketing clichés (*"Empower"*, *"Revolutionary"*, *"It's not X, it's Y"* tropes)?
|
|
200
|
+
- [ ] **Single Focal Point:** Is there exactly one dominant primary CTA in the hero section?
|
|
201
|
+
- [ ] **Concentric Radius:** Do embedded card images use `rounded-panel-inner` to align concentric curves?
|
|
202
|
+
- [ ] **Zero CLS:** Are all hero images and media previews wrapped in aspect ratio containers?
|
|
203
|
+
- [ ] **Compositor Animation:** Are transitions scoped explicitly to `transform` / `opacity` without `transition: all`?
|
|
204
|
+
- [ ] **Typography Hierarchy:** Are headings using `<Heading as="h1..h6" size="...">` with proper semantic levels?
|
|
205
|
+
- [ ] **Token Compliance:** Are all colors, radii, and spacing using semantic Shavin tokens?
|
|
206
|
+
- [ ] **Responsive Grid:** Card grids use `Grid columns="auto" minWidth="..."`; checked at 375, 768 and 1280 wide?
|
|
207
|
+
- [ ] **Composition IDs:** Every section is `<Section data-composition="<ID>">` (`"none"` for utility screens) and matches the plan?
|
|
208
|
+
- [ ] **States:** Forms, newsletter, search and pricing toggles have empty, loading, error, success and disabled states (six-state rule: `shavin-app` section `state`)?
|
|
209
|
+
- [ ] **Validation:** `validate_code` and `check_page` run on every UI turn (no MCP: `npx shavin-lint-tokens <path>`)?
|
|
210
|
+
- [ ] **Zero Slop:** Are raw `<p>`, `<code>`, `<b>`, `<ul>/<li>` replaced with native Shavin primitives (`<Text>`, `<Code>`, `<Strong>`, `<List>`, `<ListItem>`)?
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# Editorial Craft & Cinematic Web Experiences
|
|
2
|
+
|
|
3
|
+
> Synthesizing **Meng To's Awwwards/FWA-grade editorial design doctrines** into `@shavin/ui` tokenized, high-performance layouts.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Atmospheric Background Compositions
|
|
8
|
+
|
|
9
|
+
Top-tier interfaces never use flat single-color blocks or crude neon glow balls. They craft **atmospheric depth** through layered chromatic textures and directional scrims:
|
|
10
|
+
|
|
11
|
+
### The Multi-Layer Atmospheric Recipe
|
|
12
|
+
A cinematic hero background consists of 3 distinct layers:
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
Layer 3 (Foreground): Content (Heading, text, buttons, UI mockups)
|
|
16
|
+
▲
|
|
17
|
+
Layer 2 (The Scrim): Directional dissolution (from-canvas/30 via-surface/80 to-surface backdrop-blur-[2px])
|
|
18
|
+
▲
|
|
19
|
+
Layer 1 (The Texture): High-resolution organic chromatic photography or mesh gradient (opacity 25-35%)
|
|
20
|
+
▲
|
|
21
|
+
Layer 0 (The Canvas): Base background token (bg-canvas)
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
```tsx
|
|
25
|
+
// Architectural Pattern: The Lummi-Atmosphere Hero
|
|
26
|
+
<div className="relative overflow-hidden bg-canvas py-24 md:py-32">
|
|
27
|
+
{/* Layer 1: Organic Chromatic Texture */}
|
|
28
|
+
<div className="absolute inset-0 pointer-events-none z-0 overflow-hidden">
|
|
29
|
+
<div
|
|
30
|
+
className="absolute inset-0 w-full h-full bg-cover bg-center opacity-30 dark:opacity-20 scale-105"
|
|
31
|
+
style={{ backgroundImage: "url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=1964&auto=format&fit=crop')" }}
|
|
32
|
+
/>
|
|
33
|
+
{/* Layer 2: Directional Scrim (keeps text at 4.5:1, WCAG 2.2 AA) */}
|
|
34
|
+
<div className="absolute inset-0 bg-gradient-to-b from-canvas/30 via-surface/80 to-surface backdrop-blur-[2px]" />
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
{/* Layer 3: Foreground Content */}
|
|
38
|
+
<Container size="lg" className="relative z-10">
|
|
39
|
+
...
|
|
40
|
+
</Container>
|
|
41
|
+
</div>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## 2. Container Lines & Framed Grid Layouts
|
|
47
|
+
|
|
48
|
+
To achieve an **editorial, engineering-grade CAD feel** (seen in Linear, Chronicle, and Vercel design systems), replace arbitrary floating cards with **continuous container lines**:
|
|
49
|
+
|
|
50
|
+
### Hairline Grid Lines
|
|
51
|
+
Instead of drawing separate box outlines around every column:
|
|
52
|
+
- Use parent container dividers: `divide-x divide-hairline` or `divide-y divide-hairline`.
|
|
53
|
+
- Add subtle crosshairs at grid intersections:
|
|
54
|
+
```tsx
|
|
55
|
+
<div className="relative border border-hairline/70 rounded-[var(--radius-panel)] p-8">
|
|
56
|
+
{/* Crosshair highlights at corners */}
|
|
57
|
+
<span className="absolute -top-1.5 -left-1.5 text-hairline font-mono text-xs select-none">+</span>
|
|
58
|
+
<span className="absolute -top-1.5 -right-1.5 text-hairline font-mono text-xs select-none">+</span>
|
|
59
|
+
<span className="absolute -bottom-1.5 -left-1.5 text-hairline font-mono text-xs select-none">+</span>
|
|
60
|
+
<span className="absolute -bottom-1.5 -right-1.5 text-hairline font-mono text-xs select-none">+</span>
|
|
61
|
+
|
|
62
|
+
{/* Content */}
|
|
63
|
+
</div>
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## 3. Progressive Blur & Depth Masking
|
|
69
|
+
|
|
70
|
+
When layering floating navigation bars, modal dialogs, or overlay cards over rich imagery:
|
|
71
|
+
- Avoid uniform flat opacity fills (`bg-black/90` or `bg-white/90`).
|
|
72
|
+
- Use **progressive glassmorphism** with backdrop filters:
|
|
73
|
+
```tsx
|
|
74
|
+
className="bg-surface/80 backdrop-blur-md border border-hairline shadow-panel"
|
|
75
|
+
```
|
|
76
|
+
- For overlay headers or floating footers, use gradient alpha masks to create seamless fade-out edges:
|
|
77
|
+
```css
|
|
78
|
+
mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
|
|
79
|
+
-webkit-mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## 4. Purposeful Media vs. Detached 3D Stock Art
|
|
85
|
+
|
|
86
|
+
A hallmark of AI design slop is decorating developer or SaaS pages with random 3D clay spheres, glossy rings, or floating pyramids used as the focal visual.
|
|
87
|
+
|
|
88
|
+
### The Rule of Purposeful Media
|
|
89
|
+
Hero / main media is **curated photography** (Lummi `assets.lummi.ai`, Unsplash, or user-supplied), a **mesh gradient**, or an **animated background** (Pexels video), with copy on top behind a scrim — set via layout bg props `bgImage` / `bgVideo` + `bgPoster` / `bgOverlays`.
|
|
90
|
+
|
|
91
|
+
| Instead of... | Use... |
|
|
92
|
+
|---|---|
|
|
93
|
+
| Floating purple 3D sphere as hero focal | **Editorial photo or mesh backdrop** (`bgImage` + `bgOverlays="scrim-left"`, or `bgOverlays="mesh-lime-animated, dark-20"`) |
|
|
94
|
+
| Cliché stock (laptops, handshakes, offices) | **Curated Lummi/Unsplash photography** — also usable as highlights for visual balance |
|
|
95
|
+
| Tiny unreadable UI screenshot | **Calm looping video** (`bgVideo` + `bgPoster`) or a large type-led statement |
|
|
96
|
+
|
|
97
|
+
3D renders are allowed only as optional decorative graphics, never focal media. Product mockups rebuilt from Shavin primitives (token inspectors, telemetry cards) are optional and rarely used — only when you are highly confident of the result.
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## 5. Editorial Typography Tension
|
|
102
|
+
|
|
103
|
+
Awwwards-winning editorial sites create visual electricity by creating deliberate tension between **proportional display sans**, **technical monospace**, and **delicate serifs**:
|
|
104
|
+
|
|
105
|
+
### The Triad Pairing
|
|
106
|
+
1. **Primary Headline**: Clean, high-impact Sans (`font-extrabold tracking-tight text-fg`).
|
|
107
|
+
2. **Metadata & Status**: Precise Monospace (`font-mono text-xs uppercase tracking-widest text-fg-subtle`).
|
|
108
|
+
3. **Brand Proof / Quotes**: High-contrast, elegant typography (`italic font-normal text-fg-subtle text-lg`).
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## 6. Cinematic Scroll Storytelling
|
|
113
|
+
|
|
114
|
+
For long-form feature launches or product tours:
|
|
115
|
+
- **Sticky Column Narrative**: Pin the visual preview (code editor or UI mock) on one side (`sticky top-24`) while the reader scrolls through 3–4 narrative milestones on the opposite column.
|
|
116
|
+
- **Milestone Illumination**: The active narrative step illuminates with `border-brand text-fg`, while past/future steps rest at `text-fg-subtle opacity-60`.
|
|
117
|
+
- **Zero Reflow**: Pinning and transitions must be GPU-only via `transform: translate3d` or CSS `position: sticky`.
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# Landing Page Architecture & Conversion System
|
|
2
|
+
|
|
3
|
+
> Synthesizing the **Landing Page Design Masterclass** into `@shavin/ui` tokenized, component-driven layouts.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. The Core Axiom
|
|
8
|
+
|
|
9
|
+
A landing page is fundamentally distinct from a general homepage or documentation hub:
|
|
10
|
+
- **Homepage**: Serves multiple intents, various user segments, and exploration.
|
|
11
|
+
- **Landing Page**: Wins one specific intent:
|
|
12
|
+
$$\text{One Offer} \longrightarrow \text{One Audience} \longrightarrow \text{One Primary Action}$$
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## 2. The 12-Section Architecture
|
|
17
|
+
|
|
18
|
+
Every high-conversion marketing experience follows an engineered vertical reading arc:
|
|
19
|
+
|
|
20
|
+
### Stage 1: Above the Fold (Immediate Capture)
|
|
21
|
+
1. **Hero Header**: Outcome-based headline + clarifying subtitle + single dominant primary CTA + secondary link + proof pill.
|
|
22
|
+
2. **Hero Visual / Media**: Curated Lummi/Unsplash photography, a mesh gradient, or an animated background (Pexels video) with copy on top behind a scrim (`bgImage` / `bgVideo` + `bgPoster` / `bgOverlays`). Never focal 3D balls or cliché stock; product UI previews are optional and only when highly confident of the result.
|
|
23
|
+
3. **Social Proof / Logo Wall**: Verified enterprise logos, community GitHub star counter, or trusted partner telemetry.
|
|
24
|
+
|
|
25
|
+
### Stage 2: The Core Argument (Mid-Page Momentum)
|
|
26
|
+
4. **Problem $\to$ Solution**: One sharp section establishing the existing friction and how the product dissolves it.
|
|
27
|
+
5. **Core Capabilities / Bento Grid**: 3 to 5 distinct, outcome-driven value propositions using asymmetrical grid layouts with concentric container geometry.
|
|
28
|
+
6. **How It Works**: Exactly 3 numbered steps demonstrating operational simplicity.
|
|
29
|
+
7. **The Mandatory Tagline Reveal Moment**: Large-type editorial pause (`text-4xl` to `text-6xl`) with scroll-linked word-by-word reveal (see Section 5 below).
|
|
30
|
+
|
|
31
|
+
### Stage 3: Proof & Deep Dive
|
|
32
|
+
8. **Interactive Playground / Code Showcase**: Live code switcher (`<Tabs>`) or interactive component configurator.
|
|
33
|
+
9. **Customer Case Studies / Testimonials**: Specific quotes with authentic titles, verified team sizes, and measurable outcomes.
|
|
34
|
+
|
|
35
|
+
### Stage 4: Objection Handling & Conversion
|
|
36
|
+
10. **FAQ Accordion**: 6 to 12 direct questions tackling pricing, lock-in, migration, performance, and security objections.
|
|
37
|
+
11. **Risk Reversal**: Clear guarantees (free tier, no credit card required, open-source license, instant export).
|
|
38
|
+
12. **Final Conversion Banner**: High-contrast closing call-to-action echoing the primary hero offer.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## 3. Layout Selection Archetypes
|
|
43
|
+
|
|
44
|
+
Before scaffolding JSX, select the structural model that matches user intent:
|
|
45
|
+
|
|
46
|
+
| Archetype | Best For | Typical Structure |
|
|
47
|
+
|---|---|---|
|
|
48
|
+
| **A. Classic Hero + Sections** | Digital tools, SaaS platforms, developer infrastructure where UI screenshots explain the value immediately. | Full-width hero with preview window, 3-column bento grid, feature tabs, pricing grid. |
|
|
49
|
+
| **B. Editorial Long-Form Story** | Complex developer ecosystems, paradigm shifts, enterprise migration tools requiring technical education. | Split-screen sticky narrative, continuous scrolling documentation stream, code-heavy comparisons. |
|
|
50
|
+
| **C. Minimal Conversion Page** | Waitlists, developer previews, single-binary downloads, specific ad landing pages. | Tight centered hero, single high-contrast input/CTA, 3 key feature bullets, minimalist footer. |
|
|
51
|
+
| **D. Comparison Showcase** | Search intent targeting alternatives (*"Shavin vs X"*). | Direct side-by-side feature matrices, benchmark charts, migration CLI walkthrough. |
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 4. Conversion Copywriting Formulas
|
|
56
|
+
|
|
57
|
+
Great visual design fails if the copy relies on hollow marketing tropes:
|
|
58
|
+
|
|
59
|
+
### 1. Headline Formulas
|
|
60
|
+
- **Outcome without Friction**: *"Production-grade design systems without design drift."*
|
|
61
|
+
- **Category for Audience**: *"The zero-hallucination React primitive engine for AI-assisted engineering teams."*
|
|
62
|
+
- **Speed to Result**: *"Ship interfaces that pass WCAG 2.2 AA in minutes, not quarters."*
|
|
63
|
+
|
|
64
|
+
### 2. Copy Invariants
|
|
65
|
+
- **Write benefits before features**: Features are what the code does; benefits are what that means for the developer's velocity.
|
|
66
|
+
- ❌ *"Automated AST validation engine"*
|
|
67
|
+
- ✅ *"Eliminate design drift — automated AST checks catch unapproved hex codes before code review."*
|
|
68
|
+
- **Single Dominant CTA**: Never place competing primary buttons side by side. Use one `variant="solid"` CTA paired with one `variant="ghost"` or `variant="outline"` secondary action.
|
|
69
|
+
- **Active Voice**: *"Deploy in seconds"*, not *"Deployment can be executed instantaneously"*.
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## 5. The Mandatory Tagline Reveal Moment
|
|
74
|
+
|
|
75
|
+
Every flagship landing page must include one dedicated, large-type pause section between the hero and the feature grid:
|
|
76
|
+
|
|
77
|
+
### Typography
|
|
78
|
+
- Headline size: `text-3xl sm:text-5xl lg:text-6xl`
|
|
79
|
+
- Tracking: `tracking-tight font-extrabold`
|
|
80
|
+
- Maximum width: `max-w-4xl mx-auto`
|
|
81
|
+
- Alignment: Centered or editorial left-aligned
|
|
82
|
+
|
|
83
|
+
### Scroll-Linked Reveal Mechanism
|
|
84
|
+
- Each word starts in a muted tone (`text-fg-muted/20` or opacity 0.25).
|
|
85
|
+
- As the user scrolls through the section, words progressively illuminate to full high-contrast `text-fg` (opacity 1.0) in reading order.
|
|
86
|
+
- Implemented via `IntersectionObserver` or throttled scroll progress — never unthrottled `window.addEventListener('scroll')`.
|
|
87
|
+
|
|
88
|
+
```tsx
|
|
89
|
+
// Architectural Pattern for Tagline Reveal
|
|
90
|
+
export function TaglineReveal({ text }: { text: string }) {
|
|
91
|
+
const words = text.split(" ");
|
|
92
|
+
return (
|
|
93
|
+
<Container size="lg" className="py-28 md:py-40 text-center">
|
|
94
|
+
<Heading size="4xl" weight="bold">
|
|
95
|
+
{words.map((word, i) => (
|
|
96
|
+
<span
|
|
97
|
+
key={i}
|
|
98
|
+
className="inline-block mr-[0.3em] transition-colors duration-300 text-fg"
|
|
99
|
+
>
|
|
100
|
+
{word}
|
|
101
|
+
</span>
|
|
102
|
+
))}
|
|
103
|
+
</Heading>
|
|
104
|
+
</Container>
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## 6. Fluid Island Navigation
|
|
112
|
+
|
|
113
|
+
Landing pages benefit from detached, elevated navigation that floats above the page canvas:
|
|
114
|
+
|
|
115
|
+
- **Closed State**: Detached floating pill positioned `mt-6 mx-auto w-max max-w-5xl px-5 py-2.5 rounded-full border border-hairline/80 bg-surface/80 backdrop-blur-md shadow-card`.
|
|
116
|
+
- **Z-Index**: `z-50` with sticky positioning (`sticky top-4`).
|
|
117
|
+
- **Brand + Links + Action**: Compact layout with brand logo, 3–4 nav links, theme toggle, and one primary CTA button (`size="sm"`).
|
|
118
|
+
- **Mobile Menu**: Smoothly expands into a full-screen or sheet overlay with blurred backdrop, animating links with staggered reveals (`translate-y-2 opacity-0 -> translate-y-0 opacity-100`).
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## 7. Content Realism & Anti-AI Cliches
|
|
123
|
+
|
|
124
|
+
Pages instantly reveal themselves as machine-generated when generic filler copy is used:
|
|
125
|
+
|
|
126
|
+
### The Banned Vocabulary
|
|
127
|
+
Never use these AI buzzwords in copy:
|
|
128
|
+
- ❌ *"Elevate"*, *"Seamless"*, *"Unleash"*, *"Empower"*, *"Next-gen"*, *"Game-changer"*, *"Delve"*, *"Tapestry"*, *"In the world of"*, *"Revolutionize"*.
|
|
129
|
+
|
|
130
|
+
### Realistic Numbers & Organic Telemetry
|
|
131
|
+
Never use perfectly round fake numbers:
|
|
132
|
+
- ❌ `99.99%`, `100%`, `50%`, `$100.00`, `1,000,000+ users`
|
|
133
|
+
- ✅ `99.94% Uptime SLA`, `<3.2ms Latency`, `1,423,690 Daily Component Renders`, `$89 / seat`, `142 GitHub Contributors`.
|
|
134
|
+
|
|
135
|
+
### Believable Social Proof
|
|
136
|
+
- ❌ "John Doe, Tech Enthusiast", "Jane Smith, CEO of Acme Inc."
|
|
137
|
+
- ✅ Real roles and engineering titles: *"Staff Frontend Engineer at Cloudflare"*, *"Principal Architect at Vercel"*, *"Design Systems Lead at Stripe"*.
|