Instruction file imported from arrobabeto/orbitype-astro-template (
.cursor/rules/60-ui/02-research-before-building.mdc). Copyright stays with the author.
Research before building
Before a new section
- Read an existing similar section (
SectionHero,SectionProse,SectionCta) - Check
src/lib/orbitype/schema.tsdefaults for expected JSON shape - Confirm name matches registry convention (
Section*.astro) - Review
docs/adr/0004-filename-based-section-registry.md
Before layout or global style changes
- Read
src/styles/global.css— tokens and shared classes live there - Check
src/layouts/Base.astroandsrc/components/layout/* - Verify SEO impact with
src/lib/seo.tsandSeo.astro
Before new API or data behaviour
- Read
src/lib/orbitype/client.tsand the relevant domain module - Check
docs/DEVIATIONS.mdfor verified API behaviour - Run
pnpm run mcp:verifyif touching MCP-related docs or scripts
Figma / design handoff
- Map colours to
@themetokens — do not paste hex into components - Spacing uses Tailwind scale or
--spacing-sectiontoken - Prefer extending existing sections over one-off page markup
Duplicating patterns incorrectly is worse than reusing them with new props.