Published on

6 Critical Skills To Make A Instagram Clone With Tailwind CSS Remarkably Well

Tags
Instagram Clone

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 Instagram Clone ui component

Instagram clone using tailwindcss

Why use Tailwind CSS to make a Instagram Clone ui component?

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

The preview of Instagram Clone ui component

Free download of the Instagram Clone's source code

The source code of Instagram Clone ui component

<div class="insta-clone">
    <nav class="bg-white shadow px-48 border-b border-gray-400">
      <div class="max-w-7xl mx-auto px-2 sm:px-4 lg:px-8">
        <div class="flex justify-between h-16">
          <div class="flex px-2 lg:px-0">
            <div class="flex-shrink-0 flex items-center">
              <img
                class="block lg:hidden h-8 w-auto"
                src="https://www.instagram.com/static/images/web/mobile_nav_type_logo.png/735145cfe0a4.png"
                alt="Workflow logo"
              />
              <img
                class="hidden lg:block h-8 w-auto"
                src="https://www.instagram.com/static/images/web/mobile_nav_type_logo.png/735145cfe0a4.png"
                alt="Workflow logo"
              />
            </div>
          </div>
          <div class="flex-1 flex items-center justify-center px-2 lg:ml-12">
            <div class="max-w-lg w-full lg:max-w-xs">
              <label for="search" class="sr-only">Search</label>
              <div class="relative">
                <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                  <svg class="h-5 w-5 text-gray-500" fill="currentColor" viewBox="0 0 20 20">
                    <path
                      fill-rule="evenodd"
                      d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z"
                      clip-rule="evenodd"
                    />
                  </svg>
                </div>
                <input
                  id="search"
                  class="block w-full pl-10 pr-3 py-2 border border-gray-400 rounded-md leading-5 bg-gray-100 placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 focus:border-blue-300 focus:shadow-outline-blue sm:text-sm transition duration-150 ease-in-out"
                  placeholder="Search"
                  type="search"
                />
              </div>
            </div>
          </div>
          <div class="flex items-center lg:hidden">
            <!-- Mobile menu button -->
            <button
              class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out"
              aria-label="Main menu"
              aria-expanded="false"
            >
              <!-- Icon when menu is closed. -->
              <!-- Menu open: "hidden", Menu closed: "block" -->
              <svg class="block h-6 w-6" stroke="currentColor" fill="none" viewBox="0 0 24 24">
                <path
                  stroke-linecap="round"
                  stroke-linejoin="round"
                  stroke-width="2"
                  d="M4 6h16M4 12h16M4 18h16"
                />
              </svg>
              <!-- Icon when menu is open. -->
              <!-- Menu open: "block", Menu closed: "hidden" -->
              <svg class="hidden h-6 w-6" stroke="currentColor" fill="none" viewBox="0 0 24 24">
                <path
                  stroke-linecap="round"
                  stroke-linejoin="round"
                  stroke-width="2"
                  d="M6 18L18 6M6 6l12 12"
                />
              </svg>
            </button>
          </div>
          <!-- icons-->
          <div class="lg:ml-4 lg:flex lg:items-center">
            <button
              class="flex-shrink-0 p-1 border-transparent text-gray-700 rounded-full hover:text-gray-600 focus:outline-none focus:text-gray-600 transition duration-150 ease-in-out"
              aria-label="Notifications"
            >
              <svg
                class="h-6 w-6"
                fill="none"
                stroke-linecap="round"
                stroke-linejoin="round"
                stroke-width="1.5"
                stroke="currentColor"
                viewBox="0 0 24 24"
              >
                <path
                  d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"
                />
              </svg>
            </button>

            <button
              class="flex-shrink-0 p-1 border-transparent text-gray-700 rounded-full hover:text-gray-600 focus:outline-none focus:text-gray-600 transition duration-150 ease-in-out"
              aria-label="Notifications"
            >
              <svg
                class="h-6 w-6"
                fill="none"
                stroke-linecap="round"
                stroke-linejoin="round"
                stroke-width="1.5"
                stroke="currentColor"
                viewBox="0 0 24 24"
              >
                <path
                  d="M16 15v-1a4 4 0 00-4-4H8m0 0l3 3m-3-3l3-3m9 14V5a2 2 0 00-2-2H6a2 2 0 00-2 2v16l4-2 4 2 4-2 4 2z"
                />
              </svg>
            </button>

            <button
              class="flex-shrink-0 p-1 border-transparent text-gray-700 rounded-full hover:text-gray-600 focus:outline-none focus:text-gray-600 transition duration-150 ease-in-out"
              aria-label="Notifications"
            >
              <svg
                class="h-6 w-6"
                fill="none"
                stroke-linecap="round"
                stroke-linejoin="round"
                stroke-width="1.5"
                stroke="currentColor"
                viewBox="0 0 24 24"
              >
                <path
                  d="M18.364 5.636l-3.536 3.536m0 5.656l3.536 3.536M9.172 9.172L5.636 5.636m3.536 9.192l-3.536 3.536M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-5 0a4 4 0 11-8 0 4 4 0 018 0z"
                />
              </svg>
            </button>

            <button
              class="flex-shrink-0 p-1 border-transparent text-gray-700 rounded-full hover:text-gray-600 focus:outline-none focus:text-gray-600 transition duration-150 ease-in-out"
              aria-label="Notifications"
            >
              <svg
                class="h-6 w-6"
                fill="none"
                stroke-linecap="round"
                stroke-linejoin="round"
                stroke-width="1.5"
                stroke="currentColor"
                viewBox="0 0 24 24"
              >
                <path
                  d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"
                />
              </svg>
            </button>

            <!-- Profile dropdown -->
            <div class="ml-4 relative flex-shrink-0">
              <div>
                <button
                  class="flex rounded-full border-gray-700 transition duration-150 ease-in-out"
                  id="user-menu"
                  aria-label="User menu"
                  aria-haspopup="true"
                >
                  <img
                    class="h-8 w-8 rounded-full"
                    src="https://scontent-muc2-1.cdninstagram.com/v/t51.2885-19/s150x150/58468664_291773768419326_7460980271920185344_n.jpg?_nc_ht=scontent-muc2-1.cdninstagram.com&amp;_nc_ohc=16Or2MWYINEAX9vLBW0&amp;oh=ada3818c35cb64180cf431d820d9dabe&amp;oe=5EF26035"
                    alt
                  />
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </nav>

    <!--body start-->
    <!--profile data-->
    <div class="bg-gray-100 h-auto px-48">
      <div class="flex md:flex-row-reverse flex-wrap">
        <div class="w-full md:w-3/4 p-4 text-center">
          <div class="text-left pl-4 pt-3">
            <span class="text-base text-gray-700 text-2xl mr-2">HiraveSonali</span>
            <span class="text-base font-semibold text-gray-700 mr-2">
              <button
                class="bg-transparent hover:bg-blue-500 text-gray-700 font-semibold hover:text-white py-2 px-4 border border-gray-600 hover:border-transparent rounded"
              >Edit Profile</button>
            </span>
            <span class="text-base font-semibold text-gray-700">
              <button
                class="p-1 border-transparent text-gray-700 rounded-full hover:text-blue-600 focus:outline-none focus:text-gray-600"
                aria-label="Notifications"
              >
                <svg
                  class="h-8 w-8"
                  fill="none"
                  stroke-linecap="round"
                  stroke-linejoin="round"
                  stroke-width="1.5"
                  stroke="currentColor"
                  viewBox="0 0 24 24"
                >
                  <path
                    d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"
                  />
                  <path d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
                </svg>
              </button>
            </span>
          </div>

          <div class="text-left pl-4 pt-3">
            <span class="text-base font-semibold text-gray-700 mr-2">
              <b>220</b> posts
            </span>
            <span class="text-base font-semibold text-gray-700 mr-2">
              <b>114</b> followers
            </span>
            <span class="text-base font-semibold text-gray-700">
              <b>200</b> following
            </span>
          </div>

          <div class="text-left pl-4 pt-3">
            <span class="text-lg font-bold text-gray-700 mr-2">Sonali Hirave</span>
          </div>

          <div class="text-left pl-4 pt-3">
            <p
              class="text-base font-medium text-blue-700 mr-2"
            >#graphicsdesigner #traveller #reader #blogger #digitalmarketer</p>
            <p
              class="text-base font-medium text-gray-700 mr-2"
            >https://www.behance.net/hiravesona7855</p>
          </div>
        </div>

        <div class="w-full md:w-1/4 p-4 text-center">
          <div class="w-full relative md:w-3/4 text-center mt-8">
            <button
              class="flex rounded-full"
              id="user-menu"
              aria-label="User menu"
              aria-haspopup="true"
            >
              <img
                class="h-40 w-40 rounded-full"
                src="https://scontent-muc2-1.cdninstagram.com/v/t51.2885-19/s150x150/58468664_291773768419326_7460980271920185344_n.jpg?_nc_ht=scontent-muc2-1.cdninstagram.com&amp;_nc_ohc=16Or2MWYINEAX9vLBW0&amp;oh=ada3818c35cb64180cf431d820d9dabe&amp;oe=5EF26035"
                alt
              />
            </button>
          </div>
        </div>
      </div>

      <!--status show icon-->

      <div class="inline-flex ml-36 mt-16">
        <div class="flex-1 text-center px-4 py-2 m-2">
          <div
            class="relative shadow-xl mx-auto h-24 w-24 -my-12 border-white rounded-full overflow-hidden border-4"
          >
            <img
              class="object-cover w-full h-full"
              src="https://images.unsplash.com/photo-1502164980785-f8aa41d53611?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=967&q=80"
            />
          </div>
          <h1 class="pt-16 text-base font-semibold text-gray-900">Fun</h1>
        </div>

        <div class="flex-1 text-center px-4 py-2 m-2">
          <div
            class="relative shadow-xl mx-auto h-24 w-24 -my-12 border-white rounded-full overflow-hidden border-4"
          >
            <img
              class="object-cover w-full h-full"
              src="https://images.unsplash.com/photo-1456415333674-42b11b9f5b7b?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=967&q=80"
            />
          </div>
          <h1 class="pt-16 text-base font-semibold text-gray-900">Travel</h1>
        </div>

        <div class="flex-1 text-center px-4 py-2 m-2">
          <div
            class="relative shadow-xl mx-auto h-24 w-24 -my-12 border-white rounded-full overflow-hidden border-4"
          >
            <img
              class="object-cover w-full h-full"
              src="https://images.unsplash.com/photo-1494972308805-463bc619d34e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1052&q=80"
            />
          </div>
          <h1 class="pt-16 text-base font-semibold text-gray-900">Food</h1>
        </div>

        <div class="flex-1 text-center px-4 py-2 m-2">
          <div
            class="relative shadow-xl mx-auto h-24 w-24 -my-12 border-white rounded-full overflow-hidden border-4"
          >
            <img
              class="object-cover w-full h-full"
              src="https://images.unsplash.com/photo-1516834474-48c0abc2a902?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1053&q=80"
            />
          </div>
          <h1 class="pt-16 text-base font-semibold text-gray-900">Sketch</h1>
        </div>

        <div class="flex-1 text-center px-4 py-2 m-2">
          <div
            class="relative shadow-xl mx-auto h-24 w-24 -my-12 border-white rounded-full overflow-hidden border-4"
          >
            <img
              class="object-cover w-full h-full"
              src="https://images.unsplash.com/photo-1444021465936-c6ca81d39b84?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80"
            />
          </div>
          <h1 class="pt-16 text-base font-semibold text-gray-900">My Work</h1>
        </div>
      </div>

      <hr class="border-gray-500 mt-6" />
      <hr class="border-gray-500 w-20 border-t-1 ml-64 border-gray-800" />

      <!--post icon and title-->
      <div class="flex flex-row mt-4 justify-center mr-16">
        <div class="flex text-gray-700 text-center py-2 m-2 pr-5">
          <div class="flex inline-flex">
            <button
              class="border-transparent text-gray-800 rounded-full hover:text-blue-600 focus:outline-none focus:text-gray-600"
              aria-label="Notifications"
            >
              <svg
                class="h-6 w-6"
                fill="none"
                stroke-linecap="round"
                stroke-linejoin="round"
                stroke-width="2"
                stroke="currentColor"
                viewBox="0 0 24 24"
              >
                <path
                  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"
                />
              </svg>
            </button>
          </div>
          <div class="flex inline-flex ml-2 mt-1">
            <h3 class="text-sm font-bold text-gray-800 mr-2">POSTS</h3>
          </div>
        </div>

        <div class="flex text-gray-700 text-center py-2 m-2 pr-5">
          <div class="flex inline-flex">
            <button
              class="border-transparent text-gray-600 rounded-full hover:text-blue-600 focus:outline-none focus:text-gray-600"
              aria-label="Notifications"
            >
              <svg
                class="h-6 w-6"
                fill="none"
                stroke-linecap="round"
                stroke-linejoin="round"
                stroke-width="2"
                stroke="currentColor"
                viewBox="0 0 24 24"
              >
                <path
                  d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"
                />
              </svg>
            </button>
          </div>
          <div class="flex inline-flex ml-2 mt-1">
            <h3 class="text-sm font-medium text-gray-700 mr-2">IGTV</h3>
          </div>
        </div>

        <div class="flex text-gray-700 text-center py-2 m-2 pr-5">
          <div class="flex inline-flex">
            <button
              class="border-transparent text-gray-600 rounded-full hover:text-blue-600 focus:outline-none focus:text-gray-600"
              aria-label="Notifications"
            >
              <svg
                class="h-6 w-6"
                fill="none"
                stroke-linecap="round"
                stroke-linejoin="round"
                stroke-width="2"
                stroke="currentColor"
                viewBox="0 0 24 24"
              >
                <path d="M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z" />
              </svg>
            </button>
          </div>
          <div class="flex inline-flex ml-2 mt-1">
            <h3 class="text-sm font-medium text-gray-700 mr-2">SAVED</h3>
          </div>
        </div>

        <div class="flex text-gray-700 text-center py-2 m-2 pr-5">
          <div class="flex inline-flex">
            <button
              class="border-transparent text-gray-600 rounded-full hover:text-blue-600 focus:outline-none focus:text-gray-600"
              aria-label="Notifications"
            >
              <svg
                class="h-6 w-6"
                fill="none"
                stroke-linecap="round"
                stroke-linejoin="round"
                stroke-width="2"
                stroke="currentColor"
                viewBox="0 0 24 24"
              >
                <path
                  d="M18 9v3m0 0v3m0-3h3m-3 0h-3m-2-5a4 4 0 11-8 0 4 4 0 018 0zM3 20a6 6 0 0112 0v1H3v-1z"
                />
              </svg>
            </button>
          </div>
          <div class="flex inline-flex ml-2 mt-1">
            <h3 class="text-sm font-medium text-gray-700 mr-2">TAGGED</h3>
          </div>
        </div>
      </div>

      <!--post images-->

      <div class="flex pt-4">
        <div class="flex-1 text-center px-4 py-2 m-2">
          <img
            class="w-full"
            src="https://images.unsplash.com/photo-1487530811176-3780de880c2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80"
          />
        </div>
        <div class="flex-1 text-center px-4 py-2 m-2">
          <img
            class="w-full"
            src="https://images.unsplash.com/photo-1487530811176-3780de880c2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80"
          />
        </div>
        <div class="flex-1 text-center px-4 py-2 m-2">
          <img
            class="w-full"
            src="https://images.unsplash.com/photo-1487530811176-3780de880c2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80"
          />
        </div>
      </div>

      <div class="flex pt-4">
        <div class="flex-1 text-center px-4 py-2 m-2">
          <img
            class="w-full"
            src="https://images.unsplash.com/photo-1487530811176-3780de880c2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80"
          />
        </div>
        <div class="flex-1 text-center px-4 py-2 m-2">
          <img
            class="w-full"
            src="https://images.unsplash.com/photo-1487530811176-3780de880c2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80"
          />
        </div>
        <div class="flex-1 text-center px-4 py-2 m-2">
          <img
            class="w-full"
            src="https://images.unsplash.com/photo-1487530811176-3780de880c2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80"
          />
        </div>
      </div>

      <div class="flex pt-4">
        <div class="flex-1 text-center px-4 py-2 m-2">
          <img
            class="w-full"
            src="https://images.unsplash.com/photo-1487530811176-3780de880c2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80"
          />
        </div>
        <div class="flex-1 text-center px-4 py-2 m-2">
          <img
            class="w-full"
            src="https://images.unsplash.com/photo-1487530811176-3780de880c2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80"
          />
        </div>
        <div class="flex-1 text-center px-4 py-2 m-2">
          <img
            class="w-full"
            src="https://images.unsplash.com/photo-1487530811176-3780de880c2d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80"
          />
        </div>
      </div>
    </div>
  </div>

