Published on

The Ninja Guide To How To Create A Avatar UI Design With Tailwind CSS Better

Tags
Avatar UI design

Are you looking to create a stunning Avatar UI design for your website or application? Look no further than Tailwind CSS. In this article, we will explore the benefits of using Tailwind CSS and provide a step-by-step guide to creating an Avatar UI design.

What is Tailwind CSS?

Tailwind CSS is a utility-first CSS framework that allows developers to quickly and easily create custom designs without the need for writing complex CSS code. It provides a set of pre-defined classes that can be used to style HTML elements, making it easy to create responsive and visually appealing designs.

The description of Avatar UI design ui component

An Avatar UI design is a graphical representation of a user, typically used to identify the user in a social media or messaging application. It usually consists of an image or icon, along with the user's name or username.

Why use Tailwind CSS to create a Avatar UI design ui component?

Tailwind CSS provides a number of benefits when it comes to creating an Avatar UI design. Firstly, it allows for easy customization of the design through the use of pre-defined classes. This means that developers do not need to write complex CSS code to achieve the desired design.

Secondly, Tailwind CSS is highly responsive, meaning that the Avatar UI design will look great on all devices, regardless of screen size. This is particularly important in today's mobile-first world, where more and more users are accessing websites and applications on their mobile devices.

Finally, Tailwind CSS is lightweight and fast-loading, which means that the Avatar UI design will load quickly, improving the user experience and reducing bounce rates.

The preview of Avatar UI design ui component

To give you an idea of what an Avatar UI design created with Tailwind CSS looks like, check out the following preview:

Free download of the Avatar UI design's source code

The source code of Avatar UI design ui component

To create an Avatar UI design with Tailwind CSS, you will need to use HTML and CSS code. Here is an example of the source code that you can use to create the Avatar UI design:

<!-- Designer: Eleana Gkogka -->
<!-- Web Developer: Dilshod Fayzullayev[DreamCoder] -->
<style>
  body {
    font-family: 'Poppins', sans-serif;
  }

  .bg-my-color {
    background-color: #0e163b;
  }

  .text-my-color {
    color: #0e163b;
  }
