- Published on
6 Steps To Build A Linkedin Login Page With Tailwind CSS Like A Pro In Under An Hour

- What is Tailwind CSS?
- The description of Linkedin Login Page ui component
- Why use Tailwind CSS to build a Linkedin Login Page ui component?
- The preview of Linkedin Login Page ui component
- The source code of Linkedin Login Page ui component
- How to build a Linkedin Login Page with Tailwind CSS?
- Install tailwind css of verion 2.2.4
- All the unility class needed to build a Linkedin Login Page component
- 46 steps to build a Linkedin Login Page 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 Linkedin Login Page ui component
Similar linkedin login page
Why use Tailwind CSS to build a Linkedin Login Page ui component?
- It can make the building process of Linkedin Login Page ui component faster and more easily.
- Enables building complex responsive layouts and components freely.
- Minimum lines of CSS code in Linkedin Login Page component file.
The preview of Linkedin Login Page ui component
Free download of the Linkedin Login Page's source code
The source code of Linkedin Login Page ui component
<!DOCTYPE html>
<html lang="en" class="border-l">
<head>
<meta charset="UTF-8">
<link href="https://unpkg.com/[email protected]^2/dist/tailwind.min.css" rel="stylesheet">
<title>Login</title>
<style>
* {
margin:0;
padding:0;
}
.input {
transition: border 0.2s ease-in-out;
min-width: 280px
}
.input:focus+.label,
.input:active+.label,
.input.filled+.label {
font-size: .75rem;
transition: all 0.2s ease-out;
top: -0.3rem;
color: #6b7280;
}
.label {
transition: all 0.2s ease-out;
top: 0.4rem;
left: 0;
}
</style>
</head>
<body>
<header>
<a aria-label="Linkedin" class="z-10 mt-9 absolute md:ml-12 ml-9" href="/">
<svg class="w-32" viewBox="0 0 100 21" preserveAspectRatio="xMinYMin meet" focusable="false">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M19.479,0 L1.583,0 C0.727,0 0,0.677 0,1.511 L0,19.488 C0,20.323 0.477,21 1.333,21 L19.229,21 C20.086,21 21,20.323 21,19.488 L21,1.511 C21,0.677 20.336,0 19.479,0" class="bug-text-color" transform="translate(63.000000, 0.000000)"></path>
<path d="M82.479,0 L64.583,0 C63.727,0 63,0.677 63,1.511 L63,19.488 C63,20.323 63.477,21 64.333,21 L82.229,21 C83.086,21 84,20.323 84,19.488 L84,1.511 C84,0.677 83.336,0 82.479,0 Z M71,8 L73.827,8 L73.827,9.441 L73.858,9.441 C74.289,8.664 75.562,7.875 77.136,7.875 C80.157,7.875 81,9.479 81,12.45 L81,18 L78,18 L78,12.997 C78,11.667 77.469,10.5 76.227,10.5 C74.719,10.5 74,11.521 74,13.197 L74,18 L71,18 L71,8 Z M66,18 L69,18 L69,8 L66,8 L66,18 Z M69.375,4.5 C69.375,5.536 68.536,6.375 67.5,6.375 C66.464,6.375 65.625,5.536 65.625,4.5 C65.625,3.464 66.464,2.625 67.5,2.625 C68.536,2.625 69.375,3.464 69.375,4.5 Z" class="background" fill="#0a66c2"></path>
</g>
<g>
<path d="M60,18 L57.2,18 L57.2,16.809 L57.17,16.809 C56.547,17.531 55.465,18.125 53.631,18.125 C51.131,18.125 48.978,16.244 48.978,13.011 C48.978,9.931 51.1,7.875 53.725,7.875 C55.35,7.875 56.359,8.453 56.97,9.191 L57,9.191 L57,3 L60,3 L60,18 Z M54.479,10.125 C52.764,10.125 51.8,11.348 51.8,12.974 C51.8,14.601 52.764,15.875 54.479,15.875 C56.196,15.875 57.2,14.634 57.2,12.974 C57.2,11.268 56.196,10.125 54.479,10.125 L54.479,10.125 Z" fill="#0a66c2"></path>
<path d="M47.6611,16.3889 C46.9531,17.3059 45.4951,18.1249 43.1411,18.1249 C40.0001,18.1249 38.0001,16.0459 38.0001,12.7779 C38.0001,9.8749 39.8121,7.8749 43.2291,7.8749 C46.1801,7.8749 48.0001,9.8129 48.0001,13.2219 C48.0001,13.5629 47.9451,13.8999 47.9451,13.8999 L40.8311,13.8999 L40.8481,14.2089 C41.0451,15.0709 41.6961,16.1249 43.1901,16.1249 C44.4941,16.1249 45.3881,15.4239 45.7921,14.8749 L47.6611,16.3889 Z M45.1131,11.9999 C45.1331,10.9449 44.3591,9.8749 43.1391,9.8749 C41.6871,9.8749 40.9121,11.0089 40.8311,11.9999 L45.1131,11.9999 Z" fill="#0a66c2"></path>
<polygon fill="#0a66c2" points="38 8 34.5 8 31 12 31 3 28 3 28 18 31 18 31 13 34.699 18 38.241 18 34 12.533"></polygon>
<path d="M16,8 L18.827,8 L18.827,9.441 L18.858,9.441 C19.289,8.664 20.562,7.875 22.136,7.875 C25.157,7.875 26,9.792 26,12.45 L26,18 L23,18 L23,12.997 C23,11.525 22.469,10.5 21.227,10.5 C19.719,10.5 19,11.694 19,13.197 L19,18 L16,18 L16,8 Z" fill="#0a66c2"></path>
<path d="M11,18 L14,18 L14,8 L11,8 L11,18 Z M12.501,6.3 C13.495,6.3 14.3,5.494 14.3,4.5 C14.3,3.506 13.495,2.7 12.501,2.7 C11.508,2.7 10.7,3.506 10.7,4.5 C10.7,5.494 11.508,6.3 12.501,6.3 Z" fill="#0a66c2"></path>
<polygon fill="#0a66c2" points="3 3 0 3 0 18 9 18 9 15 3 15"></polygon>
</g>
</svg>
</a>
</header>
<div class="h-screen bg-white relative flex flex-col space-y-10 justify-center items-center">
<div class="bg-white md:shadow-lg shadow-none rounded p-6 w-96" >
<h1 class="text-3xl font-bold leading-normal" >Sign in</h1>
<p class="text-sm leading-normal">Stay updated on your professional world</p>
<form class="space-y-5 mt-5">
<div class="mb-4 relative">
<input id="email" class="w-full rounded px-3 border border-gray-500 pt-5 pb-2 focus:outline-none input active:outline-none" type="text" autofocus>
<label for="email" class="label absolute mb-0 -mt-2 pt-4 pl-3 leading-tighter text-gray-500 text-base mt-2 cursor-text">Email or Phone</label>
</div>
<div class="relative flex items-center border border-gray-500 focus:ring focus:border-blue-500 rounded">
<input id="password" class="w-full rounded px-3 pt-5 outline-none pb-2 focus:outline-none active:outline-none input active:border-blue-500" type="password"/>
<label for="password" class="label absolute mb-0 -mt-2 pt-4 pl-3 leading-tighter text-gray-500 text-base mt-2 cursor-text">Password</label>
<a class="text-sm font-bold text-blue-700 hover:bg-blue-100 rounded-full px-2 py-1 mr-1 leading-normal cursor-pointer">show</a>
</div>
<div class="-m-2">
<a class="font-bold text-blue-700 hover:bg-blue-200 hover:underline hover:p-5 p-2 rounded-full" href="#">Forgot password?</a>
</div>
<button class="w-full text-center bg-blue-700 hover:bg-blue-900 rounded-full text-white py-3 font-medium">Sign in</button>
</form>
</div>
<p>New to LinkedIn?<a class="text-blue-700 font-bold hover:bg-blue-200 hover:underline hover:p-5 p-2 rounded-full" href="#">Join now</a></p>
</div>
</body>
</html>
How to build a Linkedin Login Page with Tailwind CSS?
Install tailwind css of verion 2.2.4
Use the script
html tag to import the script of Tailwind CSS of the version 2.2.4
<script src="https://cdn.tailwindcss.com"></script>
All the unility class needed to build a Linkedin Login Page component
border-l
z-10
mt-9
absolute
md:ml-12
ml-9
w-32
h-screen
bg-white
relative
flex
flex-col
p-6
w-96
text-3xl
text-sm
mt-5
mb-4
w-full
px-3
border-gray-500
pt-5
pb-2
mb-0
-mt-2
pt-4
pl-3
text-gray-500
text-base
mt-2
focus:border-blue-500
active:border-blue-500
text-blue-700
hover:bg-blue-100
px-2
py-1
mr-1
-m-2
hover:bg-blue-200
hover:p-5
p-2
text-center
bg-blue-700
hover:bg-blue-900
text-white
py-3
46 steps to build a Linkedin Login Page component with Tailwind CSS
Control the border color of an element to l using the
border-l
utilities.Control the stack order (or three-dimensional positioning) of an element to 10 in Tailwind, regardless of order it has been displayed, using the
z-10
utilities.Control the margin on top side of an element to 2.25rem using the
mt-9
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.Control the margin on left side of an element to 3rem at only medium screen sizes using the
md:ml-12
utilities.Control the margin on left side of an element to 2.25rem using the
ml-9
utilities.Use
w-32
to set an element to a fixed width(8rem).Use
h-screen
to make an element span the entire height of the viewport.Control the background color of an element to white using the
bg-white
utilities.Use
relative
to position an element according to the normal flow of the document.Use
flex
to create a block-level flex container.Use
flex
to create a block-level flex container.Control the padding on all sides of an element to 1.5rem using the
p-6
utilities.Use
w-96
to set an element to a fixed width(24rem).Control the text color of an element to 3xl using the
text-3xl
utilities.Control the text color of an element to sm using the
text-sm
utilities.Control the margin on top side of an element to 1.25rem using the
mt-5
utilities.Control the margin on bottom side of an element to 1rem using the
mb-4
utilities.Use
w-full
to set an element to a 100% based width.Control the horizontal padding of an element to 0.75rem using the
px-3
utilities.Control the border color of an element to gray-500 using the
border-gray-500
utilities.Control the padding on top side of an element to 1.25rem using the
pt-5
utilities.Control the padding on bottom side of an element to 0.5rem using the
pb-2
utilities.Control the margin on bottom side of an element to 0rem using the
mb-0
utilities.Control the margin on top side of an element to -0.5rem using the
-mt-2
utilities.Control the padding on top side of an element to 1rem using the
pt-4
utilities.Adjust the left padding of the element to 0.75rem using the
pl-3
utilities classControl the text color of an element to gray-500 using the
text-gray-500
utilities.Control the text color of an element to base using the
text-base
utilities.Control the margin on top side of an element to 0.5rem using the
mt-2
utilities.Control the border color of an element to blue-500 using the
focus:border-blue-500
utilities on focus.Control the border color of an element to blue-500 using the
active:border-blue-500
utilities on active.Control the text color of an element to blue-700 using the
text-blue-700
utilities.Control the background color of an element to blue-100 using the
hover:bg-blue-100
utilities on hover.Control the horizontal padding of an element to 0.5rem using the
px-2
utilities.Control the vertical padding of an element to 0.25rem using the
py-1
utilities.Control the margin on right side of an element to 0.25rem using the
mr-1
utilities.Control the margin on all sides of an element to -0.5rem using the
-m-2
utilities.Control the background color of an element to blue-200 using the
hover:bg-blue-200
utilities on hover.Control the padding on all sides of an element to 1.25rem on hover using the
hover:p-5
utilities.Control the padding on all sides of an element to 0.5rem using the
p-2
utilities.Control the text color of an element to center using the
text-center
utilities.Control the background color of an element to blue-700 using the
bg-blue-700
utilities.Control the background color of an element to blue-900 using the
hover:bg-blue-900
utilities on hover.Control the text color of an element to white using the
text-white
utilities.Control the vertical padding of an element to 0.75rem using the
py-3
utilities.
Conclusion
The above is a step-by-step tutorial on how to use Tailwind CSS to build a Linkedin Login Page components, learn and follow along to implement your own components.