- Published on
Beginners Guide: Build A Tailwind CSS Mobile App Design With Tailwind CSS

- What is Tailwind CSS?
- The description of Tailwind CSS Mobile App Design ui component
- Why use Tailwind CSS to create a Tailwind CSS Mobile App Design ui component?
- The preview of Tailwind CSS Mobile App Design ui component
- The source code of Tailwind CSS Mobile App Design ui component
- How to create a Tailwind CSS Mobile App Design with Tailwind CSS?
- Install tailwind css of verion 2.2.4
- All the unility class needed to create a Tailwind CSS Mobile App Design component
- 118 steps to create a Tailwind CSS Mobile App Design 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 CSS Mobile App Design ui component
Mobile ui components built with tailwind css
Why use Tailwind CSS to create a Tailwind CSS Mobile App Design ui component?
- It can make the building process of Tailwind CSS Mobile App Design ui component faster and more easily.
- Enables building complex responsive layouts and components freely.
- Minimum lines of CSS code in Tailwind CSS Mobile App Design component file.
The preview of Tailwind CSS Mobile App Design ui component
Free download of the Tailwind CSS Mobile App Design's source code
The source code of Tailwind CSS Mobile App Design ui component
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous" />
<div class="relative min-h-screen flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8 bg-no-repeat bg-cover relative items-center"
style="background-image: url(https://images.unsplash.com/photo-1507608158173-1dcec673a2e5?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80);">
<div class="absolute bg-black opacity-60 inset-0 z-0"></div>
<div
class="w-full sm:w-6/12 lg:w-4/12 xl:w-4/12 overflow-y-scroll space-y-3 border-8 rounded-3xl bg-white border-gray-800 shadow-2xl z-10">
<div class="realtive sticky top-0 h-36 w-full rounded-b-3xl bg-center cursor-pointer object-cover z-10 shadow-lg"
style="background-image:url('https://images.unsplash.com/photo-1622180203374-9524a54b734d?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80')">
<nav class="p-2 flex flex-grow relative justify-between z-10 items-center mx-auto h-18">
<div class="inline relative">
<button type="button" class="inline-flex items-center relative text-gray-300 hover:text-white mr-3">
<svg xmlns="http://www.w3.org/2000/svg" class="h-8 w-8" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M4 6h16M4 12h8m-8 6h16"></path>
</svg>
</button>
</div>
<div class="inline-flex">
<a href="/">
<div class="hidden">
<svg width="102" height="32" fill="currentcolor" style="display: block">
<path
d="M29.24 22.68c-.16-.39-.31-.8-.47-1.15l-.74-1.67-.03-.03c-2.2-4.8-4.55-9.68-7.04-14.48l-.1-.2c-.25-.47-.5-.99-.76-1.47-.32-.57-.63-1.18-1.14-1.76a5.3 5.3 0 00-8.2 0c-.47.58-.82 1.19-1.14 1.76-.25.52-.5 1.03-.76 1.5l-.1.2c-2.45 4.8-4.84 9.68-7.04 14.48l-.06.06c-.22.52-.48 1.06-.73 1.64-.16.35-.32.73-.48 1.15a6.8 6.8 0 007.2 9.23 8.38 8.38 0 003.18-1.1c1.3-.73 2.55-1.79 3.95-3.32 1.4 1.53 2.68 2.59 3.95 3.33A8.38 8.38 0 0022.75 32a6.79 6.79 0 006.75-5.83 5.94 5.94 0 00-.26-3.5zm-14.36 1.66c-1.72-2.2-2.84-4.22-3.22-5.95a5.2 5.2 0 01-.1-1.96c.07-.51.26-.96.52-1.34.6-.87 1.65-1.41 2.8-1.41a3.3 3.3 0 012.8 1.4c.26.4.45.84.51 1.35.1.58.06 1.25-.1 1.96-.38 1.7-1.5 3.74-3.21 5.95zm12.74 1.48a4.76 4.76 0 01-2.9 3.75c-.76.32-1.6.41-2.42.32-.8-.1-1.6-.36-2.42-.84a15.64 15.64 0 01-3.63-3.1c2.1-2.6 3.37-4.97 3.85-7.08.23-1 .26-1.9.16-2.73a5.53 5.53 0 00-.86-2.2 5.36 5.36 0 00-4.49-2.28c-1.85 0-3.5.86-4.5 2.27a5.18 5.18 0 00-.85 2.21c-.13.84-.1 1.77.16 2.73.48 2.11 1.78 4.51 3.85 7.1a14.33 14.33 0 01-3.63 3.12c-.83.48-1.62.73-2.42.83a4.76 4.76 0 01-5.32-4.07c-.1-.8-.03-1.6.29-2.5.1-.32.25-.64.41-1.02.22-.52.48-1.06.73-1.6l.04-.07c2.16-4.77 4.52-9.64 6.97-14.41l.1-.2c.25-.48.5-.99.76-1.47.26-.51.54-1 .9-1.4a3.32 3.32 0 015.09 0c.35.4.64.89.9 1.4.25.48.5 1 .76 1.47l.1.2c2.44 4.77 4.8 9.64 7 14.41l.03.03c.26.52.48 1.1.73 1.6.16.39.32.7.42 1.03.19.9.29 1.7.19 2.5zM41.54 24.12a5.02 5.02 0 01-3.95-1.83 6.55 6.55 0 01-1.6-4.48 6.96 6.96 0 011.66-4.58 5.3 5.3 0 014.08-1.86 4.3 4.3 0 013.7 1.92l.1-1.57h2.92V23.8h-2.93l-.1-1.76a4.52 4.52 0 01-3.88 2.08zm.76-2.88c.58 0 1.09-.16 1.57-.45.44-.32.8-.74 1.08-1.25.25-.51.38-1.12.38-1.8a3.42 3.42 0 00-1.47-3.04 2.95 2.95 0 00-3.12 0c-.44.32-.8.74-1.08 1.25a4.01 4.01 0 00-.38 1.8 3.42 3.42 0 001.47 3.04c.47.29.98.45 1.55.45zM53.45 8.46c0 .35-.06.67-.22.93-.16.25-.38.48-.67.64-.29.16-.6.22-.92.22-.32 0-.64-.06-.93-.22a1.84 1.84 0 01-.67-.64 1.82 1.82 0 01-.22-.93c0-.36.07-.68.22-.93.16-.3.39-.48.67-.64.29-.16.6-.23.93-.23a1.84 1.84 0 011.6.86 2 2 0 01.21.94zm-3.4 15.3V11.7h3.18v12.08h-3.19zm11.68-8.9v.04c-.15-.07-.35-.1-.5-.13-.2-.04-.36-.04-.55-.04-.89 0-1.56.26-2 .8-.48.55-.7 1.32-.7 2.31v5.93h-3.19V11.69h2.93l.1 1.83c.32-.64.7-1.12 1.24-1.48a3.1 3.1 0 011.81-.5c.23 0 .45.02.64.06.1.03.16.03.22.06v3.2zm1.28 8.9V6.74h3.18v6.5c.45-.58.96-1.03 1.6-1.38a5.02 5.02 0 016.08 1.31 6.55 6.55 0 011.6 4.49 6.96 6.96 0 01-1.66 4.58 5.3 5.3 0 01-4.08 1.86 4.3 4.3 0 01-3.7-1.92l-.1 1.57-2.92.03zm6.15-2.52c.57 0 1.08-.16 1.56-.45.44-.32.8-.74 1.08-1.25.26-.51.38-1.12.38-1.8 0-.67-.12-1.28-.38-1.79a3.75 3.75 0 00-1.08-1.25 2.95 2.95 0 00-3.12 0c-.45.32-.8.74-1.09 1.25a4.01 4.01 0 00-.38 1.8 3.42 3.42 0 001.47 3.04c.47.29.98.45 1.56.45zm7.51 2.53V11.69h2.93l.1 1.57a3.96 3.96 0 013.54-1.89 4.1 4.1 0 013.82 2.44c.35.76.54 1.7.54 2.75v7.24h-3.19v-6.82c0-.84-.19-1.5-.57-1.99-.38-.48-.9-.74-1.56-.74-.48 0-.9.1-1.27.32-.35.23-.64.52-.86.93a2.7 2.7 0 00-.32 1.35v6.92h-3.16zm12.52 0V6.73h3.19v6.5a4.67 4.67 0 013.73-1.89 5.02 5.02 0 013.95 1.83 6.57 6.57 0 011.59 4.48 6.95 6.95 0 01-1.66 4.58 5.3 5.3 0 01-4.08 1.86 4.3 4.3 0 01-3.7-1.92l-.09 1.57-2.93.03zm6.18-2.53c.58 0 1.09-.16 1.56-.45.45-.32.8-.74 1.09-1.25.25-.51.38-1.12.38-1.8a3.42 3.42 0 00-1.47-3.04 2.95 2.95 0 00-3.12 0c-.44.32-.8.74-1.08 1.25a3.63 3.63 0 00-.38 1.8 3.42 3.42 0 001.47 3.04c.47.29.95.45 1.55.45z">
</path>
</svg>
</div>
</a>
</div>
<div class="flex-initial">
<div class="flex justify-end items-center relative">
<div class="inline relative">
<div class="block flex-grow-0 flex-shrink-0">
<img class="rounded-xl w-8 h-8 border border-yellow-300 shadow"
src="https://media-exp1.licdn.com/dms/image/C5603AQGEQ6ydraNeww/profile-displayphoto-shrink_200_200/0/1623517758261?e=1629331200&v=beta&t=mhUiw4p21E9okkvInvM0ry8lmLsT6s5ppWMKo6kFs2M">
</div>
</div>
</div>
</div>
</nav>
<div class="px-3 rounded-lg flex flex-col w-full">
<h4 class="text-white text-xl font-semibold leading-tight truncate">Loremipsum Title
</h4>
<div class="flex justify-between items-center ">
<div class="flex flex-col">
<h2 class="text-sm flex items-center text-gray-100 font-normal">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z">
</path>
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
</svg>
Massive Dynamic
</h2>
</div>
</div>
</div>
<div class="flex items-center justify-between mt-3 px-3 z-10">
<div class="relative w-full">
<input type="text" class="bg-purple-white shadow rounded-xl border-0 p-3 w-full"
placeholder="Search somthing...">
<div class="absolute top-0 right-0 p-4 pr-3 text-purple-lighter">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
</svg>
</div>
</div>
</div>
</div>
<div class=" p-3 space-y-4 z-0">
<h4 class="font-semibold mt-2">Category</h4>
<div class="flex items-center justify-between overflow-y-scroll text-gray-500 cursor-pointer space-x-3">
<div
class="flex flex-col items-center justify-center w-20 h-20 bg-green-200 rounded-2xl text-green-600 shadow hover:shadow-md cursor-pointer mb-2 p-1 bg-white transition ease-in duration-300">
<i class="far fa-hotel"></i>
<p class="text-sm mt-1">Hotel</p>
</div>
<div
class="flex flex-col items-center justify-center w-20 h-20 bg-yellow-200 rounded-2xl text-yellow-600 shadow hover:shadow-md cursor-pointer mb-2 p-1 bg-white transition ease-in duration-300">
<i class="far fa-bus"></i>
<p class="text-sm mt-1">Bus</p>
</div>
<div
class="flex flex-col items-center justify-center w-20 h-20 bg-indigo-200 rounded-2xl text-indigo-500 shadow hover:shadow-md cursor-pointer mb-2 p-1 bg-white transition ease-in duration-300">
<i class="far fa-mountains"></i>
<p class="text-sm mt-1">Hills</p>
</div>
<div
class="flex flex-col items-center justify-center w-20 h-20 bg-pink-200 rounded-2xl text-pink-500 shadow hover:shadow-md cursor-pointer mb-2 p-1 bg-white transition ease-in duration-300">
<i class="far fa-umbrella-beach"></i>
<p class="text-sm mt-1">Beach</p>
</div>
</div>
<h4 class="font-semibold">Recomented Hotels</h4>
<div class="grid m-0 grid-cols-2 space-x-4 overflow-y-scroll flex justify-center items-center w-full ">
<div class="relative flex flex-col justify-between bg-white shadow-md rounded-3xl bg-cover text-gray-800 overflow-hidden cursor-pointer w-full object-cover object-center rounded-lg shadow-md h-64 my-2"
style="background-image:url('https://images.unsplash.com/reserve/8T8J12VQxyqCiQFGa2ct_bahamas-atlantis.jpg?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1050&q=80')">
<div class="absolute bg-gradient-to-t from-green-400 to-blue-400 opacity-50 inset-0 z-0"></div>
<div class="relative flex flex-row items-end h-72 w-full ">
<div class="absolute right-0 top-0 m-2">
<svg xmlns="http://www.w3.org/2000/svg"
class="h-9 w-9 p-2 text-gray-200 hover:text-blue-400 rounded-full hover:bg-white transition ease-in duration-200 "
fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"></path>
</svg>
</div>
<div class="p-6 rounded-lg flex flex-col w-full z-10 ">
<h4 class="mt-1 text-white text-xl font-semibold leading-tight truncate">Loremipsum..
</h4>
<div class="flex justify-between items-center ">
<div class="flex flex-col">
<h2 class="text-sm flex items-center text-gray-300 font-normal">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none"
viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z">
</path>
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
</svg>
Dubai
</h2>
</div>
</div>
<div class="flex pt-4 text-sm text-gray-300">
<div class="flex items-center mr-auto">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-yellow-500 mr-1"
viewBox="0 0 20 20" fill="currentColor">
<path
d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z">
</path>
</svg>
<p class="font-normal">4.5</p>
</div>
<div class="flex items-center font-medium text-white ">
$1800
<span class="text-gray-300 text-sm font-normal"> /wk</span>
</div>
</div>
</div>
</div>
</div>
<div class="relative flex flex-col justify-between bg-white shadow-md rounded-3xl bg-cover text-gray-800 overflow-hidden cursor-pointer w-full object-cover object-center rounded-lg shadow-md h-64 my-2"
style="background-image:url('https://images.unsplash.com/photo-1571896349842-33c89424de2d?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=800&q=80')">
<div class="absolute bg-gradient-to-t from-blue-500 to-yellow-400 opacity-50 inset-0 z-0"></div>
<div class="relative flex flex-row items-end h-72 w-full ">
<div class="absolute right-0 top-0 m-2">
<svg xmlns="http://www.w3.org/2000/svg"
class="h-9 w-9 p-2 text-gray-200 hover:text-blue-400 rounded-full hover:bg-white transition ease-in duration-200 "
fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"></path>
</svg>
</div>
<div class="p-5 rounded-lg flex flex-col w-full z-10 ">
<h4 class="mt-1 text-white text-xl font-semibold leading-tight truncate">Loremipsum..
</h4>
<div class="flex justify-between items-center ">
<div class="flex flex-col">
<h2 class="text-sm flex items-center text-gray-300 font-normal">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none"
viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z">
</path>
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
</svg>
India
</h2>
</div>
</div>
<div class="flex pt-4 text-sm text-gray-300">
<div class="flex items-center mr-auto">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-yellow-500 mr-1"
viewBox="0 0 20 20" fill="currentColor">
<path
d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z">
</path>
</svg>
<p class="font-normal">4.5</p>
</div>
<div class="flex items-center font-medium text-white ">
$1800
<span class="text-gray-300 text-sm font-normal"> /wk</span>
</div>
</div>
</div>
</div>
</div>
</div>
<h4 class="font-semibold">Suggested By</h4>
<div class="grid grid-cols-1">
<div class="">
<div class="flex bg-white shadow-md rounded-2xl p-2">
<img src="https://images.unsplash.com/photo-1439130490301-25e322d88054?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1189&q=80"
alt="Just a flower" class=" w-16 object-cover h-16 rounded-xl">
<div class="flex flex-col justify-center w-full px-2 py-1">
<div class="flex justify-between items-center ">
<div class="flex flex-col">
<h2 class="text-sm font-medium">Massive Dynamic</h2>
</div>
<svg xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5 text-gray-500 hover:text-blue-400 cursor-pointer" fill="none"
viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"></path>
</svg>
</div>
<div class="flex pt-2 text-sm text-gray-400">
<div class="flex items-center mr-auto">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-yellow-500 mr-1"
viewBox="0 0 20 20" fill="currentColor">
<path
d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z">
</path>
</svg>
<p class="font-normal">4.5</p>
</div>
<div class="flex items-center font-medium text-gray-900 ">
$1800
<span class="text-gray-400 text-sm font-normal"> /wk</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class="sticky bottom-2 p-5 px-6 m-2 flex items-center justify-between bg-gray-900 shadow-3xl text-gray-400 rounded-2xl cursor-pointer">
<div class="flex flex-col items-center transition ease-in duration-200 hover:text-blue-400 ">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M17 14v6m-3-3h6M6 10h2a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v2a2 2 0 002 2zm10 0h2a2 2 0 002-2V6a2 2 0 00-2-2h-2a2 2 0 00-2 2v2a2 2 0 002 2zM6 20h2a2 2 0 002-2v-2a2 2 0 00-2-2H6a2 2 0 00-2 2v2a2 2 0 002 2z">
</path>
</svg>
</div>
<div class="flex flex-col items-center transition ease-in duration-200 hover:text-blue-400 ">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
</svg>
</div>
<div class="flex flex-col items-center hover:text-blue-400 ">
<div
class="absolute bottom-5 shadow-2xl text-center flex items-center justify-center rounded-full border-4 text-3xl border-gray-50 hover:border-blue-500 bg-blue-500 w-20 h-20 p-2 text-white transition ease-in duration-200 ">
<i class="fas fa-phone-alt"></i>
<span
class="animate-ping absolute inline-flex h-full w-full rounded-full border-4 opacity-50"></span>
</div>
</div>
<div class="flex flex-col items-center transition ease-in duration-200 hover:text-blue-400 ">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"></path>
</svg>
</div>
<div class="flex flex-col items-center transition ease-in duration-200 hover:text-blue-400 ">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z">
</path>
</svg>
</div>
</div>
</div>
</div>
<style>
::-webkit-scrollbar {
width: 0;
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 0px rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
background-color: transparent;
outline: 1px solid transparent;
}
</style>
How to create a Tailwind CSS Mobile App Design 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 create a Tailwind CSS Mobile App Design component
relative
min-h-screen
flex
py-12
px-4
sm:px-6
lg:px-8
bg-no-repeat
bg-cover
absolute
bg-black
z-0
w-full
sm:w-6/12
lg:w-4/12
xl:w-4/12
overflow-y-scroll
border-8
bg-white
border-gray-800
z-10
sticky
top-0
h-36
bg-center
p-2
flex-grow
mx-auto
h-18
inline
inline-flex
text-gray-300
hover:text-white
mr-3
h-8
w-8
hidden
flex-initial
block
flex-grow-0
flex-shrink-0
border-yellow-300
px-3
flex-col
text-white
text-xl
text-sm
text-gray-100
h-4
w-4
mr-1
mt-3
bg-purple-white
border-0
p-3
right-0
p-4
pr-3
text-purple-lighter
h-5
w-5
mt-2
text-gray-500
w-20
h-20
bg-green-200
text-green-600
mb-2
p-1
mt-1
bg-yellow-200
text-yellow-600
bg-indigo-200
text-indigo-500
bg-pink-200
text-pink-500
grid
m-0
grid-cols-2
text-gray-800
overflow-hidden
h-64
my-2
bg-gradient-to-t
flex-row
h-72
m-2
h-9
w-9
text-gray-200
hover:text-blue-400
hover:bg-white
p-6
pt-4
mr-auto
text-yellow-500
p-5
grid-cols-1
w-16
h-16
px-2
py-1
pt-2
text-gray-400
text-gray-900
bottom-2
px-6
bg-gray-900
h-6
w-6
bottom-5
text-center
border-4
text-3xl
border-gray-50
hover:border-blue-500
bg-blue-500
h-full
118 steps to create a Tailwind CSS Mobile App Design component with Tailwind CSS
Use
relative
to position an element according to the normal flow of the document.Set the minimum width/height of an element using the
min-h-screen
utilities.Use
flex
to create a block-level flex container.Control the vertical padding of an element to 3rem using the
py-12
utilities.Control the horizontal padding of an element to 1rem using the
px-4
utilities.Control the horizontal padding of an element to 1.5rem at only small screen sizes using the
sm:px-6
utilities.Control the horizontal padding of an element to 2rem at only large screen sizes using the
lg:px-8
utilities.Control the background color of an element to no-repeat using the
bg-no-repeat
utilities.Control the background color of an element to cover using the
bg-cover
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 background color of an element to black using the
bg-black
utilities.Control the stack order (or three-dimensional positioning) of an element to 0 in Tailwind, regardless of order it has been displayed, using the
z-0
utilities.Use
w-full
to set an element to a 100% based width.Use
sm:w-6/12
to set an element to a fixed width(6/12) at only small screen sizes.Use
lg:w-4/12
to set an element to a fixed width(4/12) at only large screen sizes.Use
xl:w-4/12
to set an element to a fixed width(4/12) at only extremely large screen sizes.Use
overflow-y-scroll
to allow vertical scrolling and always show scrollbars unless always-visible scrollbars are disabled by the operating system.Control the border color of an element to 2rem using the
border-8
utilities.Control the background color of an element to white using the
bg-white
utilities.Control the border color of an element to gray-800 using the
border-gray-800
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.Use
sticky
to position an element asrelative
until it crosses a specified threshold, then treat it as fixed until its parent is off screen.Use the
top-0
utilities to set the top position of a positioned element to 0rem.Use
h-36
to set an element to a fixed height(9rem).Control the background color of an element to center using the
bg-center
utilities.Control the padding on all sides of an element to 0.5rem using the
p-2
utilities.Use
flex
to create a block-level flex container.Control the horizontal margin of an element to auto using the
mx-auto
utilities.Use
h-18
to set an element to a fixed height(4.5rem).Use
inline
utilities to control the flow of text inside the element to wrap normally.Use
inline-flex
to create an inline flex container that flows with text.Control the text color of an element to gray-300 using the
text-gray-300
utilities.Control the text color of an element to white on hover using the
hover:text-white
utilities.Control the margin on right side of an element to 0.75rem using the
mr-3
utilities.Use
h-8
to set an element to a fixed height(2rem).Use
w-8
to set an element to a fixed width(2rem).Use
hidden
to set an element to display: none and remove it from the page layout.Use
flex
to create a block-level flex container.Use
inline
utilities to put the element on its own line and fill its parent.Use
flex
to create a block-level flex container.Use
flex
to create a block-level flex container.Control the border color of an element to yellow-300 using the
border-yellow-300
utilities.Control the horizontal padding of an element to 0.75rem using the
px-3
utilities.Use
flex
to create a block-level flex container.Control the text color of an element to white using the
text-white
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 gray-100 using the
text-gray-100
utilities.Use
h-4
to set an element to a fixed height(1rem).Use
w-4
to set an element to a fixed width(1rem).Control the margin on right side of an element to 0.25rem using the
mr-1
utilities.Control the margin on top side of an element to 0.75rem using the
mt-3
utilities.Control the background color of an element to purple-white using the
bg-purple-white
utilities.Control the border color of an element to 0rem using the
border-0
utilities.Control the padding on all sides of an element to 0.75rem using the
p-3
utilities.Use the
right-0
utilities to set the right position of a positioned element to 0rem.Control the padding on all sides of an element to 1rem using the
p-4
utilities.Control the padding on right side of an element to 0.75rem using the
pr-3
utilities.Control the text color of an element to purple-lighter using the
text-purple-lighter
utilities.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-500 using the
text-gray-500
utilities.Use
w-20
to set an element to a fixed width(5rem).Use
h-20
to set an element to a fixed height(5rem).Control the background color of an element to green-200 using the
bg-green-200
utilities.Control the text color of an element to green-600 using the
text-green-600
utilities.Control the margin on bottom side of an element to 0.5rem using the
mb-2
utilities.Control the padding on all sides of an element to 0.25rem using the
p-1
utilities.Control the margin on top side of an element to 0.25rem using the
mt-1
utilities.Control the background color of an element to yellow-200 using the
bg-yellow-200
utilities.Control the text color of an element to yellow-600 using the
text-yellow-600
utilities.Control the background color of an element to indigo-200 using the
bg-indigo-200
utilities.Control the text color of an element to indigo-500 using the
text-indigo-500
utilities.Control the background color of an element to pink-200 using the
bg-pink-200
utilities.Control the text color of an element to pink-500 using the
text-pink-500
utilities.Use
grid
to create a grid container.Control the margin on all sides of an element to 0rem using the
m-0
utilities.Use
grid
to create a grid container.Control the text color of an element to gray-800 using the
text-gray-800
utilities.Use
overflow-hidden
to clip any content within an element that overflows the bounds of that element.Use
h-64
to set an element to a fixed height(16rem).Control the vertical margin of an element to 0.5rem using the
my-2
utilities.Control the background color of an element to gradient-to-t using the
bg-gradient-to-t
utilities.Use
flex
to create a block-level flex container.Use
h-72
to set an element to a fixed height(18rem).Control the margin on all sides of an element to 0.5rem using the
m-2
utilities.Use
h-9
to set an element to a fixed height(2.25rem).Use
w-9
to set an element to a fixed width(2.25rem).Control the text color of an element to gray-200 using the
text-gray-200
utilities.Control the text color of an element to blue-400 on hover using the
hover:text-blue-400
utilities.Control the background color of an element to white using the
hover:bg-white
utilities on hover.Control the padding on all sides of an element to 1.5rem using the
p-6
utilities.Control the padding on top side of an element to 1rem using the
pt-4
utilities.Control the margin on right side of an element to auto using the
mr-auto
utilities.Control the text color of an element to yellow-500 using the
text-yellow-500
utilities.Control the padding on all sides of an element to 1.25rem using the
p-5
utilities.Use
grid
to create a grid container.Use
w-16
to set an element to a fixed width(4rem).Use
h-16
to set an element to a fixed height(4rem).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 padding on top side of an element to 0.5rem using the
pt-2
utilities.Control the text color of an element to gray-400 using the
text-gray-400
utilities.Control the text color of an element to gray-900 using the
text-gray-900
utilities.Use the
bottom-2
utilities to set the bottom position of a positioned element to 0.5rem.Control the horizontal padding of an element to 1.5rem using the
px-6
utilities.Control the background color of an element to gray-900 using the
bg-gray-900
utilities.Use
h-6
to set an element to a fixed height(1.5rem).Use
w-6
to set an element to a fixed width(1.5rem).Use the
bottom-5
utilities to set the bottom position of a positioned element to 1.25rem.Control the text color of an element to center using the
text-center
utilities.Control the border color of an element to 1rem using the
border-4
utilities.Control the text color of an element to 3xl using the
text-3xl
utilities.Control the border color of an element to gray-50 using the
border-gray-50
utilities.Control the border color of an element to blue-500 using the
hover:border-blue-500
utilities on hover.Control the background color of an element to blue-500 using the
bg-blue-500
utilities.Use
h-full
to set an element’s height to 100% of its parent, as long as the parent has a defined height.
Conclusion
The above is a step-by-step tutorial on how to use Tailwind CSS to create a Tailwind CSS Mobile App Design components, learn and follow along to implement your own components.