Tailwind CSS·Practice drills 10

Drill 23: Real project — Build a design system

Connect this example to a real project you could build.

Intermediate 5 min read Lesson 240 of 300 Challenge included
What you will be able to do
  • Connect this example to a real project you could build.

Practice task

Connect this example to a real project you could build.

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

Connect this example to a real project you could build.

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 240 of 300 · 0% of course