Published on

Here Are 6 Ways To Make A Social Media Landing Page With Tailwind CSS

Tags
Social Media Landing Page

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 Social Media Landing Page ui component

This example working v3 and above

Why use Tailwind CSS to build a Social Media Landing Page ui component?

  • It can make the building process of Social Media Landing Page ui component faster and more easily.
  • Enables building complex responsive layouts and components freely.
  • Minimum lines of CSS code in Social Media Landing Page component file.

The preview of Social Media Landing Page ui component

Free download of the Social Media Landing Page's source code

The source code of Social Media Landing Page ui component

<!-- MDI Icons -->
<link rel="stylesheet" href="https://cdn.materialdesignicons.com/6.5.95/css/materialdesignicons.min.css">

<style>
    .red-dot {
        height: 10px;
        width: 10px;
    }

    .red-dot-count {
        font-size: 8px;
        right: -11px;
        top: -5px;
    }

    .story-ring {
        padding: 2px;
    }

    .story-text {
        font-size: 13px;
    }

    .post-container {
        height: 650px !important;
        overflow: hidden;
        padding-right: 10px;
    }

    .post-container:hover {
        overflow: auto;
        padding-right: 0px;
    }

    .post-container::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    .post-container::-webkit-scrollbar-track {
        border-radius: 100vh;
        background: #edf2f7;
    }

    .post-container::-webkit-scrollbar-thumb {
        background: #cbd5e0;
        border-radius: 100vh;
        border: 3px solid #edf2f7;
    }

    .post-container::-webkit-scrollbar-thumb:hover {
        background: #a0aec0;
    }
</style>

