- Published on
6 Tips To Make A Follow Me With Tailwind CSS

- What is Tailwind CSS?
- The description of Follow Me ui component
- Why use Tailwind CSS to make a Follow Me ui component?
- The preview of Follow Me ui component
- The source code of Follow Me ui component
- How to make a Follow Me with Tailwind CSS?
- Install tailwind css of verion 1.0.4
- All the unility class needed to make a Follow Me component
- 26 steps to make a Follow Me 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 Follow Me ui component
Linkedin mobile widget to follow companies.
Why use Tailwind CSS to make a Follow Me ui component?
- It can make the building process of Follow Me ui component faster and more easily.
- Enables building complex responsive layouts and components freely.
- Minimum lines of CSS code in Follow Me component file.
The preview of Follow Me ui component
Free download of the Follow Me's source code
The source code of Follow Me ui component
<div class="flex flex-col w-full flex-wrap">
<div class="flex items-center justify-between bg-gray-200 p-4">
<span class="text-lg text-tial-800 font-semibold ">Add to your feed</span>
<svg class="" viewBox="0 0 24 24" width="18" height="18" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1"><polyline points="6 9 12 15 18 9"></polyline></svg>
</div>
<div class="flex flex-wrap flex-col md:flex-row">
<div class="flex flex-wrap bg-white border-b border-blue-tial-100 md:w-1/2 lg:w-1/3">
<div class="flex w-full m-4">
<div class="flex items-center">
<img class="h-20 w-24"
src="https://images.unsplash.com/photo-1453847350175-b971869973d0?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=200&q=80" />
<div class="flex flex-col p-4">
<h3 class="font-bold text-md text-tial-400">Company Name</h3>
<span class="font-light text-sm">224k followers</span>
<div class="flex">
<svg class="mr-1" viewBox="0 0 24 24" width="18" height="18" stroke="currentColor"
stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"
class="css-i6dzq1">
<polygon
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2">
</polygon>
</svg>
<svg class="mr-1" viewBox="0 0 24 24" width="18" height="18" stroke="currentColor"
stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"
class="css-i6dzq1">
<polygon
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2">
</polygon>
</svg>
<svg class="mr-1" viewBox="0 0 24 24" width="18" height="18" stroke="currentColor"
stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"
class="css-i6dzq1">
<polygon
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2">
</polygon>
</svg>
</div>
</div>
</div>
<div class="flex flex-1 flex-grow w-full items-center justify-end">
<div class="flex items-center mr-2">
<a href="#" class="text-lg uppercase font-semibold text-blue-400 hover:text-blue-600">Follow</a>
<svg class="fill-current text-blue-400 font-semibold " viewBox="0 0 24 24" width="16"
height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round"
stroke-linejoin="round" class="css-i6dzq1">
<line x1="12" y1="5" x2="12" y2="19"></line>
<line x1="5" y1="12" x2="19" y2="12"></line>
</svg>
</div>
</div>
</div>
</div>
<div class="flex flex-wrap bg-white border-b border-blue-tial-100 md:w-1/2 lg:w-1/3">
<div class="flex w-full m-4">
<div class="flex items-center">
<img class="h-20 w-24"
src="https://images.unsplash.com/photo-1453847350175-b971869973d0?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=200&q=80" />
<div class="flex flex-col p-4">
<h3 class="font-bold text-md text-tial-400">Company Name</h3>
<span class="font-light text-sm">224k followers</span>
<div class="flex">
<svg class="mr-1" viewBox="0 0 24 24" width="18" height="18" stroke="currentColor"
stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"
class="css-i6dzq1">
<polygon
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2">
</polygon>
</svg>
<svg class="mr-1" viewBox="0 0 24 24" width="18" height="18" stroke="currentColor"
stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"
class="css-i6dzq1">
<polygon
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2">
</polygon>
</svg>
<svg class="mr-1" viewBox="0 0 24 24" width="18" height="18" stroke="currentColor"
stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"
class="css-i6dzq1">
<polygon
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2">
</polygon>
</svg>
</div>
</div>
</div>
<div class="flex flex-1 flex-grow w-full items-center justify-end">
<div class="flex items-center mr-2">
<a href="#" class="text-lg uppercase font-semibold text-blue-400 hover:text-blue-600">Follow</a>
<svg class="fill-current text-blue-400 font-semibold " viewBox="0 0 24 24" width="16"
height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round"
stroke-linejoin="round" class="css-i6dzq1">
<line x1="12" y1="5" x2="12" y2="19"></line>
<line x1="5" y1="12" x2="19" y2="12"></line>
</svg>
</div>
</div>
</div>
</div>
<div class="flex flex-wrap bg-white border-b border-blue-tial-100 md:w-1/2 lg:w-1/3">
<div class="flex w-full m-4">
<div class="flex items-center">
<img class="h-20 w-24"
src="https://images.unsplash.com/photo-1453847350175-b971869973d0?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=200&q=80" />
<div class="flex flex-col p-4">
<h3 class="font-bold text-md text-tial-400">Company Name</h3>
<span class="font-light text-sm">224k followers</span>
<div class="flex">
<svg class="mr-1" viewBox="0 0 24 24" width="18" height="18" stroke="currentColor"
stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"
class="css-i6dzq1">
<polygon
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2">
</polygon>
</svg>
<svg class="mr-1" viewBox="0 0 24 24" width="18" height="18" stroke="currentColor"
stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"
class="css-i6dzq1">
<polygon
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2">
</polygon>
</svg>
<svg class="mr-1" viewBox="0 0 24 24" width="18" height="18" stroke="currentColor"
stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"
class="css-i6dzq1">
<polygon
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2">
</polygon>
</svg>
</div>
</div>
</div>
<div class="flex flex-1 flex-grow w-full items-center justify-end">
<div class="flex items-center mr-2">
<a href="#" class="text-lg uppercase font-semibold text-blue-400 hover:text-blue-600">Follow</a>
<svg class="fill-current text-blue-400 font-semibold " viewBox="0 0 24 24" width="16"
height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round"
stroke-linejoin="round" class="css-i6dzq1">
<line x1="12" y1="5" x2="12" y2="19"></line>
<line x1="5" y1="12" x2="19" y2="12"></line>
</svg>
</div>
</div>
</div>
</div>
<div class="flex flex-wrap bg-white border-b border-blue-tial-100 md:w-1/2 lg:w-1/3">
<div class="flex w-full m-4">
<div class="flex items-center">
<img class="h-20 w-24"
src="https://images.unsplash.com/photo-1453847350175-b971869973d0?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=200&q=80" />
<div class="flex flex-col p-4">
<h3 class="font-bold text-md text-tial-400">Company Name</h3>
<span class="font-light text-sm">224k followers</span>
<div class="flex">
<svg class="mr-1" viewBox="0 0 24 24" width="18" height="18" stroke="currentColor"
stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"
class="css-i6dzq1">
<polygon
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2">
</polygon>
</svg>
<svg class="mr-1" viewBox="0 0 24 24" width="18" height="18" stroke="currentColor"
stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"
class="css-i6dzq1">
<polygon
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2">
</polygon>
</svg>
<svg class="mr-1" viewBox="0 0 24 24" width="18" height="18" stroke="currentColor"
stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"
class="css-i6dzq1">
<polygon
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2">
</polygon>
</svg>
</div>
</div>
</div>
<div class="flex flex-1 flex-grow w-full items-center justify-end">
<div class="flex items-center mr-2">
<a href="#" class="text-lg uppercase font-semibold text-blue-400 hover:text-blue-600">Follow</a>
<svg class="fill-current text-blue-400 font-semibold " viewBox="0 0 24 24" width="16"
height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round"
stroke-linejoin="round" class="css-i6dzq1">
<line x1="12" y1="5" x2="12" y2="19"></line>
<line x1="5" y1="12" x2="19" y2="12"></line>
</svg>
</div>
</div>
</div>
</div>
</div>
<div class="flex justify-center bg-gray-200">
<a href="#" class="text-lg text-tial-800 font-bold p-4 hover:underline hover:font-tial-600">SHOW MORE</a>
</div>
</div>
How to make a Follow Me with Tailwind CSS?
Install tailwind css of verion 1.0.4
Use the link
html tag to import the stylesheet of Tailwind CSS of the version 1.0.4
<link href=https://unpkg.com/[email protected]/dist/tailwind.min.css rel="stylesheet">
All the unility class needed to make a Follow Me component
flex
flex-col
w-full
flex-wrap
bg-gray-200
p-4
text-lg
text-tial-800
md:flex-row
bg-white
border-b
border-blue-tial-100
md:w-1/2
lg:w-1/3
m-4
h-20
w-24
text-md
text-tial-400
text-sm
mr-1
flex-1
flex-grow
mr-2
text-blue-400
hover:text-blue-600
26 steps to make a Follow Me component with Tailwind CSS
Use
flex
to create a block-level flex container.Use
flex
to create a block-level flex container.Use
w-full
to set an element to a 100% based width.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 padding on all sides of an element to 1rem using the
p-4
utilities.Control the text color of an element to lg using the
text-lg
utilities.Control the text color of an element to tial-800 using the
text-tial-800
utilities.Use
flex
to create a block-level flex container at only medium screen sizes.Control the background color of an element to white using the
bg-white
utilities.Control the border color of an element to b using the
border-b
utilities.Control the border color of an element to blue-tial-100 using the
border-blue-tial-100
utilities.Use
md:w-1/2
to set an element to a fixed width(1/2) at only medium screen sizes.Use
lg:w-1/3
to set an element to a fixed width(1/3) at only large screen sizes.Control the margin on all sides of an element to 1rem using the
m-4
utilities.Use
h-20
to set an element to a fixed height(5rem).Use
w-24
to set an element to a fixed width(6rem).Control the text color of an element to md using the
text-md
utilities.Control the text color of an element to tial-400 using the
text-tial-400
utilities.Control the text color of an element to sm using the
text-sm
utilities.Control the margin on right side of an element to 0.25rem using the
mr-1
utilities.Use
flex
to create a block-level flex container.Use
flex
to create a block-level flex container.Control the margin on right side of an element to 0.5rem using the
mr-2
utilities.Control the text color of an element to blue-400 using the
text-blue-400
utilities.Control the text color of an element to blue-600 on hover using the
hover:text-blue-600
utilities.
Conclusion
The above is a step-by-step tutorial on how to use Tailwind CSS to make a Follow Me components, learn and follow along to implement your own components.