Phase 1.2: Design System Setup
Section titled “Phase 1.2: Design System Setup”Objective
Section titled “Objective”This phase populates the shared design system and scaffolds the sdc.com website, using the Template site as a blueprint. Includes configuration of TypeScript path aliases before running interactive tools.
Part A: Configure Shared Design System
Section titled “Part A: Configure Shared Design System”- Action: Populate
packages/design-tokens/tokens.csswith Utopia and theme variables. - Action: Ensure the root
package.jsonis set to"private": true. - 🤖 Verification (Automated):
- Script will confirm
packages/design-tokens/tokens.csscontains Utopia variables. - Script will verify root
package.jsonhas"private": true.
- Script will confirm
Part B: Configure TypeScript Path Alias in Template Site
Section titled “Part B: Configure TypeScript Path Alias in Template Site”- Action: Programmatically add the
@/*path alias tosites/Template/tsconfig.json. - 🤖 Verification (Automated):
- Script will parse
sites/Template/tsconfig.jsonand verify it containspathsentry for"@/*": ["src/*"].
- Script will parse
Part C: Integrate Design System into Template Site
Section titled “Part C: Integrate Design System into Template Site”- Action: Install
shadcn-sveltedependencies. - Action: Interactively run
shadcn-svelte initand provide the@/libalias. - 🤖 Verification (Automated):
- Script will confirm
sites/Template/components.jsonexists. - Script will verify the components.json contains expected shadcn-svelte configuration.
- Script will confirm
Part D: Scaffold and Configure sdc.com Site
Section titled “Part D: Scaffold and Configure sdc.com Site”- Action: Create the
sdc.comAstro project and add integrations. - Action: Programmatically add the
@/*path alias tosites/sdc.com/tsconfig.json. - Action: Copy the validated configurations from the
Templatesite. - 🤖 Verification (Automated):
- Script will confirm
sites/sdc.comdirectory exists. - Script will parse
sites/sdc.com/tsconfig.jsonand verify correct path alias configuration. - Script will attempt to build the sdc.com site to verify setup is functional.
- Script will confirm