<!-- Page Container -->
<div class="flex items-center justify-center min-h-screen from-yellow-50 via-teal-300 to-yellow-50 bg-gradient-to-br">
    <div class="flex flex-col">
        <span class="text-center font-bold my-10">
            MDI (npm i @mdi/font) reuqired for all icons

            <hr class="my-4">

            <a href="https://egoistdeveloper.github.io/twcss-to-sass-playground/" target="_blank" class="text-blue-600">
                Convetert to SASS
            </a>
        </span>

        <div class="w-full max-w-md px-7 py-10 mx-auto bg-white rounded-2xl shadow-xl">
            <div class='max-w-md mx-auto space-y-6'>
                <div class="flex flex-col relative">
                    <!-- App Header -->
                    <div class="flex mb-5 border-b pb-5 border-gray-100">
                        <div class="flex-1">
                            <!-- Logo -->
                            <img
                                src="//upload.wikimedia.org/wikipedia/commons/thumb/2/2a/Instagram_logo.svg/800px-Instagram_logo.svg.png">
                        </div>

                        <div class="flex-1 w-64"></div>

                        <!-- Notification Area -->
                        <div class="flex-1 w-full">
                            <div class="grid grid-cols-12 gap-4">
                                <div class="col-end-7">
                                    <div class="relative flex space-x-5 place-items-end">
                                        <!-- Notifications Button -->
                                        <div class="relative">
                                            <!-- Red Dot -->
                                            <div
                                                class="red-dot p-1 absolute right-0 bg-red-400 rounded-full cursor-pointer">
                                            </div>
                                            <button class="p-1 border border-gray-200 rounded-full 
                                                hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-200
                                                transition-all duration-150 delay-100">
                                                <i class="mdi mdi-bell-outline mdi-18px mx-1 text-gray-500"></i>
                                            </button>
                                        </div>

                                        <!-- Messages Button -->
                                        <div class="relative">
                                            <!-- Red Dot With Counts -->
                                            <div
                                                class="red-dot-count p-1 absolute right-0 bg-red-400 rounded-full text-white  cursor-pointer">
                                                99+
                                            </div>
                                            <button class="p-1 border border-gray-200 rounded-full
                                                hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-200
                                                transition-all duration-150 delay-100">
                                                <i
                                                    class="mdi mdi-message-reply-outline mdi-18px mx-1 text-gray-500"></i>
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Story Bar Section -->
                    <div class="flex mb-5 border-b pb-5 border-gray-100">
                        <!-- Story Bar -->
                        <ul class="flex items-center justify-center space-x-2">
                            <!-- Add Story -->
                            <li class="flex flex-col items-center space-y-2">
                                <!-- Ring -->
                                <div class="story-ring flex justify-center items-center
                                    bg-gradient-to-tl from-yellow-200 to-orange-500 
                                    rounded-full relative cursor-pointer
                                    hover:from-orange-300 hover:to-red-400
                                    transition-all duration-150 delay-100">
                                    <a class="block bg-white p-1 rounded-full" href="#">
                                        <!-- Thumbnail -->
                                        <img class="w-16 rounded-full"
                                            src="https://images.unsplash.com/photo-1638687110777-b3fcdf2f9c57?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=200&h=200&q=80">
                                    </a>

                                    <button class="absolute transition duration-500 bg-white border-gray-400 
                                        h-8 w-8 rounded-full text-white border-2 
                                        border-white flex justify-center items-center opacity-80
                                        hover:opacity-60">
                                    </button>

                                    <i class="absolute mdi mdi-plus mdi-18px mx-1 text-gray-500"></i>
                                </div>

                                <!-- Story Text -->
                                <span class="story-text font-medium">
                                    You
                                </span>
                            </li>

                            <!-- Story #1 -->
                            <li class="flex flex-col items-center space-y-2">
                                <!-- Ring -->
                                <div class="story-ring flex justify-center items-center
                                    bg-gradient-to-tl from-yellow-200 to-orange-500 
                                    rounded-full relative cursor-pointer
                                    hover:from-orange-300 hover:to-red-400
                                    transition-all duration-150 delay-100">
                                    <a class="block bg-white p-1 rounded-full" href="#">
                                        <!-- Thumbnail -->
                                        <img class="w-16 rounded-full"
                                            src="https://images.unsplash.com/photo-1638649602320-450b717fa622?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=200&h=200&q=80">
                                    </a>
                                </div>

                                <!-- Story Text -->
                                <span class="story-text">
                                    jett
                                </span>
                            </li>

                            <!-- Story #2 -->
                            <li class="flex flex-col items-center space-y-2">
                                <!-- Ring -->
                                <div class="story-ring flex justify-center items-center
                                    bg-gradient-to-tl from-yellow-200 to-orange-500 
                                    rounded-full relative cursor-pointer
                                    hover:from-orange-300 hover:to-red-400
                                    transition-all duration-150 delay-100">
                                    <a class="block bg-white p-1 rounded-full" href="#">
                                        <!-- Thumbnail -->
                                        <img class="w-16 rounded-full"
                                            src="https://images.unsplash.com/photo-1638708644743-2502f38000a0?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=200&h=200&q=80">
                                    </a>
                                </div>

                                <!-- Story Text -->
                                <span class="story-text">
                                    sky
                                </span>
                            </li>

                            <!-- Story #3 -->
                            <li class="flex flex-col items-center space-y-2">
                                <!-- Ring -->
                                <div class="story-ring flex justify-center items-center
                                    bg-gradient-to-tl from-yellow-200 to-orange-500 
                                    rounded-full relative cursor-pointer
                                    hover:from-orange-300 hover:to-red-400
                                    transition-all duration-150 delay-100">
                                    <a class="block bg-white p-1 rounded-full" href="#">
                                        <!-- Thumbnail -->
                                        <img class="w-16 rounded-full"
                                            src="https://images.unsplash.com/photo-1638691899851-0e955bceba1f?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=200&h=200&q=80">
                                    </a>
                                </div>

                                <!-- Story Text -->
                                <span class="story-text">
                                    omen
                                </span>
                            </li>

                            <!-- Story #4 -->
                            <li class="flex flex-col items-center space-y-2">
                                <!-- Ring -->
                                <div class="story-ring flex justify-center items-center
                                    bg-gradient-to-tl from-yellow-200 to-orange-500 
                                    rounded-full relative cursor-pointer
                                    hover:from-orange-300 hover:to-red-400
                                    transition-all duration-150 delay-100 
                                    hover:animate-pulse">
                                    <a class="block bg-white p-1 rounded-full" href="#">
                                        <img class="w-16 rounded-full"
                                            src="https://images.unsplash.com/photo-1638612913771-8f00622b96fb?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=200&h=200&q=80">
                                    </a>
                                </div>

                                <!-- Story Text -->
                                <span class="story-text">
                                    sage
                                </span>
                            </li>
                        </ul>
                    </div>

                    <!-- Post Section -->
                    <div class="post-container flex flex-col flex-grow h-full">
                        <!-- Post -->
                        <div class="story-ring flex justify-center items-center
                            relative cursor-pointer mb-6
                            transition-all duration-150 delay-100">

                            <!-- Post Item -->
                            <img class="h-full w-full rounded-3xl"
                                src="https://images.unsplash.com/photo-1500462918059-b1a0cb512f1d?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=774&q=80">

                            <!-- Post Owner -->
                            <div class="left-4 top-4 absolute backdrop-blur-lg rounded-xl border border-gray-300">
                                <a href="#" class="flex p-1.5 px-3">
                                    <img src="https://images.unsplash.com/photo-1638687110777-b3fcdf2f9c57?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=200&h=200&q=80"
                                        class="mr-2 w-8 h-8 rounded-full border border-gray-400">

                                    <div class="text-gray-600 font-bold text-sm text-gray-50 hover:underline mt-1">
                                        EgoistDeveloper
                                    </div>
                                </a>
                            </div>


                            <!-- Post Counts -->
                            <div class="flex mx-auto bottom-10 absolute backdrop-blur-md rounded-xl p-2
                                hover:backdrop-blur-xl transition-all duration-150 delay-100">
                                <div class="flex text-gray-600 font-light text-lg text-gray-50 mx-6">
                                    <i class="mdi mdi-heart-half-full mdi-24px text-gray-100 mr-2"></i>
                                    23K
                                </div>

                                <div class="flex text-gray-600 font-light text-lg text-gray-50">
                                    <i class="mdi mdi-comment-processing-outline mdi-24px text-gray-100 mr-2"></i>
                                    1.4K
                                </div>

                                <div class="text-gray-600 font-light text-lg text-gray-50 mx-4">
                                    <i class="mdi mdi-bookmark-outline mdi-24px mx-1 text-gray-100 mt-3"></i>
                                </div>
                            </div>
                        </div>

                        <!-- Post -->
                        <div class="story-ring flex justify-center items-center
                            relative cursor-pointer mb-6
                            transition-all duration-150 delay-100">

                            <!-- Post Item -->
                            <img class="h-full w-full rounded-3xl"
                                src="https://images.unsplash.com/photo-1621184455862-c163dfb30e0f?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=774&q=80">

                            <!-- Post Owner -->
                            <div class="left-4 top-4 absolute backdrop-blur-lg rounded-xl border border-gray-300">
                                <a href="#" class="flex p-1.5 px-3">
                                    <img src="https://images.unsplash.com/photo-1638687110777-b3fcdf2f9c57?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=200&h=200&q=80"
                                        class="mr-2 w-8 h-8 rounded-full border border-gray-400">

                                    <div class="text-gray-600 font-bold text-sm text-gray-50 hover:underline mt-1">
                                        EgoistDeveloper
                                    </div>
                                </a>
                            </div>

                            <!-- Post Counts -->
                            <div class="flex mx-auto bottom-10 absolute backdrop-blur-md rounded-xl p-2
                                hover:backdrop-blur-xl transition-all duration-150 delay-100">
                                <div class="flex text-gray-600 font-light text-lg text-gray-50 mx-6">
                                    <i class="mdi mdi-heart-half-full mdi-24px text-gray-100 mr-2"></i>
                                    23K
                                </div>

                                <div class="flex text-gray-600 font-light text-lg text-gray-50">
                                    <i class="mdi mdi-comment-processing-outline mdi-24px text-gray-100 mr-2"></i>
                                    1.4K
                                </div>

                                <div class="text-gray-600 font-light text-lg text-gray-50 mx-4">
                                    <i class="mdi mdi-bookmark-outline mdi-24px mx-1 text-gray-100 mt-3"></i>
                                </div>
                            </div>
                        </div>

                        <!-- Post -->
                        <div class="story-ring flex justify-center items-center
                            relative cursor-pointer mb-6
                            transition-all duration-150 delay-100">

                            <!-- Post Item -->
                            <img class="h-full w-full rounded-3xl"
                                src="https://images.unsplash.com/photo-1612405199572-aa74dfbad7d0?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=774&q=80">

                            <!-- Post Owner -->
                            <div class="left-4 top-4 absolute backdrop-blur-lg rounded-xl border border-gray-300">
                                <a href="#" class="flex p-1.5 px-3">
                                    <img src="https://images.unsplash.com/photo-1638687110777-b3fcdf2f9c57?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=200&h=200&q=80"
                                        class="mr-2 w-8 h-8 rounded-full border border-gray-400">

                                    <div class="text-gray-600 font-bold text-sm text-gray-50 hover:underline mt-1">
                                        EgoistDeveloper
                                    </div>
                                </a>
                            </div>

                            <!-- Post Counts -->
                            <div class="flex mx-auto bottom-10 absolute backdrop-blur-md rounded-xl p-2
                                hover:backdrop-blur-xl transition-all duration-150 delay-100">
                                <div class="flex text-gray-600 font-light text-lg text-gray-50 mx-6">
                                    <i class="mdi mdi-heart-half-full mdi-24px text-gray-100 mr-2"></i>
                                    23K
                                </div>

                                <div class="flex text-gray-600 font-light text-lg text-gray-50">
                                    <i class="mdi mdi-comment-processing-outline mdi-24px text-gray-100 mr-2"></i>
                                    1.4K
                                </div>

                                <div class="text-gray-600 font-light text-lg text-gray-50 mx-4">
                                    <i class="mdi mdi-bookmark-outline mdi-24px mx-1 text-gray-100 mt-3"></i>
                                </div>
                            </div>
                        </div>

                        <!-- Post -->
                        <div class="story-ring flex justify-center items-center
                            relative cursor-pointer mb-6
                            transition-all duration-150 delay-100">

                            <!-- Post Item -->
                            <img class="h-full w-full rounded-3xl"
                                src="https://images.unsplash.com/photo-1517442952015-85a8427cd6f9?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=768&q=80">

                            <!-- Post Owner -->
                            <div class="left-4 top-4 absolute backdrop-blur-lg rounded-xl border border-gray-300">
                                <a href="#" class="flex p-1.5 px-3">
                                    <img src="https://images.unsplash.com/photo-1638687110777-b3fcdf2f9c57?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=200&h=200&q=80"
                                        class="mr-2 w-8 h-8 rounded-full border border-gray-400">

                                    <div class="text-gray-600 font-bold text-sm text-gray-50 hover:underline mt-1">
                                        EgoistDeveloper
                                    </div>
                                </a>
                            </div>

                            <!-- Post Counts -->
                            <div class="flex mx-auto bottom-10 absolute backdrop-blur-md rounded-xl p-2
                                hover:backdrop-blur-xl transition-all duration-150 delay-100">
                                <div class="flex text-gray-600 font-light text-lg text-gray-50 mx-6">
                                    <i class="mdi mdi-heart-half-full mdi-24px text-gray-100 mr-2"></i>
                                    23K
                                </div>

                                <div class="flex text-gray-600 font-light text-lg text-gray-50">
                                    <i class="mdi mdi-comment-processing-outline mdi-24px text-gray-100 mr-2"></i>
                                    1.4K
                                </div>

                                <div class="text-gray-600 font-light text-lg text-gray-50 mx-4">
                                    <i class="mdi mdi-bookmark-outline mdi-24px mx-1 text-gray-100 mt-3"></i>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Navigation Bar -->
                    <div class="absolute -bottom-1 -left-2">
                        <div class="px-7 pt-3 bg-white shadow-lg rounded-2xl">
                            <div class="flex flex-row space-x-3">
                                <!-- Item #1 -->
                                <div class="flex group">
                                    <a href="#" class="p-3 text-gray-400 hover:text-yellow-500">
                                        <span class="flex flex-col items-center">
                                            <!-- Icon -->
                                            <i class="mdi mdi-home-outline mdi-24px mx-1 text-gray-500 group-hover:text-gray-700
                                            transition-color duration-200"></i>

                                            <!-- Text -->
                                            <span class="text-xs mb-2 transition-all duration-200">
                                                Home
                                            </span>

                                            <!-- Focus Dot -->
                                            <span class="h-2 w-2 rounded-full group-hover:bg-yellow-500
                                            transition-all duration-150 delay-100"></span>
                                        </span>
                                    </a>
                                </div>

                                <!-- Item #2 -->
                                <div class="flex group">
                                    <a href="#" class="p-3 text-gray-400 hover:text-yellow-500">
                                        <span class="flex flex-col items-center">
                                            <!-- Icon -->
                                            <i class="mdi mdi-compass-outline mdi-24px mx-1 text-gray-500 group-hover:text-gray-700
                                            transition-color duration-200"></i>

                                            <!-- Text -->
                                            <span class="text-xs mb-2 transition-all duration-200">
                                                Explore
                                            </span>

                                            <!-- Focus Dot -->
                                            <span class="h-2 w-2 rounded-full group-hover:bg-yellow-500
                                            transition-all duration-150 delay-100"></span>
                                        </span>
                                    </a>
                                </div>

                                <!-- Item #3 Active -->
                                <div class="flex group">
                                    <a href="#" class="p-3 text-yellow-500 hover:text-yellow-500">
                                        <span class="flex flex-col items-center">
                                            <!-- Icon -->
                                            <i class="mdi mdi-layers-outline mdi-24px mx-1 text-gray-700 group-hover:text-gray-700
                                            transition-color duration-200"></i>

                                            <!-- Text -->
                                            <span class="text-xs mb-2 transition-all duration-200">
                                                Feeds
                                            </span>

                                            <!-- Focus Dot -->
                                            <span class="h-1 w-5 rounded-full bg-yellow-500 group-hover:bg-yellow-500
                                            hover:h-3 hover:w-3 transition-all duration-150 delay-100"></span>
                                        </span>
                                    </a>
                                </div>

                                <!-- Item #4 -->
                                <div class="flex group">
                                    <a href="#" class="p-3 text-gray-400 hover:text-yellow-500">
                                        <span class="flex flex-col items-center">
                                            <!-- Icon -->
                                            <i class="mdi mdi-basket-plus-outline mdi-24px mx-1 text-gray-500 group-hover:text-gray-700
                                            transition-color duration-200"></i>

                                            <!-- Text -->
                                            <span class="text-xs mb-2 transition-all duration-200">
                                                Cart
                                            </span>

                                            <!-- Focus Dot -->
                                            <span class="h-2 w-2 rounded-full group-hover:bg-yellow-500
                                            transition-all duration-150 delay-100"></span>
                                        </span>
                                    </a>
                                </div>

                                <!-- Item #5 -->
                                <div class="flex group">
                                    <a href="#" class="p-3 text-gray-400 hover:text-yellow-500">
                                        <span class="flex flex-col items-center">
                                            <!-- Icon -->
                                            <i class="mdi mdi-account-circle-outline mdi-24px mx-1 text-gray-500 group-hover:text-gray-700
                                            transition-color duration-200"></i>

                                            <!-- Text -->
                                            <span class="text-xs mb-2 transition-all duration-200">
                                                Account
                                            </span>

                                            <!-- Focus Dot -->
                                            <span class="h-2 w-2 rounded-full group-hover:bg-yellow-500
                                            transition-all duration-150 delay-100"></span>
                                        </span>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

