Project Scaffold
Set up the file structure, design tokens, and base CSS. A business landing page needs a confident, conversion-focused color palette.
Create a project scaffold for a business landing page:
FILES:
- index.html
- assets/css/style.css
- assets/js/main.js
In style.css, define CSS custom properties on :root:
- Font families: a clean sans-serif for headings (system-ui),
a readable sans-serif for body text
- Type scale: at least 6 steps from sm to 5xl
- Spacing scale: at least 8 steps from xs to 5xl
- Colors: a primary brand color (blue works well for trust),
a contrasting CTA color, neutral grays for text and borders,
a dark background and a white surface color
- Border radii: sm (4px), md (8px), lg (16px), full (9999px)
- Shadows: sm, md, lg for elevation
- Transitions: fast (0.15s), base (0.2s), slow (0.3s)
- Max content width: 1200px
- A full CSS reset (box-sizing, margin, padding)
In index.html, set up a minimal HTML5 document with lang="en",
viewport meta, and links to the stylesheet and script. Leave the
body empty for now.
- All three files exist at the correct paths
- CSS custom properties are defined on
:root - Color palette includes a primary, CTA, and neutral scale
- CSS reset applies
box-sizing: border-boxto all elements - HTML has
lang="en"and the viewport meta tag