Got the code? Welcome, builder!
You're heading into Invent the Future — instructors hand out the access code on day one.
You're heading into Invent the Future — instructors hand out the access code on day one.
Sprint 2 goal: a styled site. By the end of today, your pages have a consistent colour palette, readable typography, and a responsive layout. The primary content section should be fully styled.
Before writing any component styles, define your colour palette and fonts as CSS custom properties at the top of style.css:
:root {
--color-primary: #2563eb;
--color-bg: #f8fafc;
--color-text: #1e293b;
--font-heading: 'Your Font', sans-serif;
--font-body: 'Your Font', sans-serif;
}
One change to --color-primary updates every element that uses it. This is the right foundation for prompt-driven iteration: change the variable, not twelve separate rules.
Try this prompt to generate a starting :root block:
Generate a :root block with CSS custom properties for a website called [name]
with a [adjective] feel. Include: primary colour, secondary colour, background
colour, text colour, accent colour, heading font (Google Font), body font
(Google Font). Output ONLY the CSS :root block. No explanation.