</style>
<div class="flex h-screen w-full items-center justify-center rounded bg-pink-400">
  <div
    class="grid h-full w-96 grid-cols-1 rounded-sm bg-white text-center text-sm shadow-2xl md:h-4/5 md:w-full md:grid-cols-2 xl:w-4/5"
  >
    <!-- SVG ICON -->
    <div class="">
      <svg
        class="h-full w-full"
        xmlns="http://www.w3.org/2000/svg"
        data-name="Layer 1"
        viewBox="0 0 1144 637"
        xmlns:xlink="http://www.w3.org/1999/xlink"
      >
        <title>working remotely</title>
        <path
          d="M1172,547.81a180.56,180.56,0,0,1-26.12,93.88c0,34.62-16.14,66-42.32,88.87a144.74,144.74,0,0,1-21.08,15.28c-.3.19-.61.37-.92.55-.56.33-1.12.66-1.69,1l-.53.31h0c-2.39,1.35-4.83,2.65-7.32,3.87a165.67,165.67,0,0,1-73.76,17H245.17q-9,0-17.84-.72a211.15,211.15,0,0,1-61.06-14.14q-5.72-2.26-11.22-4.86-2.62-1.23-5.19-2.53c-1.07-.54-2.14-1.1-3.2-1.66A190.5,190.5,0,0,1,128,733.32a183.89,183.89,0,0,1-15.8-12.12C78.17,692,57.12,651.59,57.12,607A180.5,180.5,0,0,1,28,508.32c0-99.14,79.24-179.51,177-179.51,3,0,6,.09,9,.25.43,0,.85,0,1.28.06,16.48-28.09,38.51-53.9,65-76.62,72.24-61.9,177.82-100.92,295.43-100.92,98.82,0,189.15,27.55,258.34,73.07A174.18,174.18,0,0,1,920,202.1c97.74,0,177,80.37,177,179.51a184.9,184.9,0,0,1-1,18.78A180,180,0,0,1,1172,547.81Z"
          transform="translate(-28 -131.5)"
          fill="#24ffaf"
          opacity="0.1"
        />
        <path
          d="M938.69,405.47V394.74a39.05,39.05,0,1,0-29.38,0v10.73A55,55,0,0,0,883.77,421a55.08,55.08,0,0,0-31.08-22.52V387.74a39.05,39.05,0,1,0-29.38,0v10.73a55,55,0,0,0-23.21,13.16,55.08,55.08,0,0,0-29.41-20.16V380.74a39.05,39.05,0,1,0-29.38,0v10.73a55,55,0,0,0-26,16.06,55.09,55.09,0,0,0-36.57-33.06V363.74a39.05,39.05,0,1,0-29.38,0v10.73a55,55,0,0,0-40,47.77,54.62,54.62,0,0,0-16.57-7.77V403.74a39.05,39.05,0,1,0-29.38,0v10.73a55.18,55.18,0,0,0-34.66,28.7,54.58,54.58,0,0,0-15-6.7V425.74a39.05,39.05,0,1,0-29.38,0v10.73a54.29,54.29,0,0,0-14.21,6.22,55.14,55.14,0,0,0-34.41-28.22V403.74a39.05,39.05,0,1,0-29.38,0v10.73a55.1,55.1,0,0,0-35.87,31.36,55,55,0,0,0-18.75-9.36V425.74a39.05,39.05,0,1,0-29.38,0v10.73a55,55,0,0,0-40.31,53v248H392v-22h52v22H554v-22h79v-40h68v17h82v7h86v7H979v-248A55,55,0,0,0,938.69,405.47Z"
          transform="translate(-28 -131.5)"
          fill="#24ffaf"
          opacity="0.1"
        />
        <path
          d="M490.78,169h91.43A170.28,170.28,0,0,1,752.5,339.28V570a0,0,0,0,1,0,0h-432a0,0,0,0,1,0,0V339.28A170.28,170.28,0,0,1,490.78,169Z"
          fill="#2f2e41"
        />
        <path
          d="M500.78,178.28h71.43A170.28,170.28,0,0,1,742.5,348.56V560.71a0,0,0,0,1,0,0h-412a0,0,0,0,1,0,0V348.56A170.28,170.28,0,0,1,500.78,178.28Z"
          opacity="0.2"
        />
        <path
          d="M1072,734.09v17.46a165.67,165.67,0,0,1-73.76,17H245.17q-9,0-17.84-.72a211.15,211.15,0,0,1-61.06-14.14q-5.72-2.26-11.22-4.86-2.62-1.23-5.19-2.53c-1.07-.54-2.14-1.1-3.2-1.66A190.5,190.5,0,0,1,128,733.32V685.9A28.9,28.9,0,0,1,156.9,657H988.13a28.9,28.9,0,0,1,19,7.17l55,48.2A28.87,28.87,0,0,1,1072,734.09Z"
          transform="translate(-28 -131.5)"
          fill="#2f2e41"
        />
        <path
          d="M510.67,357.31q-32.71,2.16-65.17,7c-6.15.92-12.39,1.94-18,4.66a52.8,52.8,0,0,0-11.94,8.56,157.38,157.38,0,0,0-38,51.53c-5.57,12.15-9.57,25-14.82,37.25-18.69,43.75-52.59,79.53-72.32,122.82-4.27,9.37-7.87,19.15-9.3,29.34-1.48,10.54.2,22.84,8.86,29,4,2.83,8.86,4,13.62,5a1641.51,1641.51,0,0,0,181.57,29.65c-6.61-6.38-8.82-16.27-7.95-25.41s4.46-17.78,8-26.25q-51.81-11.43-103.36-24c-5.13-1.25-11.29-3.6-11.92-8.84-.32-2.67,1-5.24,2.3-7.59a407.17,407.17,0,0,1,52.4-74c0,28.06-1.39,59.75-1.39,87.82H747.35a248,248,0,0,1-6.84-48.85C739,501.24,757.1,447.89,752.4,394.24c-.44-4.95-1.12-10.05-3.71-14.29-4.47-7.32-13.39-10.35-21.59-12.85-31.44-9.56-63.54-19.23-96.4-18.48-9.77.23-19.5,1.37-29.21,2.52C571.9,354.63,540.4,355.34,510.67,357.31Z"
          transform="translate(-28 -131.5)"
          fill="#24ffaf"
        />
        <path
          d="M358.88,679.82l23.6,75.53a2.36,2.36,0,0,0,2.25,1.65H486l-24-88-101.06,7.77A2.36,2.36,0,0,0,358.88,679.82Z"
          transform="translate(-28 -131.5)"
          fill="#656478"
        />
        <path
          d="M532,389.79c-4.4,2.53-9.53,3.44-14.53,4.31l-32.27,5.6c-6.28,1.09-12.89,2.33-17.73,6.48-9.9,8.47-7.76,24.06-4.76,36.74l6,25.44c4.52,19.12,9.14,38.47,18.41,55.79,16.19,30.23,45.89,52,78.55,62.49,11.67,3.75,24,6.19,36.18,4.85,23.86-2.62,44.27-19.63,56.85-40.08s18.57-44.17,24.06-67.55c5.27-22.38,10.28-45.08,9.94-68.08-.1-7.16-.82-14.64-4.64-20.71-8.37-13.33-27.34-14.33-42.89-11.87-2.42.39-4.93.81-7.26.08-7-2.18-7.16-11.79-10.16-18.46-5.67-12.58-22.49-14.81-36.24-13.67s-35.16,2.61-47.14,10.4C532.85,369,545.51,382,532,389.79Z"
          transform="translate(-28 -131.5)"
          fill="#fbbebe"
        />
        <path
          d="M532,389.79c-4.4,2.53-9.53,3.44-14.53,4.31l-32.27,5.6c-6.28,1.09-12.89,2.33-17.73,6.48-9.9,8.47-7.76,24.06-4.76,36.74l6,25.44c4.52,19.12,9.14,38.47,18.41,55.79,16.19,30.23,45.89,52,78.55,62.49,11.67,3.75,24,6.19,36.18,4.85,23.86-2.62,44.27-19.63,56.85-40.08s18.57-44.17,24.06-67.55c5.27-22.38,10.28-45.08,9.94-68.08-.1-7.16-.82-14.64-4.64-20.71-8.37-13.33-27.34-14.33-42.89-11.87-2.42.39-4.93.81-7.26.08-7-2.18-7.16-11.79-10.16-18.46-5.67-12.58-22.49-14.81-36.24-13.67s-35.16,2.61-47.14,10.4C532.85,369,545.51,382,532,389.79Z"
          transform="translate(-28 -131.5)"
          opacity="0.1"
        />
        <path
          d="M505.29,418.45c4.88,10.24,8.54,21.1,14.44,30.79,4.69,7.7,10.7,14.49,16.68,21.24C551.9,488,567.59,505.66,586.76,519a222.93,222.93,0,0,1,55.37-109c8.26-8.87,18.6-17.61,30.72-17.28,7.52.21,14.46,3.94,20.72,8.09,7,4.63,13.62,10,18.65,16.67,7.95,10.62,11.38,24.07,12,37.32s-1.44,26.47-3.48,39.57l-10.5,67.71c-.61,3.92-1.46,8.25-4.66,10.6a14.67,14.67,0,0,1-6,2.16c-38.17,7.43-77.51,2.61-116.4,2.23-43-.41-87.19,4.49-127.92-9.19-2.13-.72-4.34-1.55-5.78-3.26a12.06,12.06,0,0,1-2-4.31c-9.49-30.72-1.88-63.73,3.75-95.38a748.38,748.38,0,0,0,9.51-75.78c.17-2.29,25.33,2.77,28.14,4.39C496.53,398.07,501.61,410.73,505.29,418.45Z"
          transform="translate(-28 -131.5)"
          fill="#24ffaf"
        />
        <g opacity="0.2">
          <path
            d="M194.87,668.29c0,.46-.05.91-.1,1.35q-5.72-2.26-11.22-4.86a9.1,9.1,0,0,1-5.19-2.53c-1.07-.54-2.14-1.1-3.2-1.66a13.68,13.68,0,0,1,.81-1.46c2.06-3.26,5.19-5.3,8.64-5.19s6.44,2.34,8.29,5.71A16.87,16.87,0,0,1,194.87,668.29Z"
            transform="translate(-28 -131.5)"
            fill="#3f3d56"
          />
          <path
            d="M195.41,651.17a16.88,16.88,0,0,1-2.51,8.48c-2.06,3.25-5.19,5.29-8.64,5.18l-.71-.05a9.1,9.1,0,0,1-5.19-2.53,12.53,12.53,0,0,1-2.39-3.12,17.55,17.55,0,0,1,.54-17.12c2.06-3.26,5.19-5.3,8.64-5.19s6.44,2.34,8.29,5.71A16.87,16.87,0,0,1,195.41,651.17Z"
            transform="translate(-28 -131.5)"
            fill="#3f3d56"
          />
          <ellipse
            cx="185.25"
            cy="633.7"
            rx="14.01"
            ry="10.7"
            transform="translate(-481.98 667.38) rotate(-88.19)"
            fill="#3f3d56"
          />
          <ellipse
            cx="185.79"
            cy="616.59"
            rx="14.01"
            ry="10.7"
            transform="translate(-464.35 651.34) rotate(-88.19)"
            fill="#3f3d56"
          />
          <ellipse
            cx="186.33"
            cy="599.47"
            rx="14.01"
            ry="10.7"
            transform="translate(-446.72 635.3) rotate(-88.19)"
            fill="#3f3d56"
          />
          <path
            d="M150,481.05a49.66,49.66,0,0,1-3.8-6l28.26-3.73L144,470.6a51.38,51.38,0,0,1,.31-40.64l40.12,22.44-36.75-28.84a51.28,51.28,0,1,1,82.84,60,51.12,51.12,0,0,1,5.55,9.53L199,510.93l39.33-11.83A51.34,51.34,0,0,1,228.53,547,51.28,51.28,0,1,1,148,544.43a51.28,51.28,0,0,1,2-63.38Z"
            transform="translate(-28 -131.5)"
            fill="#24ffaf"
          />
          <path
            d="M240.5,515.62a51.06,51.06,0,0,1-12,31.35A51.28,51.28,0,1,1,148,544.43C141.37,535.49,240.68,509.87,240.5,515.62Z"
            transform="translate(-28 -131.5)"
            opacity="0.1"
          />
        </g>
        <circle cx="68.02" cy="141.18" r="21.63" fill="#24ffaf" opacity="0.1" />
        <circle cx="158.17" cy="21.63" r="21.63" fill="#24ffaf" opacity="0.1" />
        <circle cx="150.84" cy="103.76" r="36.25" fill="#24ffaf" opacity="0.1" />
        <circle cx="543" cy="185.5" r="84" fill="#fbbebe" />
        <path
          d="M536.88,152.17c-22.41,2.84-46.6,6.59-62.44,22.69-8.86,9-14.05,21-18.32,32.88-6.62,18.5-11.55,38-10,57.63,1.38,17.56,7.88,35.52,2.62,52.34-2.42,7.74-7.17,14.5-10.86,21.71-6.84,13.39-10.06,28.4-11.24,43.39-.82,10.31-.66,20.92,2.73,30.69,3.61,10.4,10.65,19.25,15.11,29.31,6.6,14.86,7.26,31.58,7.77,47.83s.94,32.39,1.32,48.58c.24,10.18.26,21.08-5.37,29.57,20.79-8.33,41.87-16.83,59.66-30.43s32.19-33.21,34.49-55.49c1.86-18.06-4.24-35.86-9.5-53.24-13-43-21.4-88.84-11.94-132.75,3.41-15.81,11.7-33.46,27.61-36.37,9.71-1.77,19.4,2.66,28.15,7.24,20.68,10.82,42,24.82,49.7,46.85,7,19.92,1.11,42.11-8,61.13s-21.51,36.51-28.59,56.39c-10.87,30.5-7.81,66.21,10.25,93.08s51.43,43.4,83.52,39.06c-2.51-10.84-10.38-19.6-14.6-29.9-7.67-18.71-2.5-40.23,5.75-58.69S694.21,440,699.37,420.4c3.64-13.8,4.08-28.22,4.06-42.49,0-22.46-1.11-44.93-3.27-67.29s-5.46-45-12.58-66.51c-5.72-17.25-14.05-33.93-26.51-47.16-13.26-14.09-30.52-23.64-47.47-33-10.14-5.58-20.5-11.23-31.88-13.32-9-1.65-18.46-4-27.64-4.15C547.84,146.39,541.28,147.74,536.88,152.17Z"
          transform="translate(-28 -131.5)"
          fill="#434175"
        />
        <rect
          x="624.01"
          y="254.09"
          width="60.85"
          height="141.74"
          rx="2.9"
          transform="translate(45.9 -250.24) rotate(10.98)"
          fill="#656478"
        />
        <rect
          x="628.09"
          y="254.88"
          width="60.85"
          height="141.74"
          rx="2.9"
          transform="translate(46.13 -251) rotate(10.98)"
          fill="#3f3d56"
        />
        <ellipse
          cx="666.17"
          cy="286.29"
          rx="10.05"
          ry="4.15"
          transform="translate(230.2 754.21) rotate(-79.02)"
          fill="#24ffaf"
        />
        <path
          d="M683,332.5c-2.64-4.67-5.46-9.5-9.91-12.49a35,35,0,0,0-8.18-3.67c-9.69-3.39-19.54-6.81-29.79-7.35-1.67-.08-3.58,0-4.67,1.28-2.24,2.63,1.31,6.21,4.38,7.8l24.42,12.65-22.51-2.38c-3.27-.35-7.93.54-7.69,3.82.16,2.15,2.52,3.32,4.56,4,14.45,5,31.15,8.92,39.06,22-10.54-1-21.31-2-31.64.32-2.83.64-5.76,1.63-7.61,3.86s-2.06,6,.27,7.77c1.44,1.07,3.38,1.1,5.18,1,7.33-.35,14.85-1.81,21.89.28s13.29,9.47,10.86,16.39c6.24.56,13.62,0,19.39-2.69,6.36-3,6.21-8.64,5.82-15.44C696,356.33,689.39,343.9,683,332.5Z"
          transform="translate(-28 -131.5)"
          fill="#fbbebe"
        />
        <path
          d="M676.69,550.49a1125.21,1125.21,0,0,0-23-116.92c-5-20-10.68-40.34-9.25-60.92,20.66,2.63,39.17,4.58,58.21-3.86.31,10.81,8.15,20,11,30.45,1.91,7,1.19,14.41,1.94,21.62s3,14.2,4.93,21.21a260.23,260.23,0,0,1,6.63,106.74C709.48,550.91,694.32,553.22,676.69,550.49Z"
          transform="translate(-28 -131.5)"
          opacity="0.1"
        />
        <path
          d="M673.69,550.49a1125.21,1125.21,0,0,0-23-116.92c-5-20-10.68-40.34-9.25-60.92,20.66,2.63,39.17,4.58,58.21-3.86.31,10.81,8.15,20,11,30.45,1.91,7,1.19,14.41,1.94,21.62s3,14.2,4.93,21.21a260.23,260.23,0,0,1,6.63,106.74C706.48,550.91,691.32,553.22,673.69,550.49Z"
          transform="translate(-28 -131.5)"
          fill="#24ffaf"
        />
        <path
          d="M384.63,745.27l9.79-242.87a14.86,14.86,0,0,1,15-14.26l386.52,3.7A14.86,14.86,0,0,1,810.59,508L790.17,740.67a14.86,14.86,0,0,1-14.55,13.56l-375.88,6.5A14.87,14.87,0,0,1,384.63,745.27Z"
          transform="translate(-28 -131.5)"
          fill="#3f3d56"
        />
        <ellipse cx="572.5" cy="467" rx="17" ry="20" fill="#24ffaf" />
        <path
          d="M964,584.76l-.8,6.86-13,110.86c-33.89,23.63-60.25.92-60.48,0L873.34,591.1l-.93-6.34Z"
          transform="translate(-28 -131.5)"
          fill="#3f3d56"
        />
        <path
          d="M964,584.76l-.8,6.86c-38.18,22.2-78.91,4.92-89.86-.52l-.93-6.34Z"
          transform="translate(-28 -131.5)"
          opacity="0.1"
        />
        <path
          d="M870.5,578.74v10s50.5,29.36,96,0v-10Z"
          transform="translate(-28 -131.5)"
          fill="#24ffaf"
        />
        <path
          d="M876.37,565.53s-1.47,6.75-5.87,7.34v8.51h96v-7.63s-5.87-1.47-5-8.22Z"
          transform="translate(-28 -131.5)"
          fill="#24ffaf"
        />
        <ellipse cx="890.21" cy="434.76" rx="43.3" ry="12.48" fill="#24ffaf" />
        <ellipse cx="890.21" cy="434.76" rx="43.3" ry="12.48" opacity="0.1" />
        <path
          d="M956.22,565.53c0,5-16.42,9.1-36.69,9.1h-1.08c-13.61-.1-25.37-2-31.37-4.84-2.71-1.28-4.25-2.73-4.25-4.26,0-2.54,4.2-4.84,11-6.49a113.49,113.49,0,0,1,25.73-2.61C939.8,556.43,956.22,560.5,956.22,565.53Z"
          transform="translate(-28 -131.5)"
          opacity="0.1"
        />
        <path
          d="M918.45,574.63c-13.61-.1-25.37-2-31.37-4.84h0L893.8,559Z"
          transform="translate(-28 -131.5)"
          opacity="0.1"
        />
        <path
          d="M880.1,566.23c-.52-.11-1.21.07-1.31.59a1.27,1.27,0,0,0,.2.75,10.67,10.67,0,0,0,4.78,4.09,2.85,2.85,0,0,0,1.09.35,1,1,0,0,0,1-.52,1.13,1.13,0,0,0-.07-.93,4.13,4.13,0,0,0-1.24-1.36C883.21,568.15,881.84,566.52,880.1,566.23Z"
          transform="translate(-28 -131.5)"
          opacity="0.1"
        />
        <circle cx="891.67" cy="515.79" r="25.83" fill="#24ffaf" />
        <path
          d="M188.33,515.85h12.11a25,25,0,0,1,25,25V578a0,0,0,0,1,0,0H163.33a0,0,0,0,1,0,0V540.85A25,25,0,0,1,188.33,515.85Z"
          fill="#3f3d56"
        />
        <path
          d="M188.33,515.85h12.11a25,25,0,0,1,25,25V578a0,0,0,0,1,0,0H163.33a0,0,0,0,1,0,0V540.85A25,25,0,0,1,188.33,515.85Z"
          opacity="0.1"
        />
        <circle cx="191.9" cy="524.55" r="4.97" fill="#3f3d56" />
        <circle cx="191.9" cy="518.34" r="4.97" fill="#3f3d56" />
        <circle cx="191.9" cy="512.12" r="4.97" fill="#3f3d56" />
        <circle cx="191.9" cy="505.91" r="4.97" fill="#3f3d56" />
        <circle cx="191.9" cy="499.7" r="4.97" fill="#3f3d56" />
        <circle cx="191.9" cy="493.49" r="4.97" fill="#3f3d56" />
        <circle cx="191.9" cy="487.28" r="4.97" fill="#3f3d56" />
        <circle cx="199.36" cy="489.76" r="4.97" fill="#3f3d56" />
        <circle cx="204.33" cy="487.28" r="4.97" fill="#3f3d56" />
        <circle cx="209.3" cy="484.79" r="4.97" fill="#3f3d56" />
        <circle cx="191.9" cy="481.07" r="4.97" fill="#3f3d56" />
        <circle cx="191.9" cy="474.86" r="4.97" fill="#3f3d56" />
        <circle cx="191.9" cy="468.64" r="4.97" fill="#3f3d56" />
        <circle cx="191.9" cy="462.43" r="4.97" fill="#3f3d56" />
        <path
          d="M240.5,577.91c-1.23.18-2.47.31-3.71.39A28.56,28.56,0,0,0,240,575a21.22,21.22,0,0,0-3-5.83,10.22,10.22,0,0,1-4,1.26c-1.23.18-2.47.31-3.71.4,1.63-1.33,3.15-3.33,4.75-5a21.09,21.09,0,1,0,6.61,12Z"
          transform="translate(-28 -131.5)"
          fill="#24ffaf"
        />
        <path
          d="M257.11,602.6a9.68,9.68,0,0,1-4.18,1.39c-1.23.18-2.47.32-3.71.4a36.4,36.4,0,0,0,3.68-3.82,12.44,12.44,0,1,0,4.21,2Z"
          transform="translate(-28 -131.5)"
          fill="#24ffaf"
        />
        <circle cx="184.45" cy="489.76" r="4.97" fill="#3f3d56" />
        <circle cx="179.48" cy="487.28" r="4.97" fill="#3f3d56" />
        <circle cx="174.51" cy="484.79" r="4.97" fill="#3f3d56" />
        <path
          d="M182.7,602.6a9.64,9.64,0,0,0,4.18,1.39c1.23.18,2.47.32,3.71.4a35.42,35.42,0,0,1-3.68-3.82,12.44,12.44,0,1,1-4.21,2Z"
          transform="translate(-28 -131.5)"
          fill="#24ffaf"
        />
        <path
          d="M188.33,519.58h12.11a25,25,0,0,1,25,25v32.87a4.24,4.24,0,0,1-4.24,4.24H167.57a4.24,4.24,0,0,1-4.24-4.24V544.58a25,25,0,0,1,25-25Z"
          fill="#3f3d56"
        />
        <g opacity="0.1">
          <path
            d="M240.88,579.27a18.83,18.83,0,0,1-1.6,1.52c.57,0,1.13-.09,1.7-.15C241,580.18,240.93,579.72,240.88,579.27Z"
            transform="translate(-28 -131.5)"
          />
          <path
            d="M231.82,573.33c1.25-.08,2.48-.21,3.72-.39a12,12,0,0,0,3.23-.88,21.28,21.28,0,0,0-1.74-2.87,7.52,7.52,0,0,1-2,.85A28.79,28.79,0,0,1,231.82,573.33Z"
            transform="translate(-28 -131.5)"
          />
          <path
            d="M201.27,584a21.08,21.08,0,0,1,32.5-17.76l.32-.34a21.1,21.1,0,1,0-27.82,31.73A21,21,0,0,1,201.27,584Z"
            transform="translate(-28 -131.5)"
          />
        </g>
        <g opacity="0.1">
          <path
            d="M249.22,606.87c1.24-.08,2.48-.21,3.71-.39a9.7,9.7,0,0,0,4.18-1.4,12.43,12.43,0,0,1,5,8.8,11.38,11.38,0,0,0,.07-1.31,12.38,12.38,0,0,0-5-10,9.68,9.68,0,0,1-4.18,1.39l-1,.13A25.37,25.37,0,0,1,249.22,606.87Z"
            transform="translate(-28 -131.5)"
          />
          <path
            d="M249.72,602.63a10.19,10.19,0,0,1,1.24.09c.65-.69,1.29-1.43,1.94-2.15a12.4,12.4,0,0,0-15.6,12c0,.42,0,.83.06,1.24A12.42,12.42,0,0,1,249.72,602.63Z"
            transform="translate(-28 -131.5)"
          />
        </g>
        <g opacity="0.1">
          <path
            d="M190.59,606.87c-1.24-.08-2.48-.21-3.71-.39a9.65,9.65,0,0,1-4.18-1.4,12.43,12.43,0,0,0-5,8.8,11.38,11.38,0,0,1-.07-1.31,12.38,12.38,0,0,1,5-10,9.64,9.64,0,0,0,4.18,1.39l1,.13A23.67,23.67,0,0,0,190.59,606.87Z"
            transform="translate(-28 -131.5)"
          />
          <path
            d="M190.09,602.63a10.36,10.36,0,0,0-1.25.09c-.64-.69-1.28-1.43-1.93-2.15a12.4,12.4,0,0,1,15.6,12c0,.42,0,.83-.06,1.24A12.42,12.42,0,0,0,190.09,602.63Z"
            transform="translate(-28 -131.5)"
          />
        </g>
      </svg>
    </div>
    <div
      class="bg-my-color flex h-full w-full items-center justify-center px-3 text-center text-white"
    >
      <div class="h-full px-8 text-gray-100 lg:text-lg">
        <img
          class="mx-auto h-24 w-24 md:h-36 md:w-36"
          src="https://cdn.dribbble.com/users/1522534/avatars/normal/767dc6a0a6f991d3d3e0d3fc378c2bcf.jpg"
          alt=""
        />
        <div class="mb-2 font-sans md:mb-3">
          <h2 class="font-medium uppercase">Eleana Gkogka</h2>
          <p>Creative &amp; UI/UX Designer</p>
        </div>
        <p class="lg:text-md text-sm">
          Lorem ipsum dolor sit, amet consectetur adipisicing elit. Adipisci aut est blanditiis
          ratione accusantium! Quo omnis, inventore at nihil asperiores dignissimos.
        </p>
        <p class="lg:text-md mt-5 mb-5 text-sm md:mb-10">
          Lorem ipsum dolor sit amet consectetur adipisicing elit. Error enim suscipit animi vero
          dolorum at cum vitae ducimus?
        </p>
        <a
          class="text-md text-my-color rounded-full bg-green-400 px-8  py-2 text-center font-medium transition-all duration-150 hover:bg-green-500 sm:px-10 sm:py-3 md:px-12 md:text-xl"
          href="https://dribbble.com/shots/3377897-UI-Avatar?utm_source=Clipboard_Shot&utm_campaign=EleanaGkogka&utm_content=UI%20Avatar&utm_medium=Social_Share&utm_source=Clipboard_Shot&utm_campaign=EleanaGkogka&utm_content=UI%20Avatar&utm_medium=Social_Share"
        >
          View portfolio
        </a>
      </div>
    </div>
  </div>
