- Published on
6 Tips To Make A Responsive Coming Soon With Tailwind CSS

- What is Tailwind CSS?
- The description of Responsive Coming Soon ui component
- Why use Tailwind CSS to create a Responsive Coming Soon ui component?
- The preview of Responsive Coming Soon ui component
- The source code of Responsive Coming Soon ui component
- How to create a Responsive Coming Soon with Tailwind CSS?
- Install tailwind css of verion 2.2.4
- All the unility class needed to create a Responsive Coming Soon component
- 36 steps to create a Responsive Coming Soon 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 Responsive Coming Soon ui component
A responsive coming soon template
Why use Tailwind CSS to create a Responsive Coming Soon ui component?
- It can make the building process of Responsive Coming Soon ui component faster and more easily.
- Enables building complex responsive layouts and components freely.
- Minimum lines of CSS code in Responsive Coming Soon component file.
The preview of Responsive Coming Soon ui component
Free download of the Responsive Coming Soon's source code
The source code of Responsive Coming Soon ui component
<div class="w-full">
<div class="flex bg-white h-screen">
<div class="flex items-center text-center lg:text-left px-8 md:px-12 lg:w-1/2">
<div>
<span class="text-2xl font-semibold text-gray-800 md:text-4xl">⏰ Coming<span class="ml-2 text-blue-600">Soon</span> ⏰</span>
<h1 class="py-5 text-5xl font-semibold text-gray-800 md:text-6xl">Font<span class="ml-2 text-blue-600">Generator</span></h1>
<p class="mt-2 text-sm text-gray-500 md:text-lg"><a href="https://fontgenerator.org/">Font generator</a> is the best free online website to generate cool and stylish <strong>fancy fonts</strong> without any third party app. The website is under construction meanwhile you can follow on below social network.</p>
<div class="flex space-x-3 justify-center lg:justify-start mt-6">
<a href="https://www.facebook.com/FontGen/" class="bg-blue-500 px-4 py-2 font-semibold text-white inline-flex items-center space-x-2 rounded">
<svg class="w-5 h-5 fill-current" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>
<span>Facebook</span>
</a>
<a href="https://twitter.com/FontGen" class="bg-blue-300 px-4 py-2 font-semibold text-white inline-flex items-center space-x-2 rounded">
<svg class="w-5 h-5 fill-current" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"/></svg>
<span>Twitter</span>
</a>
<a href="#" class="bg-red-500 px-4 py-2 font-semibold text-white inline-flex items-center space-x-2 rounded">
<svg class="w-5 h-5 fill-current" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z"/></svg>
<span>Reddit</span>
</a>
<a href="#" class="bg-pink-600 px-4 py-2 font-semibold text-white inline-flex items-center space-x-2 rounded">
<svg class="w-5 h-5 fill-current" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Pinterest icon</title><path d="M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z"/></svg>
<span>Pinterest</span>
</a>
</div>
</div>
</div>
<div class="hidden lg:block lg:w-1/2" >
<div class="h-full object-cover" style="background-image: url(https://images.unsplash.com/photo-1501854140801-50d01698950b?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1400&q=80)">
<div class="h-full bg-blue-500 opacity-50"></div>
</div>
</div>
</div>
</div>
How to create a Responsive Coming Soon 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 Responsive Coming Soon component
w-full
flex
bg-white
h-screen
text-center
lg:text-left
px-8
md:px-12
lg:w-1/2
text-2xl
text-gray-800
md:text-4xl
ml-2
text-blue-600
py-5
text-5xl
md:text-6xl
mt-2
text-sm
text-gray-500
md:text-lg
lg:justify-start
mt-6
bg-blue-500
px-4
py-2
text-white
inline-flex
w-5
h-5
bg-blue-300
bg-red-500
bg-pink-600
hidden
lg:block
h-full
36 steps to create a Responsive Coming Soon component with Tailwind CSS
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 white using the
bg-white
utilities.Use
h-screen
to make an element span the entire height of the viewport.Control the text color of an element to center using the
text-center
utilities.Control the text color of an element to left at only large screen sizes using the
lg:text-left
utilities.Control the horizontal padding of an element to 2rem using the
px-8
utilities.Control the horizontal padding of an element to 3rem at only medium screen sizes using the
md:px-12
utilities.Use
lg:w-1/2
to set an element to a fixed width(1/2) at only large screen sizes.Control the text color of an element to 2xl using the
text-2xl
utilities.Control the text color of an element to gray-800 using the
text-gray-800
utilities.Control the text color of an element to 4xl at only medium screen sizes using the
md:text-4xl
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 blue-600 using the
text-blue-600
utilities.Control the vertical padding of an element to 1.25rem using the
py-5
utilities.Control the text color of an element to 5xl using the
text-5xl
utilities.Control the text color of an element to 6xl at only medium screen sizes using the
md:text-6xl
utilities.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 sm using the
text-sm
utilities.Control the text color of an element to gray-500 using the
text-gray-500
utilities.Control the text color of an element to lg at only medium screen sizes using the
md:text-lg
utilities.Use
justify-start
to justify items against the start of the container’s main axis at only large screen sizes.Control the margin on top side of an element to 1.5rem using the
mt-6
utilities.Control the background color of an element to blue-500 using the
bg-blue-500
utilities.Control the horizontal padding of an element to 1rem using the
px-4
utilities.Control the vertical padding of an element to 0.5rem using the
py-2
utilities.Control the text color of an element to white using the
text-white
utilities.Use
inline-flex
to create an inline flex container that flows with text.Use
w-5
to set an element to a fixed width(1.25rem).Use
h-5
to set an element to a fixed height(1.25rem).Control the background color of an element to blue-300 using the
bg-blue-300
utilities.Control the background color of an element to red-500 using the
bg-red-500
utilities.Control the background color of an element to pink-600 using the
bg-pink-600
utilities.Use
hidden
to set an element to display: none and remove it from the page layout.Use
inline
utilities to put the element on its own line and fill its parent at only large screen sizes.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 Responsive Coming Soon components, learn and follow along to implement your own components.