Published on

6 Tips To Make A Follow Me With Tailwind CSS

Follow Me

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

  1. Use flex to create a block-level flex container.

  2. Use flex to create a block-level flex container.

  3. Use w-full to set an element to a 100% based width.

  4. Use flex to create a block-level flex container.

  5. Control the background color of an element to gray-200 using the bg-gray-200 utilities.

  6. Control the padding on all sides of an element to 1rem using the p-4 utilities.

  7. Control the text color of an element to lg using the text-lg utilities.

  8. Control the text color of an element to tial-800 using the text-tial-800 utilities.

  9. Use flex to create a block-level flex container at only medium screen sizes.

  10. Control the background color of an element to white using the bg-white utilities.

  11. Control the border color of an element to b using the border-b utilities.

  12. Control the border color of an element to blue-tial-100 using the border-blue-tial-100 utilities.

  13. Use md:w-1/2 to set an element to a fixed width(1/2) at only medium screen sizes.

  14. Use lg:w-1/3 to set an element to a fixed width(1/3) at only large screen sizes.

  15. Control the margin on all sides of an element to 1rem using the m-4 utilities.

  16. Use h-20 to set an element to a fixed height(5rem).

  17. Use w-24 to set an element to a fixed width(6rem).

  18. Control the text color of an element to md using the text-md utilities.

  19. Control the text color of an element to tial-400 using the text-tial-400 utilities.

  20. Control the text color of an element to sm using the text-sm utilities.

  21. Control the margin on right side of an element to 0.25rem using the mr-1 utilities.

  22. Use flex to create a block-level flex container.

  23. Use flex to create a block-level flex container.

  24. Control the margin on right side of an element to 0.5rem using the mr-2 utilities.

  25. Control the text color of an element to blue-400 using the text-blue-400 utilities.

  26. 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.