Project Scaffold
Set up the file structure, design tokens, and base CSS. A course page needs warm, trustworthy colors that say "invest in yourself."
Create a project scaffold for an online course sales page:
FILES:
- index.html
- assets/css/style.css
- assets/js/main.js
In style.css, define CSS custom properties on :root:
- Font families: a premium serif or rounded sans-serif for
headings, a clean 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 warm primary (amber, orange, or gold works well
for courses), a high-contrast CTA color (green for "enroll"),
neutral grays, dark background, white surface
- Border radii: sm (4px), md (8px), lg (16px), full (9999px)
- Shadows: sm, md, lg for card elevation
- Transitions: fast (0.15s), base (0.2s), slow (0.3s)
- Max content width: 1100px
- 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 warm primary and a CTA green
- CSS reset applies
box-sizing: border-boxto all elements - HTML has
lang="en"and the viewport meta tag