How to build a Social Media Landing Page with Tailwind CSS?

Install tailwind css of verion 3.0.18

Use the script html tag to import the script of Tailwind CSS of the version 3.0.18

<script src="https://cdn.tailwindcss.com"></script>

All the unility class needed to build a Social Media Landing Page component

  • flex
  • min-h-screen
  • bg-gradient-to-br
  • flex-col
  • text-center
  • my-10
  • my-4
  • text-blue-600
  • w-full
  • max-w-md
  • px-7
  • py-10
  • mx-auto
  • bg-white
  • relative
  • mb-5
  • border-b
  • pb-5
  • border-gray-100
  • flex-1
  • w-64
  • grid
  • grid-cols-12
  • gap-4
  • p-1
  • absolute
  • right-0
  • bg-red-400
  • border-gray-200
  • hover:bg-gray-50
  • mx-1
  • text-gray-500
  • text-white
  • bg-gradient-to-tl
  • block
  • w-16
  • border-gray-400
  • h-8
  • w-8
  • border-2
  • border-white
  • flex-grow
  • h-full
  • left-4
  • top-4
  • border-gray-300
  • p-1.5
  • px-3
  • mr-2
  • text-gray-600
  • text-sm
  • text-gray-50
  • mt-1
  • bottom-10
  • text-lg
  • mx-6
  • text-gray-100
  • mx-4
  • mt-3
  • -bottom-1
  • -left-2
  • pt-3
  • flex-row
  • p-3
  • text-gray-400
  • hover:text-yellow-500
  • text-xs
  • mb-2
  • h-2
  • w-2
  • text-yellow-500
  • text-gray-700
  • h-1
  • w-5
  • bg-yellow-500
  • hover:h-3
  • hover:w-3

