Tailwind CSS·Practice drills 9

Drill 22: Recall — Build a design system

Close the lesson and reproduce the example from memory.

Intermediate 5 min read Lesson 230 of 300 Challenge included
What you will be able to do
  • Close the lesson and reproduce the example from memory.

Practice task

Close the lesson and reproduce the example from memory.

system.htmlHTML
<section class="mx-auto max-w-3xl space-y-8 p-8">
  <header>
    <h1 class="text-3xl font-semibold tracking-tight">Design system</h1>
    <p class="mt-2 text-slate-600">One button. Three states. No exceptions.</p>
  </header>
  <div class="flex flex-wrap gap-3">
    <button class="rounded-lg bg-cyan-600 px-4 py-2 font-medium text-white hover:bg-cyan-700">Primary</button>
    <button class="rounded-lg border border-slate-300 px-4 py-2 font-medium text-slate-700 hover:bg-slate-50">Secondary</button>
  </div>
</section>
Your turn

Write your answer

Easy

Close the lesson and reproduce the example from memory.

TEXT · starter
Your answer…
Study tools

Make it yours.

Keep a private note for this lesson, then turn the key ideas into flashcards you can revisit.

Sign in to save notes and flashcards.Both are private to your account and stay with your progress.
Sign in
Finished reading?

Lock in what you just learned.

Mark this lesson complete to save your place and move one step closer to the certificate.

Lesson 230 of 300 · 0% of course