Skip to content
Learn Netverks

Lesson

Step 23/32 72% through track

cards-surfaces

Cards and surfaces

Last reviewed Jun 1, 2026 Content v20260601
Track mode
iframe_html
Means
HTML preview sandbox
Reading
~1 min
Level
intermediate

This lesson

This lesson teaches Cards and surfaces—the ideas, syntax, and habits you need before moving on in Tailwind CSS.

Config-driven utilities are how most greenfield product CSS is written today.

You will apply Cards and surfaces in contexts like: React/Vue/Next apps, marketing sites, design systems, and rapid prototypes where consistency and speed matter.

Read the lesson, edit HTML/CSS in the playground, press Run to preview, then answer the lesson MCQs.

When the previous lesson's MCQs feel easy and you can explain Cards and surfaces in your own words.

Cards bundle spacing, border, shadow, and radius utilities into a repeatable visual language:

rounded-xl border border-slate-200 bg-white p-6 shadow-sm ring-1 ring-slate-900/5

Dark mode surfaces

Layer dark:bg-slate-900 dark:border-slate-700 dark:text-slate-100 when darkMode: 'class' is configured. Surfaces should lift from the page background in both themes.

Self-check

  1. List four utilities that define a neutral card surface.
  2. What config enables class-based dark mode?

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs in your browser in a sandboxed frame. Backend runners appear when this track’s profile allows them.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • List the four utilities that define your card look.
  • How would dark mode surfaces differ?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump