Published on

Ways To Build A skills card With Tailwind CSS In 60 Minutes

Tags
skills card

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 skills card ui component

Skills card

Why use Tailwind CSS to build a skills card ui component?

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

The preview of skills card ui component

Free download of the skills card's source code

The source code of skills card ui component

<!-- This is an example component -->
<link href="https://unpkg.com/pattern.css" rel="stylesheet">

<div>
    <section class="text-gray-200 bg-gray-900">
        <div class="max-w-6xl mx-auto px-5 py-24 ">
          <div class="text-center mb-20">
            <h1 class=" title-font  mb-4 text-4xl font-extrabold leading-10 tracking-tight sm:text-5xl sm:leading-none md:text-6xl">Compétences</h1>
            <p class="text-base leading-relaxed xl:w-2/4 lg:w-3/4 mx-auto">L'informatique est vaste et les langages naissent presque à tout moment, je fais tout mon possible pour être à la hauteur afin de répondre au besoin de mes clients et d'apporter de l'aide aux nouveaux développeurs.</p>
            <div class="flex mt-6 justify-center">
              <div class="w-16 h-1 rounded-full bg-indigo-500 inline-flex"></div>
            </div>
          </div>
          <div class="flex flex-wrap sm:-m-4 -mx-4 -mb-10 -mt-4 ">
            <div class="p-10 md:w-1/3 md:mb-0 mb-6 flex flex-col ">
              <div class="pattern-dots-md gray-light">
                <div class="rounded bg-gray-800 p-4 transform translate-x-6 -translate-y-6  "  >
                  <div class="w-10 h-10 inline-flex items-center justify-center rounded-full bg-green-100 text-green-500 mb-5 flex-shrink-0 p-2">
                    <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"></path></svg>                </div>
                  <div class="flex-grow ">
                    <h2 class=" text-xl title-font font-medium mb-3">Webdesign</h2>
                    <p class="leading-relaxed text-sm text-justify">Donner du goût 😍 de la couleur aux applications, je le fais afin de rendre vos sites attrayants 🎨. Avant de devenir webdesigner, depuis tout petit j'étais déjà familier à la couleur et du dessin.</p>
                  </div>
                </div>
              </div>
            </div>
            <div class="p-10 md:w-1/3 md:mb-0 mb-6 flex flex-col ">
              <div class="pattern-dots-md gray-light">
                <div class="rounded bg-gray-800 p-4 transform translate-x-6 -translate-y-6 ">
                  <div class="w-10 h-10 inline-flex items-center justify-center rounded-full bg-blue-100 text-blue-500 mb-5 flex-shrink-0">
                    <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"></path></svg>
                  </div>
                  <div class="flex-grow">
                    <h2 class=" text-xl title-font font-medium mb-3">Intégration web</h2>
                    <p class="leading-relaxed text-sm text-justify">
                    Donner du goût 😍 de la couleur aux applications, je le fais afin de rendre vos sites attrayants 🎨. Avant de devenir webdesigner, depuis tout petit j'étais déjà familier à la couleur et du dessin. 
                    </p>
                  </div>
                </div>
              </div>
            </div>
            <div class="p-10 md:w-1/3 md:mb-0 mb-6 flex flex-col ">
              <div class="pattern-dots-md gray-light">
                <div class="rounded bg-gray-800 p-4 transform translate-x-6 -translate-y-6 ">
                  <div class="w-10 h-10 inline-flex items-center justify-center rounded-full bg-yellow-100 text-yellow-500 mb-5 flex-shrink-0">
                    <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"></path></svg>
                  </div>
                  <div class="flex-grow">
                    <h2 class=" text-xl title-font font-medium mb-3">Developpement Back-end</h2>
                    <p class="leading-relaxed text-sm text-justify">
                     Grâce à Php et ces frameworks (Larave, Symfoni, Slim), je peux vous réaliser un site dynamique c'est-à-dire qui interagie avec votre base de données 💪. Nous pouvons essayer.
                    </p>
                  </div>
                </div>
        </div>
    </section>
</div>

How to build a skills card with Tailwind CSS?

Install tailwind css of verion 1.9.6

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

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

All the unility class needed to build a skills card component

  • text-gray-200
  • bg-gray-900
  • max-w-6xl
  • mx-auto
  • px-5
  • py-24
  • text-center
  • mb-20
  • mb-4
  • text-4xl
  • sm:text-5xl
  • md:text-6xl
  • text-base
  • xl:w-2/4
  • lg:w-3/4
  • flex
  • mt-6
  • w-16
  • h-1
  • bg-indigo-500
  • inline-flex
  • flex-wrap
  • sm:-m-4
  • -mx-4
  • -mb-10
  • -mt-4
  • p-10
  • md:w-1/3
  • md:mb-0
  • mb-6
  • flex-col
  • bg-gray-800
  • p-4
  • w-10
  • h-10
  • bg-green-100
  • text-green-500
  • mb-5
  • flex-shrink-0
  • p-2
  • w-6
  • h-6
  • flex-grow
  • text-xl
  • mb-3
  • text-sm
  • text-justify
  • bg-blue-100
  • text-blue-500
  • bg-yellow-100
  • text-yellow-500

51 steps to build a skills card component with Tailwind CSS

  1. Control the text color of an element to gray-200 using the text-gray-200 utilities.

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

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

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

  5. Control the horizontal padding of an element to 1.25rem using the px-5 utilities.

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

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

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

  9. Control the margin on bottom side of an element to 1rem using the mb-4 utilities.

  10. Control the text color of an element to 4xl using the text-4xl utilities.

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

  12. Control the text color of an element to 6xl at only medium screen sizes using the md:text-6xl utilities.

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

  14. Use xl:w-2/4 to set an element to a fixed width(2/4) at only extremely large screen sizes.

  15. Use lg:w-3/4 to set an element to a fixed width(3/4) at only large screen sizes.

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

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

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

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

  20. Control the background color of an element to indigo-500 using the bg-indigo-500 utilities.

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

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

  23. Control the margin on all sides of an element to -1rem at only small screen sizes using the sm:-m-4 utilities.

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

  25. Control the margin on bottom side of an element to -2.5rem using the -mb-10 utilities.

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

  27. Control the padding on all sides of an element to 2.5rem using the p-10 utilities.

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

  29. Control the margin on bottom side of an element to 0rem at only medium screen sizes using the md:mb-0 utilities.

  30. Control the margin on bottom side of an element to 1.5rem using the mb-6 utilities.

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

  32. Control the background color of an element to gray-800 using the bg-gray-800 utilities.

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

  34. Use w-10 to set an element to a fixed width(2.5rem).

  35. Use h-10 to set an element to a fixed height(2.5rem).

  36. Control the background color of an element to green-100 using the bg-green-100 utilities.

  37. Control the text color of an element to green-500 using the text-green-500 utilities.

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

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

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

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

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

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

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

  45. Control the margin on bottom side of an element to 0.75rem using the mb-3 utilities.

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

  47. Control the text color of an element to justify using the text-justify utilities.

  48. Control the background color of an element to blue-100 using the bg-blue-100 utilities.

  49. Control the text color of an element to blue-500 using the text-blue-500 utilities.

  50. Control the background color of an element to yellow-100 using the bg-yellow-100 utilities.

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

Conclusion

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