Published on

Advanced Guide: Create A Radial Progress With Daisyui With Tailwind CSS

Radial progress with Daisyui

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 Radial progress with Daisyui ui component

Simple section to display percentages in circular radial progress bar using daisyui.com and tailwindcss

Why use Tailwind CSS to create a Radial progress with Daisyui ui component?

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

The preview of Radial progress with Daisyui ui component

Free download of the Radial progress with Daisyui's source code

The source code of Radial progress with Daisyui ui component

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/full.css" rel="stylesheet" type="text/css" />
  
  <div class="bg-black py-20 lg:py-[120px] overflow-hidden relative z-10">

    <div class="container xl:max-w-6xl mx-auto px-4">
        <header class="text-center mx-auto mb-12 lg:px-20">
            <h2 class="text-2xl leading-normal mb-2 font-bold text-white">
            Tecnologies / Frameworks
            </h2>
            <p class="text-white leading-relaxed font-light text-xl mx-auto pb-2">
            My favorite tecnologies!
            </p>
        </header>
    </div>

    <section class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-4 py-12">
      <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-2 lg:grid-cols-3 gap-6">
        <div
          class="w-full bg-gray-900 rounded-lg sahdow-lg p-12 flex flex-col justify-center items-center"
        >
          <div class="mb-8">
            <div class="radial-progress bg-accent text-accent-content border-4 border-accent" style="--size:7rem; --value: 70">70%</div>
          </div>
          <div class="text-center">
            <p class="text-xl text-white font-bold mb-2">PHP</p>
            <p class="text-base text-gray-400 font-normal">________________________________________</p>
          </div>
        </div>

        <div
          class="w-full bg-gray-900 rounded-lg sahdow-lg p-12 flex flex-col justify-center items-center"
        >
          <div class="mb-8">
            <div class="radial-progress bg-accent text-accent-content border-4 border-accent" style="--size:7rem; --value: 90">90%</div>
          </div>
          <div class="text-center">
            <p class="text-xl text-white font-bold mb-2">Java</p>
            <p class="text-base text-gray-400 font-normal">________________________________________</p>
          </div>
        </div>

        <div
          class="w-full bg-gray-900 rounded-lg sahdow-lg p-12 flex flex-col justify-center items-center"
        >
          <div class="mb-8">
            <div class="radial-progress bg-accent text-accent-content border-4 border-accent" style="--size:7rem; --value: 80">80%</div>
          </div>
          <div class="text-center">
            <p class="text-xl text-white font-bold mb-2">JavaScript</p>
            <p class="text-base text-gray-400 font-normal">________________________________________</p>
          </div>
        </div>

        <div
          class="w-full bg-gray-900 rounded-lg sahdow-lg p-12 flex flex-col justify-center items-center"
        >
          <div class="mb-8">
            <div class="radial-progress bg-accent text-accent-content border-4 border-accent" style="--size:7rem; --value: 60">60%</div>
          </div>
          <div class="text-center">
            <p class="text-xl text-white font-bold mb-2">React</p>
            <p class="text-base text-gray-400 font-normal">________________________________________</p>
          </div>
        </div>

        <div
          class="w-full bg-gray-900 rounded-lg sahdow-lg p-12 flex flex-col justify-center items-center"
        >
          <div class="mb-8">
            <div class="radial-progress bg-accent text-accent-content border-4 border-accent" style="--size:7rem; --value: 70">70%</div>
          </div>
          <div class="text-center">
            <p class="text-xl text-white font-bold mb-2">VueJS</p>
            <p class="text-base text-gray-400 font-normal">________________________________________</p>
          </div>
        </div>
        
        <div
          class="w-full bg-gray-900 rounded-lg sahdow-lg p-12 flex flex-col justify-center items-center"
        >
          <div class="mb-8">
            <div class="radial-progress bg-accent text-accent-content border-4 border-accent" style="--size:7rem; --value: 85">85%</div>
          </div>
          <div class="text-center">
            <p class="text-xl text-white font-bold mb-2">HTML/CSS</p>
            <p class="text-base text-gray-400 font-normal">________________________________________</p>
          </div>
        </div>
      </div>
    </section>
  </div>

How to create a Radial progress with Daisyui 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 create a Radial progress with Daisyui component

  • bg-black
  • py-20
  • lg:py-[120px]
  • overflow-hidden
  • relative
  • z-10
  • xl:max-w-6xl
  • mx-auto
  • px-4
  • text-center
  • mb-12
  • lg:px-20
  • text-2xl
  • mb-2
  • text-white
  • text-xl
  • pb-2
  • max-w-6xl
  • sm:px-6
  • lg:px-4
  • py-12
  • grid
  • grid-cols-1
  • sm:grid-cols-2
  • md:grid-cols-2
  • lg:grid-cols-3
  • gap-6
  • w-full
  • bg-gray-900
  • p-12
  • flex
  • flex-col
  • mb-8
  • bg-accent
  • text-accent-content
  • border-4
  • border-accent
  • text-base
  • text-gray-400

39 steps to create a Radial progress with Daisyui component with Tailwind CSS

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

  2. Control the vertical padding of an element to 5rem using the py-20 utilities.

  3. Control the vertical padding of an element to [120px] at only large screen sizes using the lg:py-[120px] utilities.

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

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

  6. Control the stack order (or three-dimensional positioning) of an element to 10 in Tailwind, regardless of order it has been displayed, using the z-10 utilities.

  7. Set the maximum width/height of an element using the xl:max-w-6xl utilities at only extremely large screen sizes.

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

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

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

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

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

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

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

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

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

  17. Control the padding on bottom side of an element to 0.5rem using the pb-2 utilities.

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

  19. Control the horizontal padding of an element to 1.5rem at only small screen sizes using the sm:px-6 utilities.

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

  21. Control the vertical padding of an element to 3rem using the py-12 utilities.

  22. Use grid to create a grid container.

  23. Use grid to create a grid container.

  24. Use grid to create a grid container at only small screen sizes.

  25. Use grid to create a grid container at only medium screen sizes.

  26. Use grid to create a grid container at only large screen sizes.

  27. To specify the width between columns, you can use the gap-6 utilities.

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

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

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

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

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

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

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

  35. Control the text color of an element to accent-content using the text-accent-content utilities.

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

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

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

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

Conclusion

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