First Move (11~18) - Code, Learn, Build
🧭 Career CompassDashboardProgress
Loading...
First Move (11~18) - Code, Learn, Build

Structured, level-based technology learning paths from foundational exploration to industry mastery.

Learning Domains

  • Python Programming (Active)
  • Computer Science Core
  • Web Development
  • AI & Machine Learning

Platform Architecture

  • Level-Based Progression
  • Decoupled Content Schema
  • Modular Code Execution Engine
  • Curated Official Resources

© 2026 First Move (11~18) • CODE • LEARN • BUILD. Built with Next.js App Router.

Readability & Accessibility First

← HTML5 & Modern CSS Layout Systems|Level 3: CSS Custom Properties, Animations & Glassmorphism

5. CSS Custom Properties (Variables) & Theme Switching

Lesson 5 of 6
Saved Locally (Guest)
Progress
0%

CSS Custom Properties (Variables) & Theme Switching

Declare scoped CSS variables (--primary-bg), implement dark/light theme cascades, and manage design system tokens.

CSS Custom Properties Architecture

### CSS Variables Syntax CSS variables are defined starting with double dashes (`--color-primary: #3b82f6;`) inside selector blocks (`:root` for global scope) and consumed via `var(--color-primary)`.
💻 Ready to test your knowledge with code?
Solve the hands-on coding exercise in the interactive code editor.