How to make a Instagram Clone with Tailwind CSS?

Install tailwind css of verion 1.4.6

Use the link html tag to import the stylesheet of Tailwind CSS of the version 1.4.6

<link href=https://unpkg.com/[email protected]/dist/tailwind.min.css rel="stylesheet">

All the unility class needed to make a Instagram Clone component

  • bg-white
  • px-48
  • border-b
  • border-gray-400
  • max-w-7xl
  • mx-auto
  • px-2
  • sm:px-4
  • lg:px-8
  • flex
  • h-16
  • lg:px-0
  • flex-shrink-0
  • block
  • lg:hidden
  • h-8
  • w-auto
  • hidden
  • lg:block
  • flex-1
  • lg:ml-12
  • max-w-lg
  • w-full
  • lg:max-w-xs
  • relative
  • absolute
  • left-0
  • pl-3
  • h-5
  • w-5
  • text-gray-500
  • pl-10
  • pr-3
  • py-2
  • bg-gray-100
  • focus:border-blue-300
  • sm:text-sm
  • inline-flex
  • p-2
  • text-gray-400
  • hover:text-gray-500
  • hover:bg-gray-100
  • focus:bg-gray-100
  • focus:text-gray-500
  • h-6
  • w-6
  • lg:ml-4
  • lg:flex
  • p-1
  • border-transparent
  • text-gray-700
  • hover:text-gray-600
  • focus:text-gray-600
  • ml-4
  • border-gray-700
  • w-8
  • h-auto
  • md:flex-row-reverse
  • flex-wrap
  • md:w-3/4
  • p-4
  • text-center
  • text-left
  • pl-4
  • pt-3
  • text-base
  • text-2xl
  • mr-2
  • bg-transparent
  • hover:bg-blue-500
  • hover:text-white
  • px-4
  • border-gray-600
  • hover:border-transparent
  • hover:text-blue-600
  • text-lg
  • text-blue-700
  • md:w-1/4
  • mt-8
  • h-40
  • w-40
  • ml-36
  • mt-16
  • m-2
  • h-24
  • w-24
  • -my-12
  • border-white
  • overflow-hidden
  • border-4
  • h-full
  • pt-16
  • text-gray-900
  • border-gray-500
  • mt-6
  • w-20
  • border-t-1
  • ml-64
  • border-gray-800
  • flex-row
  • mt-4
  • mr-16
  • pr-5
  • text-gray-800
  • ml-2
  • mt-1
  • text-sm
  • text-gray-600
  • pt-4