</div>

How to create a Avatar UI design with Tailwind CSS?

Now that you understand the benefits of using Tailwind CSS and have seen a preview of what an Avatar UI design looks like, let's dive into the step-by-step guide to creating an Avatar UI design with Tailwind CSS.

Step 1: Set up your HTML file

The first step is to set up your HTML file. Start by creating a new HTML file and adding the following code:

<!DOCTYPE html>
<html>
<head>
	<title>Avatar UI Design</title>
	<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css">
</head>
<body>
	<div class="container mx-auto mt-10">
		<div class="flex items-center">
			<img src="https://via.placeholder.com/150" alt="Avatar" class="w-16 h-16 rounded-full mr-4">
			<div>
				<h2 class="text-lg font-semibold">John Doe</h2>
				<p class="text-gray-500">@johndoe</p>
			</div>
		</div>
	</div>
</body>
</html>

This code sets up the basic structure of the HTML file and includes the Tailwind CSS stylesheet.

Step 2: Add the Avatar UI design

Next, we need to add the Avatar UI design to our HTML file. This can be done by adding the following code inside the <div> element with the class of flex items-center:

<img src="https://via.placeholder.com/150" alt="Avatar" class="w-16 h-16 rounded-full mr-4">
<div>
	<h2 class="text-lg font-semibold">John Doe</h2>
	<p class="text-gray-500">@johndoe</p>
</div>

This code adds an image element with the source set to a placeholder image, along with the user's name and username.

Step 3: Style the Avatar UI design

Finally, we need to style the Avatar UI design using Tailwind CSS classes. Here is an example of the classes that can be used to style the Avatar UI design:

<img src="https://via.placeholder.com/150" alt="Avatar" class="w-16 h-16 rounded-full mr-4">
<div>
	<h2 class="text-lg font-semibold">John Doe</h2>
	<p class="text-gray-500">@johndoe</p>
</div>

This code sets the width and height of the image to 16 pixels, adds a rounded border to the image, and adds a margin to the right of the image. The text is styled using the text-lg and font-semibold classes for the name, and the text-gray-500 class for the username.

Conclusion

In conclusion, creating an Avatar UI design with Tailwind CSS is a quick and easy process that can be done by anyone, regardless of their level of experience with CSS. By following the step-by-step guide outlined in this article, you can create a visually appealing and responsive Avatar UI design that will enhance the user experience of your website or application.