1# Building with the system
2
3Browser entrypoint: [/brand](/brand). Repository workflow:
4`docs/creating-new-pages.md` and the `create-marketing-page` skill.
5New marketing pages default to this shared code-backed system.
6
7## Define the task and owner
8
9Identify the audience, message, approved content and primary action.
10For migrations, inventory existing copy, assets, links, tracking events,
11forms, responsive behavior, metadata and data dependencies first.
12Read [Page Transitions](/brand/page-transitions).
13
14Existing unmigrated Sanity pages keep their structured fields, mirrors
15and draft-first workflow unless migration is requested. Clarify new
16Studio-editable requirements before implementation; do not use an old
17skill or screenshot to silently choose another visual system.
18
19## Read and choose
20
21Read `RULES.md` plus the layout and typography docs in this directory.
22Browse [Layout](/brand/layout), [Typography](/brand/typography),
23[Color](/brand/color) and [Effects](/brand/effects).
24
25Use `catalog.ts` and the live [catalog](/brand) to choose existing modules.
26Read each chosen module's doc and actual TypeScript props before using it.
27Ask before creating a new marketing module.
28
29- Hero: one display opening; choose left, justified or center. Its
30 `headline`, `lead`, `actions`, `command` and `media` are not legacy
31 Sanity block fields. R-14 limits eyebrows to eligible section heads.
32- Media Feature: one figure and message; `layout` sets copy side, `size`
33 sets figure share. Use `action` for a supplied CTA or `href` /
34 `linkLabel` for the normal informational link.
35- Stacked/Grid feature lists: choose by item count and information job
36 (R-07); use a slider only when accompanying media earns it.
37- Code Panel: a collection of files. Code Snippet/Command CTA: a command.
38- ProductDemo: shared adapter for curated demos, not raw Lite engines.
39- VisualGrid: opt-in drawing ground, not an inherited page requirement.
40
41Use sentence case, real claims/assets and existing Phosphor icons.
42Preserve the external-link behavior documented in root `AGENTS.md`.
43
44## Compose a production route
45
46Implement a dedicated `src/app/<slug>/page.tsx` using components from
47`src/components/brand-system/` and import its shared `styles.css`.
48Render a `w-page` root under `data-ds="warp-next"`. Do not copy workshop
49components, legacy `.factories-landing` CSS or a second token set.
50
51Use `SiteNav` and `Footer` defaults, not CMS chrome props. Edit their
52shared data modules for canonical navigation/footer changes.
53Existing logos, partners and SEO accessors can remain CMS-owned.
54
55Register the slug in the catch-all's dedicated-route exclusion and
56exact-path chromeless resolver. Keep canonical metadata/JSON-LD and
57indexing deliberate. Code-backed composition ships via code deployment;
58no markdown seed or Sanity page document is needed for code-owned copy.
59
60The production download composition is a compact reference:
61`src/app/download/page.tsx` and
62`src/components/brand-system/download-page.tsx`.
63
64## Review and factory handoff
65
66Read the website-telemetry skill before changing interactive surfaces.
67Preserve existing event names, OS routing, download channels, mobile
68email capture, copy feedback, keyboard access and reduced motion.
69Do not send real form submissions or emails without authorization.
70
71Check the complete page as well as isolated specimens: long labels,
72loading/empty states, desktop/mobile, focus and non-hover access.
73Run typecheck, lint, `pnpm test:brand`, relevant behavior tests and the
74non-live-audit suite with `--maxWorkers=4`; run `pnpm build` before release.
75Report what actually ran and distinguish mocked checks from live delivery.
76
77Every Marketing Factory role must consult the current repository policy
78and these module docs. Record source ownership, chosen modules, approved
79exceptions, and preview evidence in the PR. Hosted workers cannot see
80uncommitted local changes.
81
82For additions, use [Adding to the system](/brand/adding). Shared changes
83reach all migrated pages, not just the workshop. Existing legacy pages
84do not adopt the system automatically.