77 steps to build a Social Media Landing Page component with Tailwind CSS

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

  2. Set the minimum width/height of an element using the min-h-screen utilities.

  3. Control the background color of an element to gradient-to-br using the bg-gradient-to-br utilities.

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

  5. Control the text color of an element to center using the text-center utilities.

  6. Control the vertical margin of an element to 2.5rem using the my-10 utilities.

  7. Control the vertical margin of an element to 1rem using the my-4 utilities.

  8. Control the text color of an element to blue-600 using the text-blue-600 utilities.

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

  10. Set the maximum width/height of an element using the max-w-md utilities.

  11. Control the horizontal padding of an element to 1.75rem using the px-7 utilities.

  12. Control the vertical padding of an element to 2.5rem using the py-10 utilities.

  13. Control the horizontal margin of an element to auto using the mx-auto utilities.

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

  15. Use relative to position an element according to the normal flow of the document.

  16. Control the margin on bottom side of an element to 1.25rem using the mb-5 utilities.

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

  18. Control the padding on bottom side of an element to 1.25rem using the pb-5 utilities.

  19. Control the border color of an element to gray-100 using the border-gray-100 utilities.

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

  21. Use w-64 to set an element to a fixed width(16rem).

  22. Use grid to create a grid container.

  23. Use grid to create a grid container.

  24. To specify the width between columns, you can use the gap-4 utilities.

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

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

  27. Use the right-0 utilities to set the right position of a positioned element to 0rem.

  28. Control the background color of an element to red-400 using the bg-red-400 utilities.

  29. Control the border color of an element to gray-200 using the border-gray-200 utilities.

  30. Control the background color of an element to gray-50 using the hover:bg-gray-50 utilities on hover.

  31. Control the horizontal margin of an element to 0.25rem using the mx-1 utilities.

  32. Control the text color of an element to gray-500 using the text-gray-500 utilities.

  33. Control the text color of an element to white using the text-white utilities.

  34. Control the background color of an element to gradient-to-tl using the bg-gradient-to-tl utilities.

  35. Use inline utilities to put the element on its own line and fill its parent.

  36. Use w-16 to set an element to a fixed width(4rem).

  37. Control the border color of an element to gray-400 using the border-gray-400 utilities.

  38. Use h-8 to set an element to a fixed height(2rem).

  39. Use w-8 to set an element to a fixed width(2rem).

  40. Control the border color of an element to 0.5rem using the border-2 utilities.

  41. Control the border color of an element to white using the border-white utilities.

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

  43. Use h-full to set an element’s height to 100% of its parent, as long as the parent has a defined height.

  44. Use the left-4 utilities to set the left position of a positioned element to 1rem.

  45. Use the top-4 utilities to set the top position of a positioned element to 1rem.

  46. Control the border color of an element to gray-300 using the border-gray-300 utilities.

  47. Control the padding on all sides of an element to 1.5 using the p-1.5 utilities.

  48. Control the horizontal padding of an element to 0.75rem using the px-3 utilities.

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

  50. Control the text color of an element to gray-600 using the text-gray-600 utilities.

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

  52. Control the text color of an element to gray-50 using the text-gray-50 utilities.

  53. Control the margin on top side of an element to 0.25rem using the mt-1 utilities.

  54. Use the bottom-10 utilities to set the bottom position of a positioned element to 2.5rem.

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

  56. Control the horizontal margin of an element to 1.5rem using the mx-6 utilities.

  57. Control the text color of an element to gray-100 using the text-gray-100 utilities.

  58. Control the horizontal margin of an element to 1rem using the mx-4 utilities.

  59. Control the margin on top side of an element to 0.75rem using the mt-3 utilities.

  60. Use the -bottom-1 utilities to set the bottom position of a positioned element to -0.25rem.

  61. Use the -left-2 utilities to set the left position of a positioned element to -0.5rem.

  62. Control the padding on top side of an element to 0.75rem using the pt-3 utilities.

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

  64. Control the padding on all sides of an element to 0.75rem using the p-3 utilities.

  65. Control the text color of an element to gray-400 using the text-gray-400 utilities.

  66. Control the text color of an element to yellow-500 on hover using the hover:text-yellow-500 utilities.

  67. Control the text color of an element to xs using the text-xs utilities.

  68. Control the margin on bottom side of an element to 0.5rem using the mb-2 utilities.

  69. Use h-2 to set an element to a fixed height(0.5rem).

  70. Use w-2 to set an element to a fixed width(0.5rem).

  71. Control the text color of an element to yellow-500 using the text-yellow-500 utilities.

  72. Control the text color of an element to gray-700 using the text-gray-700 utilities.

  73. Use h-1 to set an element to a fixed height(0.25rem).

  74. Use w-5 to set an element to a fixed width(1.25rem).

  75. Control the background color of an element to yellow-500 using the bg-yellow-500 utilities.

  76. Use hover:h-3 to set an element to a fixed height(0.75rem) on hover.

  77. Use hover:w-3 to set an element to a fixed width(0.75rem) on hover.

Conclusion

The above is a step-by-step tutorial on how to use Tailwind CSS to build a Social Media Landing Page components, learn and follow along to implement your own components.