- Published on
How To Create A Tailwind Users Dashboard With Tailwind CSS In 6 Easy Steps?

- What is Tailwind CSS?
- The description of Tailwind Users Dashboard ui component
- Why use Tailwind CSS to build a Tailwind Users Dashboard ui component?
- The preview of Tailwind Users Dashboard ui component
- The source code of Tailwind Users Dashboard ui component
- How to build a Tailwind Users Dashboard with Tailwind CSS?
- Install tailwind css of verion 1.4.6
- All the unility class needed to build a Tailwind Users Dashboard component
- 97 steps to build a Tailwind Users Dashboard component with Tailwind CSS
- Conclusion
What is Tailwind CSS?
Tailwind CSS is a utility-first CSS framework that focuses on creating personalized user interfaces quickly. It can gives you all the building blocks you are able to create personalized designs without having to fight to override irritating opinionated styles. Also, Tailwind CSS is a highly configurable, low-level CSS framework.
The description of Tailwind Users Dashboard ui component
Check it out in full mode with dark mode
svelte-tailwind-ui.vercel.app/users-dashboard/Why use Tailwind CSS to build a Tailwind Users Dashboard ui component?
- It can make the building process of Tailwind Users Dashboard ui component faster and more easily.
- Enables building complex responsive layouts and components freely.
- Minimum lines of CSS code in Tailwind Users Dashboard component file.
The preview of Tailwind Users Dashboard ui component
Free download of the Tailwind Users Dashboard's source code
The source code of Tailwind Users Dashboard ui component
<div class="h-screen w-full flex overflow-hidden">
<nav class="flex flex-col bg-gray-200 dark:bg-gray-900 w-64 px-12 pt-4 pb-6">
<!-- SideNavBar -->
<div class="flex flex-row border-b items-center justify-between pb-2">
<!-- Hearder -->
<span class="text-lg font-semibold capitalize dark:text-gray-300">
my admin
</span>
<span class="relative ">
<a
class="hover:text-green-500 dark-hover:text-green-300
text-gray-600 dark:text-gray-300"
href="inbox/">
<svg
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round">
<path
d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path>
<path d="M13.73 21a2 2 0 0 1-3.46 0"></path>
</svg>
</a>
<div
class="absolute w-2 h-2 rounded-full bg-green-500
dark-hover:bg-green-300 right-0 mb-5 bottom-0"></div>
</span>
</div>
<div class="mt-8">
<!-- User info -->
<img
class="h-12 w-12 rounded-full object-cover"
src="https://appzzang.me/data/editor/1608/f9c387cb6bd7a0b004f975cd92cbe2d9_1471626325_6802.png"
alt="enoshima profile" />
<h2
class="mt-4 text-xl dark:text-gray-300 font-extrabold capitalize">
Hello Enoshima
</h2>
<span class="text-sm dark:text-gray-300">
<span class="font-semibold text-green-600 dark:text-green-300">
Admin
</span>
id789038
</span>
</div>
<button
class="mt-8 flex items-center justify-between py-3 px-2 text-white
dark:text-gray-200 bg-green-400 dark:bg-green-500 rounded-lg shadow">
<!-- Action -->
<span>Add user</span>
<svg class="h-5 w-5 fill-current" viewBox="0 0 24 24">
<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"></path>
</svg>
</button>
<ul class="mt-2 text-gray-600">
<!-- Links -->
<li class="mt-8">
<a href="#home" class="flex ">
<svg
class="fill-current h-5 w-5 dark:text-gray-300"
viewBox="0 0 24 24">
<path
d="M16 20h4v-4h-4m0-2h4v-4h-4m-6-2h4V4h-4m6
4h4V4h-4m-6 10h4v-4h-4m-6 4h4v-4H4m0 10h4v-4H4m6
4h4v-4h-4M4 8h4V4H4v4z"></path>
</svg>
<span
class="ml-2 capitalize font-medium text-black
dark:text-gray-300">
dashboard
</span>
</a>
</li>
<li class="mt-8">
<a href="#home" class="flex">
<svg
class="fill-current h-5 w-5 dark:text-gray-300"
viewBox="0 0 24 24">
<path
d="M19 19H5V8h14m-3-7v2H8V1H6v2H5c-1.11 0-2 .89-2
2v14a2 2 0 002 2h14a2 2 0 002-2V5a2 2 0
00-2-2h-1V1m-1 11h-5v5h5v-5z"></path>
</svg>
<span
class="ml-2 capitalize font-medium text-black
dark:text-gray-300">
calendar
</span>
</a>
</li>
<li
class="mt-8 shadow py-2 bg-white dark:bg-gray-200 rounded-lg
-ml-4">
<a href="#home" class="flex pl-4">
<svg class="fill-current h-5 w-5" viewBox="0 0 24 24">
<path
d="M12 4a4 4 0 014 4 4 4 0 01-4 4 4 4 0 01-4-4 4 4 0
014-4m0 10c4.42 0 8 1.79 8 4v2H4v-2c0-2.21 3.58-4
8-4z"></path>
</svg>
<span class="ml-2 capitalize font-medium">users</span>
</a>
</li>
<li class="mt-8">
<a href="#home" class="flex">
<svg
class="fill-current h-5 w-5 dark:text-gray-300"
viewBox="0 0 24 24">
<path
d="M12 13H7v5h5v2H5V10h2v1h5v2M8
4v2H4V4h4m2-2H2v6h8V2m10 9v2h-4v-2h4m2-2h-8v6h8V9m-2
9v2h-4v-2h4m2-2h-8v6h8v-6z"></path>
</svg>
<span
class="ml-2 capitalize font-medium text-black
dark:text-gray-300">
tasks
</span>
</a>
</li>
</ul>
<div class="mt-auto flex items-center text-red-700 dark:text-red-400">
<!-- important action -->
<a href="#home" class="flex items-center">
<svg class="fill-current h-5 w-5" viewBox="0 0 24 24">
<path
d="M16 17v-3H9v-4h7V7l5 5-5 5M14 2a2 2 0 012
2v2h-2V4H5v16h9v-2h2v2a2 2 0 01-2 2H5a2 2 0 01-2-2V4a2 2
0 012-2h9z"></path>
</svg>
<span class="ml-2 capitalize font-medium">log out</span>
</a>
</div>
</nav>
<main
class="flex-1 flex flex-col bg-gray-100 dark:bg-gray-700 transition
duration-500 ease-in-out overflow-y-auto">
<div class="mx-10 my-2">
<nav
class="flex flex-row justify-between border-b
dark:border-gray-600 dark:text-gray-400 transition duration-500
ease-in-out">
<div class="flex">
<!-- Top NavBar -->
<a
href="users-dashboard/"
class="py-2 block text-green-500 border-green-500
dark:text-green-200 dark:border-green-200
focus:outline-none border-b-2 font-medium capitalize
transition duration-500 ease-in-out">
users
</a>
<button
class="ml-6 py-2 block border-b-2 border-transparent
focus:outline-none font-medium capitalize text-center
focus:text-green-500 focus:border-green-500
dark-focus:text-green-200 dark-focus:border-green-200
transition duration-500 ease-in-out">
role
</button>
<button
class="ml-6 py-2 block border-b-2 border-transparent
focus:outline-none font-medium capitalize text-center
focus:text-green-500 focus:border-green-500
dark-focus:text-green-200 dark-focus:border-green-200
transition duration-500 ease-in-out">
access rights
</button>
</div>
<div class="flex items-center select-none">
<span
class="hover:text-green-500 dark-hover:text-green-300
cursor-pointer mr-3 transition duration-500 ease-in-out">
<svg viewBox="0 0 512 512" class="h-5 w-5 fill-current">
<path
d="M505 442.7L405.3
343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7
44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1
208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4
2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9
0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7
0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0
128 57.2 128 128 0 70.7-57.2 128-128 128z"></path>
</svg>
</span>
<input
class="w-12 bg-transparent focus:outline-none"
placeholder="Search" />
</div>
</nav>
<h2 class="my-4 text-4xl font-semibold dark:text-gray-400">
User list
</h2>
<div
class="pb-2 flex items-center justify-between text-gray-600
dark:text-gray-400 border-b dark:border-gray-600">
<!-- Header -->
<div>
<span>
<span class="text-green-500 dark:text-green-200">
431
</span>
users;
</span>
<span>
<span class="text-green-500 dark:text-green-200">
22
</span>
projects;
</span>
<span>
<span class="text-green-500 dark:text-green-200">
33
</span>
roles
</span>
</div>
<div>
<span class="capitalize">
project
<span
class="text-green-500 dark:text-green-200
cursor-pointer">
all
</span>
</span>
<span class="capitalize ml-12">
date added
<span
class="text-green-500 dark:text-green-200
cursor-pointer">
all time
</span>
</span>
<span class="capitalize ml-12">
role
<span
class="text-green-500 dark:text-green-200
cursor-pointer">
all
</span>
</span>
</div>
</div>
<div
class="mt-6 flex justify-between text-gray-600 dark:text-gray-400">
<!-- List sorting -->
<div class="ml-10 pl-2 flex capitalize">
<!-- Left side -->
<span class="ml-8 flex items-center">
name
<svg
class="ml-1 h-5 w-5 fill-current text-green-500
dark:text-green-200"
viewBox="0 0 24 24">
<path
d="M18 21l-4-4h3V7h-3l4-4 4 4h-3v10h3M2
19v-2h10v2M2 13v-2h7v2M2 7V5h4v2H2z"></path>
</svg>
</span>
<span class="ml-24 flex items-center">
login
<svg
class="ml-1 h-5 w-5 fill-current"
viewBox="0 0 24 24">
<path
d="M18 21l-4-4h3V7h-3l4-4 4 4h-3v10h3M2
19v-2h10v2M2 13v-2h7v2M2 7V5h4v2H2z"></path>
</svg>
</span>
</div>
<div class="mr-12 flex capitalize">
<!-- Right side -->
<span class="mr-16 pr-1 flex items-center">
project
<svg
class="ml-1 h-5 w-5 fill-current"
viewBox="0 0 24 24">
<path
d="M18 21l-4-4h3V7h-3l4-4 4 4h-3v10h3M2
19v-2h10v2M2 13v-2h7v2M2 7V5h4v2H2z"></path>
</svg>
</span>
<span class="mr-16 pr-2 flex items-center">
role
<svg
class="ml-1 h-5 w-5 fill-current"
viewBox="0 0 24 24">
<path
d="M18 21l-4-4h3V7h-3l4-4 4 4h-3v10h3M2
19v-2h10v2M2 13v-2h7v2M2 7V5h4v2H2z"></path>
</svg>
</span>
<span class="mr-12 flex items-center">
status
<svg
class="ml-1 h-5 w-5 fill-current"
viewBox="0 0 24 24">
<path
d="M18 21l-4-4h3V7h-3l4-4 4 4h-3v10h3M2
19v-2h10v2M2 13v-2h7v2M2 7V5h4v2H2z"></path>
</svg>
</span>
<span class="mr-16 flex items-center">
date
<svg
class="ml-1 h-5 w-5 fill-current"
viewBox="0 0 24 24">
<path
d="M18 21l-4-4h3V7h-3l4-4 4 4h-3v10h3M2
19v-2h10v2M2 13v-2h7v2M2 7V5h4v2H2z"></path>
</svg>
</span>
</div>
</div>
<div
class="mt-2 flex px-4 py-4 justify-between bg-white
dark:bg-gray-600 shadow-xl rounded-lg cursor-pointer ">
<!-- Card -->
<div class="flex justify-between">
<!-- Left side -->
<img
class="h-12 w-12 rounded-full object-cover"
src="https://inews.gtimg.com/newsapp_match/0/8693739867/0"
alt="" />
<div
class="ml-4 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>name</span>
<span class="mt-2 text-black dark:text-gray-200">
carmen beltran
</span>
</div>
<div
class="ml-12 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>login</span>
<span class="mt-2 text-black dark:text-gray-200">
carmen.bel
</span>
</div>
</div>
<div class="flex">
<!-- Rigt side -->
<div
class="mr-16 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>project</span>
<span class="mt-2 text-black dark:text-gray-200">
Aero treck
</span>
<span class="text-red-600 dark:text-red-400">
search
</span>
<span>2 more...</span>
</div>
<div
class="mr-16 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>role</span>
<span class="mt-2 text-black dark:text-gray-200">
Designer
</span>
<span class="text-red-600 dark:text-red-400">
Designer
</span>
</div>
<div
class="mr-16 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>status</span>
<span class="mt-2 text-black dark:text-gray-200">
None
</span>
<span class="text-red-600 dark:text-red-400">
in work
</span>
</div>
<div
class="mr-8 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>final date</span>
<span class="mt-2 text-green-400 dark:text-green-200">
20.02.2020
</span>
<span class="text-red-600 dark:text-red-400">
07.02.2020 11:00
</span>
</div>
</div>
</div>
<div
class="mt-8 flex px-4 py-4 justify-between bg-white
dark:bg-gray-600 shadow-xl rounded-lg cursor-pointer">
<!-- Card -->
<div class="flex justify-between">
<!-- Left side -->
<img
class="h-12 w-12 rounded-full object-cover"
src="https://appzzang.me/data/editor/1608/f9c387cb6bd7a0b004f975cd92cbe2d9_1471626325_6802.png"
alt="" />
<div
class="ml-4 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>name</span>
<span class="mt-2 text-black dark:text-gray-200">
enoshima junko
</span>
</div>
<div
class="ml-12 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>login</span>
<span class="mt-2 text-black dark:text-gray-200">
zetsbuo
</span>
</div>
</div>
<div class="flex">
<!-- Rigt side -->
<div
class="mr-16 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>project</span>
<span class="mt-2 text-black dark:text-gray-200">
Aero treck
</span>
</div>
<div
class="mr-16 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>role</span>
<span class="mt-2 text-black dark:text-gray-200">
Front-End
</span>
</div>
<div
class="mr-16 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>status</span>
<span class="mt-2 text-yellow-600 dark:text-yellow-400">
in work
</span>
</div>
<div
class="mr-8 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>final date</span>
<span class="mt-2 text-green-400 dark:text-green-200">
20.02.2020 11:00
</span>
</div>
</div>
</div>
<div
class="mt-8 flex px-4 py-4 justify-between bg-white
dark:bg-gray-600 shadow-xl rounded-lg cursor-pointer">
<!-- Card -->
<div class="flex justify-between">
<!-- Left side -->
<img
class="h-12 w-12 rounded-full object-cover"
src="https://www.hdwallpapers.in/download/2012_darksiders_ii-1920x1080.jpg"
alt="" />
<div
class="ml-4 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>name</span>
<span class="mt-2 text-black dark:text-gray-200">
dark siders
</span>
</div>
<div
class="ml-12 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>login</span>
<span class="mt-2 text-black dark:text-gray-200">
dark siders
</span>
</div>
</div>
<div class="flex">
<!-- Rigt side -->
<div
class="mr-16 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>project</span>
<span class="mt-2 text-black dark:text-gray-200">
Aero treck
</span>
<span class="text-black dark:text-gray-200">
Grass Max
</span>
<span class="text-black dark:text-gray-200">Mental</span>
</div>
<div
class="mr-16 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>role</span>
<span class="mt-2 text-black dark:text-gray-200">
designer
</span>
<span class="text-black dark:text-gray-200">
designer
</span>
<span class="text-black dark:text-gray-200">
illustrator
</span>
</div>
<div
class="mr-16 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>status</span>
<span class="mt-2 text-green-400 dark:text-green-200">
on check
</span>
<span class="mt-2 text-yellow-600 dark:text-yellow-400">
in work
</span>
<span class="mt-2 text-black dark:text-gray-200">
none
</span>
</div>
<div
class="mr-8 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>final date</span>
<span class="mt-2 text-green-400 dark:text-green-200">
20.02.2020 11:00
</span>
<span class="mt-2 text-yellow-600 dark:text-yellow-400">
20.02.2020 13:00
</span>
<span class="mt-2 text-green-400 dark:text-green-200">
20.02.2020 11:00
</span>
</div>
</div>
</div>
<div
class="mt-8 mb-4 flex px-4 py-4 justify-between bg-white
dark:bg-gray-600 shadow-xl rounded-lg cursor-pointer">
<!-- Card -->
<div class="flex justify-between">
<!-- Left side -->
<img
class="h-12 w-12 rounded-full object-cover"
src="https://media.contentapi.ea.com/content/dam/gin/images/2017/01/crysis-3-keyart.jpg.adapt.crop1x1.767p.jpg"
alt="" />
<div
class="ml-4 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>name</span>
<span class="mt-2 text-black dark:text-gray-200">
crysis
</span>
</div>
<div
class="ml-12 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>login</span>
<span class="mt-2 text-black dark:text-gray-200">
crysis
</span>
</div>
</div>
<div class="flex">
<!-- Rigt side -->
<div
class="mr-16 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>project</span>
<span class="mt-2 text-black dark:text-gray-200">
Killing
</span>
</div>
<div
class="mr-16 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>role</span>
<span class="mt-2 text-black dark:text-gray-200">
hunter
</span>
</div>
<div
class="mr-16 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>status</span>
<span class="mt-2 text-yellow-600 dark:text-yellow-400">
in work
</span>
</div>
<div
class="mr-8 flex flex-col capitalize text-gray-600
dark:text-gray-400">
<span>final date</span>
<span class="mt-2 text-green-400 dark:text-green-200">
20.02.2020 11:00
</span>
</div>
</div>
</div>
</div>
</main>
</div>
How to build a Tailwind Users Dashboard with Tailwind CSS?
Install tailwind css of verion 1.4.6
Use the link
html tag to import the stylesheet of Tailwind CSS of the version 1.4.6
<link href=https://unpkg.com/[email protected]/dist/tailwind.min.css rel="stylesheet">
All the unility class needed to build a Tailwind Users Dashboard component
h-screen
w-full
flex
overflow-hidden
flex-col
bg-gray-200
dark:bg-gray-900
w-64
px-12
pt-4
pb-6
flex-row
border-b
pb-2
text-lg
dark:text-gray-300
relative
hover:text-green-500
absolute
w-2
h-2
bg-green-500 dark-hover:bg-green-300
right-0
mb-5
bottom-0
mt-8
h-12
w-12
mt-4
text-xl
text-sm
text-green-600
dark:text-green-300
py-3
px-2
text-white dark:text-gray-200
bg-green-400
dark:bg-green-500
h-5
w-5
mt-2
text-gray-600
ml-2
text-black dark:text-gray-300
py-2
bg-white
dark:bg-gray-200
pl-4
mt-auto
text-red-700
dark:text-red-400
flex-1
bg-gray-100
dark:bg-gray-700
overflow-y-auto
mx-10
my-2
border-b dark:border-gray-600
dark:text-gray-400
block
text-green-500
border-green-500 dark:text-green-200
border-b-2
ml-6
text-center focus:text-green-500
mr-3
bg-transparent
my-4
text-4xl
text-gray-600 dark:text-gray-400
dark:border-gray-600
dark:text-green-200
ml-12
mt-6
ml-10
pl-2
ml-8
ml-1
text-green-500 dark:text-green-200
ml-24
mr-12
mr-16
pr-1
pr-2
px-4
py-4
bg-white dark:bg-gray-600
ml-4
text-gray-600 dark:text-gray-400
text-black
dark:text-gray-200
text-red-600
mr-8
text-green-400
text-yellow-600
dark:text-yellow-400
mb-4
97 steps to build a Tailwind Users Dashboard component with Tailwind CSS
Use
h-screen
to make an element span the entire height of the viewport.Use
w-full
to set an element to a 100% based width.Use
flex
to create a block-level flex container.Use
overflow-hidden
to clip any content within an element that overflows the bounds of that element.Use
flex
to create a block-level flex container.Control the background color of an element to gray-200 using the
bg-gray-200
utilities.Control the background color of an element to gray-900 using the
dark:bg-gray-900
utilities in dark theme.Use
w-64
to set an element to a fixed width(16rem).Control the horizontal padding of an element to 3rem using the
px-12
utilities.Control the padding on top side of an element to 1rem using the
pt-4
utilities.Control the padding on bottom side of an element to 1.5rem using the
pb-6
utilities.Use
flex
to create a block-level flex container.Control the border color of an element to b using the
border-b
utilities.Control the padding on bottom side of an element to 0.5rem using the
pb-2
utilities.Control the text color of an element to lg using the
text-lg
utilities.Control the text color of an element to gray-300 in dark theme using the
dark:text-gray-300
utilities.Use
relative
to position an element according to the normal flow of the document.Control the text color of an element to green-500 on hover using the
hover:text-green-500
utilities.Use
absolute
to position an element outside of the normal flow of the document, causing neighboring elements to act as if the element doesn’t exist.Use
w-2
to set an element to a fixed width(0.5rem).Use
h-2
to set an element to a fixed height(0.5rem).Control the background color of an element to green-300 using the
bg-green-500 dark-hover:bg-green-300
utilitiesundefined.Use the
right-0
utilities to set the right position of a positioned element to 0rem.Control the margin on bottom side of an element to 1.25rem using the
mb-5
utilities.Use the
bottom-0
utilities to set the bottom position of a positioned element to 0rem.Control the margin on top side of an element to 2rem using the
mt-8
utilities.Use
h-12
to set an element to a fixed height(3rem).Use
w-12
to set an element to a fixed width(3rem).Control the margin on top side of an element to 1rem using the
mt-4
utilities.Control the text color of an element to xl using the
text-xl
utilities.Control the text color of an element to sm using the
text-sm
utilities.Control the text color of an element to green-600 using the
text-green-600
utilities.Control the text color of an element to green-300 in dark theme using the
dark:text-green-300
utilities.Control the vertical padding of an element to 0.75rem using the
py-3
utilities.Control the horizontal padding of an element to 0.5rem using the
px-2
utilities.Control the text color of an element to gray-200undefined using the
text-white dark:text-gray-200
utilities.Control the background color of an element to green-400 using the
bg-green-400
utilities.Control the background color of an element to green-500 using the
dark:bg-green-500
utilities in dark theme.Use
h-5
to set an element to a fixed height(1.25rem).Use
w-5
to set an element to a fixed width(1.25rem).Control the margin on top side of an element to 0.5rem using the
mt-2
utilities.Control the text color of an element to gray-600 using the
text-gray-600
utilities.Control the margin on left side of an element to 0.5rem using the
ml-2
utilities.Control the text color of an element to gray-300undefined using the
text-black dark:text-gray-300
utilities.Control the vertical padding of an element to 0.5rem using the
py-2
utilities.Control the background color of an element to white using the
bg-white
utilities.Control the background color of an element to gray-200 using the
dark:bg-gray-200
utilities in dark theme.Adjust the left padding of an element to 1rem using the
pl-4
utilities classControl the margin on top side of an element to auto using the
mt-auto
utilities.Control the text color of an element to red-700 using the
text-red-700
utilities.Control the text color of an element to red-400 in dark theme using the
dark:text-red-400
utilities.Use
flex
to create a block-level flex container.Control the background color of an element to gray-100 using the
bg-gray-100
utilities.Control the background color of an element to gray-700 using the
dark:bg-gray-700
utilities in dark theme.Use
overflow-y-auto
to allow vertical scrolling if needed.Control the horizontal margin of an element to 2.5rem using the
mx-10
utilities.Control the vertical margin of an element to 0.5rem using the
my-2
utilities.Control the border color of an element to gray-600 using the
border-b dark:border-gray-600
utilitiesundefined.Control the text color of an element to gray-400 in dark theme using the
dark:text-gray-400
utilities.Use
inline
utilities to put the element on its own line and fill its parent.Control the text color of an element to green-500 using the
text-green-500
utilities.Control the text color of an element to green-200undefined using the
border-green-500 dark:text-green-200
utilities.Control the border color of an element to b-2 using the
border-b-2
utilities.Control the margin on left side of an element to 1.5rem using the
ml-6
utilities.Control the text color of an element to green-500undefined using the
text-center focus:text-green-500
utilities.Control the margin on right side of an element to 0.75rem using the
mr-3
utilities.Control the background color of an element to transparent using the
bg-transparent
utilities.Control the vertical margin of an element to 1rem using the
my-4
utilities.Control the text color of an element to 4xl using the
text-4xl
utilities.Control the text color of an element to gray-400undefined using the
text-gray-600 dark:text-gray-400
utilities.Control the border color of an element to gray-600 using the
dark:border-gray-600
utilities in dark theme.Control the text color of an element to green-200 in dark theme using the
dark:text-green-200
utilities.Control the margin on left side of an element to 3rem using the
ml-12
utilities.Control the margin on top side of an element to 1.5rem using the
mt-6
utilities.Control the margin on left side of an element to 2.5rem using the
ml-10
utilities.Adjust the left padding of an element to 0.5rem using the
pl-2
utilities classControl the margin on left side of an element to 2rem using the
ml-8
utilities.Control the margin on left side of an element to 0.25rem using the
ml-1
utilities.Control the text color of an element to green-200undefined using the
text-green-500 dark:text-green-200
utilities.Control the margin on left side of an element to 6rem using the
ml-24
utilities.Control the margin on right side of an element to 3rem using the
mr-12
utilities.Control the margin on right side of an element to 4rem using the
mr-16
utilities.Control the padding on right side of an element to 0.25rem using the
pr-1
utilities.Control the padding on right side of an element to 0.5rem using the
pr-2
utilities.Control the horizontal padding of an element to 1rem using the
px-4
utilities.Control the vertical padding of an element to 1rem using the
py-4
utilities.Control the background color of an element to gray-600 using the
bg-white dark:bg-gray-600
utilitiesundefined.Control the margin on left side of an element to 1rem using the
ml-4
utilities.Control the text color of an element to gray-400undefined using the
text-gray-600 dark:text-gray-400
utilities.Control the text color of an element to black using the
text-black
utilities.Control the text color of an element to gray-200 in dark theme using the
dark:text-gray-200
utilities.Control the text color of an element to red-600 using the
text-red-600
utilities.Control the margin on right side of an element to 2rem using the
mr-8
utilities.Control the text color of an element to green-400 using the
text-green-400
utilities.Control the text color of an element to yellow-600 using the
text-yellow-600
utilities.Control the text color of an element to yellow-400 in dark theme using the
dark:text-yellow-400
utilities.Control the margin on bottom side of an element to 1rem using the
mb-4
utilities.
Conclusion
The above is a step-by-step tutorial on how to use Tailwind CSS to build a Tailwind Users Dashboard components, learn and follow along to implement your own components.