109 steps to make a Instagram Clone component with Tailwind CSS

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

  2. Control the horizontal padding of an element to 12rem using the px-48 utilities.

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

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

  5. Set the maximum width/height of an element using the max-w-7xl utilities.

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

  7. Control the horizontal padding of an element to 0.5rem using the px-2 utilities.

  8. Control the horizontal padding of an element to 1rem at only small screen sizes using the sm:px-4 utilities.

  9. Control the horizontal padding of an element to 2rem at only large screen sizes using the lg:px-8 utilities.

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

  11. Use h-16 to set an element to a fixed height(4rem).

  12. Control the horizontal padding of an element to 0rem at only large screen sizes using the lg:px-0 utilities.

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

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

  15. Use hidden to set an element to display: none and remove it from the page layout at only large screen sizes.

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

  17. The w-auto utility can be useful if you need to remove an element’s assigned width under a specific condition, like at a particular breakpoint.

  18. Use hidden to set an element to display: none and remove it from the page layout.

  19. Use inline utilities to put the element on its own line and fill its parent at only large screen sizes.

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

  21. Control the margin on left side of an element to 3rem at only large screen sizes using the lg:ml-12 utilities.

  22. Set the maximum width/height of an element using the max-w-lg utilities.

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

  24. Set the maximum width/height of an element using the lg:max-w-xs utilities at only large screen sizes.

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

  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 left-0 utilities to set the left position of a positioned element to 0rem.

  28. Set the left padding of an element to 0.75rem using the pl-3 utilities class

  29. Use h-5 to set an element to a fixed height(1.25rem).

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

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

  32. Set the left padding of an element to 2.5rem using the pl-10 utilities class

  33. Control the padding on right side of an element to 0.75rem using the pr-3 utilities.

  34. Control the vertical padding of an element to 0.5rem using the py-2 utilities.

  35. Control the background color of an element to gray-100 using the bg-gray-100 utilities.

  36. Control the border color of an element to blue-300 using the focus:border-blue-300 utilities on focus.

  37. Control the text color of an element to sm at only small screen sizes using the sm:text-sm utilities.

  38. Use inline-flex to create an inline flex container that flows with text.

  39. Control the padding on all sides of an element to 0.5rem using the p-2 utilities.

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

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

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

  43. Control the background color of an element to gray-100 using the focus:bg-gray-100 utilities on focus.

  44. Control the text color of an element to gray-500 on focus using the focus:text-gray-500 utilities.

  45. Use h-6 to set an element to a fixed height(1.5rem).

  46. Use w-6 to set an element to a fixed width(1.5rem).

  47. Control the margin on left side of an element to 1rem at only large screen sizes using the lg:ml-4 utilities.

  48. Use flex to create a block-level flex container at only large screen sizes.

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

  50. Control the border color of an element to transparent using the border-transparent utilities.

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

  52. Control the text color of an element to gray-600 on hover using the hover:text-gray-600 utilities.

  53. Control the text color of an element to gray-600 on focus using the focus:text-gray-600 utilities.

  54. Control the margin on left side of an element to 1rem using the ml-4 utilities.

  55. Control the border color of an element to gray-700 using the border-gray-700 utilities.

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

  57. Use h-auto to set an element to a fixed height(auto).

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

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

  60. Use md:w-3/4 to set an element to a fixed width(3/4) at only medium screen sizes.

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

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

  63. Control the text color of an element to left using the text-left utilities.

  64. Set the left padding of an element to 1rem using the pl-4 utilities class

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

  66. Control the text color of an element to base using the text-base utilities.

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

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

  69. Control the background color of an element to transparent using the bg-transparent utilities.

  70. Control the background color of an element to blue-500 using the hover:bg-blue-500 utilities on hover.

  71. Control the text color of an element to white on hover using the hover:text-white utilities.

  72. Control the horizontal padding of an element to 1rem using the px-4 utilities.

  73. Control the border color of an element to gray-600 using the border-gray-600 utilities.

  74. Control the border color of an element to transparent using the hover:border-transparent utilities on hover.

  75. Control the text color of an element to blue-600 on hover using the hover:text-blue-600 utilities.

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

  77. Control the text color of an element to blue-700 using the text-blue-700 utilities.

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

  79. Control the margin on top side of an element to 2rem using the mt-8 utilities.

  80. Use h-40 to set an element to a fixed height(10rem).

  81. Use w-40 to set an element to a fixed width(10rem).

  82. Control the margin on left side of an element to 9rem using the ml-36 utilities.

  83. Control the margin on top side of an element to 4rem using the mt-16 utilities.

  84. Control the margin on all sides of an element to 0.5rem using the m-2 utilities.

  85. Use h-24 to set an element to a fixed height(6rem).

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

  87. Control the vertical margin of an element to -3rem using the -my-12 utilities.

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

  89. Use overflow-hidden to clip any content within an element that overflows the bounds of that element.

  90. Control the border color of an element to 1rem using the border-4 utilities.

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

  92. Control the padding on top side of an element to 4rem using the pt-16 utilities.

  93. Control the text color of an element to gray-900 using the text-gray-900 utilities.

  94. Control the border color of an element to gray-500 using the border-gray-500 utilities.

  95. Control the margin on top side of an element to 1.5rem using the mt-6 utilities.

  96. Use w-20 to set an element to a fixed width(5rem).

  97. Control the border color of an element to t-1 using the border-t-1 utilities.

  98. Control the margin on left side of an element to 16rem using the ml-64 utilities.

  99. Control the border color of an element to gray-800 using the border-gray-800 utilities.

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

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

  102. Control the margin on right side of an element to 4rem using the mr-16 utilities.

  103. Control the padding on right side of an element to 1.25rem using the pr-5 utilities.

  104. Control the text color of an element to gray-800 using the text-gray-800 utilities.

  105. Control the margin on left side of an element to 0.5rem using the ml-2 utilities.

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

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

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

  109. Control the padding on top side of an element to 1rem using the pt-4 utilities.

Conclusion

The above is a step-by-step tutorial on how to use Tailwind CSS to make a Instagram Clone components, learn and follow along to implement your own components.