The Agentic Dev Starter Template
Sweet Work
Sweet Work gives your project a proper build order. Instead of jumping straight from a Figma file to pages, you go step by step: write the spec, pull the design system, name the components, then build. Each step feeds the next, so whoever picks up the project — you, a teammate, or a coding agent — builds it the same consistent way.
View style guideThe build order
Seven steps, in this order. Don’t skip ahead — each one exists because the step after it depends on it.
-
PRD
PRD.mdTurn the brief, meeting notes, and scope into one written spec that lives in the repo. Every later decision is checked against it.
-
Design tokens
tokens.cssPull every color, type style, and spacing step straight from Figma’s variables — not from screenshots. From here on, nothing gets styled with a raw value.
-
Component inventory
COMPONENT_INVENTORY.mdName every repeated pattern in the design before writing component code. Duplicate frames and near-identical colors get flagged here, while they’re still cheap to fix.
-
Content modeling
sanity.example.tsIf any content is dynamic or CMS-driven, draft its schema now. Retrofitting a content model after pages are built is how projects stall.
-
Style guide
/style-guideRender the real tokens and first components on one living page. It becomes the visual QA surface for everything built after it.
-
Pages
src/pages/Build one section at a time, using only the tokens, utility classes, and inventoried components. Container widths and section padding come from Figma, not guesses.
-
Visual QA
Figma ↔ browserDiff each section against its real Figma frame before calling it done. Also check contrast, keyboard focus, reduced motion, and overflow at every breakpoint.
Also built in
-
No hardcoded values, enforced
npm run lint:cssfails the build on any raw color, spacing, font size, or radius. -
A living style guide
Tokens and components render live at /style-guide, with desktop, tablet, and mobile previews.
-
Accessibility baseline, built in
Skip link, visible keyboard focus, and reduced-motion support on every page, plus a per-page title and meta description.
-
Instructions for the agent
CLAUDE.md covers the tricky parts: container widths, section padding, doubled borders, and flagging design inconsistencies instead of guessing.
-
Client-First conventions
Familiar utility names (
padding-global,container-large) and a Core / Layout / Element component structure. -
Assets handled by people
Icons, logos, and images are exported from Figma by hand. Until then, sections use a clean image placeholder.