Full Stack Web Development
Step 2 / 21120 min

CSS

Web Foundations

Explanation

CSS controls visual design: typography, color, spacing, and component styling for polished interfaces.

Code example

css
:root {
  --brand: #2563eb;
  --ink: #0f172a;
  --surface: #f8fafc;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}

.card {
  max-width: 40rem;
  margin: 2rem auto;
  padding: 1.5rem;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 12px 30px rgb(15 23 42 / 8%);
}

Helpful resources

Exercise

Style your HTML profile with a color system, typography scale, cards, and buttons.

CSS · Full Stack Web Development | XirfadHub Roadmap