Published on

How To Build A Hamza Zeryouh With Tailwind CSS In 6 Easy Steps?

Tags
hamza zeryouh

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 hamza zeryouh ui component

Simple profile

Why use Tailwind CSS to create a hamza zeryouh ui component?

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

The preview of hamza zeryouh ui component

Free download of the hamza zeryouh's source code

The source code of hamza zeryouh ui component

<!-- This is an example component -->
<div class="min-h-screen bg-gray-100 py-6 flex flex-col justify-center sm:py-12">
  <div class="relative py-3 sm:max-w-xl sm:mx-auto  flex flex-col">
    <div class="p-3 mx-auto">
      <a href="" class="text-2xl uppercase font-bold text-indigo-900 ">Vender</a>
    </div>
    <div class="w-30 h-30 border rounded-3xl border-indigo-900 shadow">
      <img src="https://img.icons8.com/plasticine/200/000000/user-male.png" />
    </div>
    <div class="mt-2 mx-auto">
      <p class="font-mono uppercase text-indigo-700">hamza zeryouh</p>
    </div>
  </div>
  <div class=" mx-auto">
   <i><svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
width="48" height="48"
viewBox="0 0 172 172"
style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#3498db"><path d="M46.58333,46.58333c0,-11.825 9.675,-21.5 21.5,-21.5h35.83333c11.825,0 21.5,9.675 21.5,21.5h14.33333c0,-19.70833 -16.125,-35.83333 -35.83333,-35.83333h-35.83333c-19.70833,0 -35.83333,16.125 -35.83333,35.83333v40.13333h14.33333z"></path><path d="M16.48333,78.83333l22.93333,30.1l22.93333,-30.1z"></path><g><path d="M125.41667,125.41667c0,11.825 -9.675,21.5 -21.5,21.5h-35.83333c-11.825,0 -21.5,-9.675 -21.5,-21.5h-14.33333c0,19.70833 16.125,35.83333 35.83333,35.83333h35.83333c19.70833,0 35.83333,-16.125 35.83333,-35.83333v-43h-14.33333z"></path><path d="M109.65,93.16667l22.93333,-30.1l22.93333,30.1z"></path></g></g></g></svg></i>
    </div>
  </div>
</div>

How to create a hamza zeryouh with Tailwind CSS?

Install tailwind css of verion 2.0.3

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

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

All the unility class needed to create a hamza zeryouh component

  • min-h-screen
  • bg-gray-100
  • py-6
  • flex
  • flex-col
  • sm:py-12
  • relative
  • py-3
  • sm:max-w-xl
  • sm:mx-auto
  • p-3
  • mx-auto
  • text-2xl
  • text-indigo-900
  • w-30
  • h-30
  • border-indigo-900
  • mt-2
  • text-indigo-700

19 steps to create a hamza zeryouh component with Tailwind CSS

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

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

  3. Control the vertical padding of an element to 1.5rem using the py-6 utilities.

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

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

  6. Control the vertical padding of an element to 3rem at only small screen sizes using the sm:py-12 utilities.

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

  8. Control the vertical padding of an element to 0.75rem using the py-3 utilities.

  9. Set the maximum width/height of an element using the sm:max-w-xl utilities at only small screen sizes.

  10. Control the horizontal margin of an element to auto at only small screen sizes using the sm:mx-auto utilities.

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

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

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

  14. Control the text color of an element to indigo-900 using the text-indigo-900 utilities.

  15. Use w-30 to set an element to a fixed width(7.5rem).

  16. Use h-30 to set an element to a fixed height(7.5rem).

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

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

  19. Control the text color of an element to indigo-700 using the text-indigo-700 utilities.

Conclusion

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