Published on

Advanced Guide: Make A Dashboard Point Of Sale System With Tailwind CSS

Tags
Dashboard Point of sale system

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 Dashboard Point of sale system ui component

Template design from dribble dribbble.com/shots/14139155-point-of-sale-system-design/attachments/5763503?mode=media

Why use Tailwind CSS to build a Dashboard Point of sale system ui component?

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

The preview of Dashboard Point of sale system ui component

Free download of the Dashboard Point of sale system's source code

The source code of Dashboard Point of sale system ui component

<div class="container mx-auto px-5 bg-white">
      <div class="flex lg:flex-row flex-col-reverse shadow-lg">
        <!-- left section -->
        <div class="w-full lg:w-3/5 min-h-screen shadow-lg">
          <!-- header -->
          <div class="flex flex-row justify-between items-center px-5 mt-5">
            <div class="text-gray-800">
              <div class="font-bold text-xl">Simons's BQQ Team</div>
              <span class="text-xs">Location ID#SIMON123</span>
            </div>
            <div class="flex items-center">
              <div class="text-sm text-center mr-4">
                <div class="font-light text-gray-500">last synced</div>
                <span class="font-semibold">3 mins ago</span>
              </div>
              <div>
                  <span
                  class="px-4 py-2 bg-gray-200 text-gray-800 font-semibold rounded"
                  >
                  Help
                </div>
              </span>
            </div>
          </div>
          <!-- end header -->
          <!-- categories -->
          <div class="mt-5 flex flex-row px-5">
            <span
              class="px-5 py-1 bg-yellow-500 rounded-2xl text-white text-sm mr-4"
            >
              All items
            </span>
            <span class="px-5 py-1 rounded-2xl text-sm font-semibold mr-4">
              Food
            </span>
            <span class="px-5 py-1 rounded-2xl text-sm font-semibold mr-4">
              Cold Drinks
            </span>
            <span class="px-5 py-1 rounded-2xl text-sm font-semibold mr-4">
              Hot Drinks
            </span>
          </div>
          <!-- end categories -->
          <!-- products -->
          <div class="grid grid-cols-3 gap-4 px-5 mt-5 overflow-y-auto h-3/4">
            <div class="px-3 py-3 flex flex-col border border-gray-200 rounded-md h-32 justify-between">
              <div>
                <div class="font-bold text-gray-800">Griled corn</div>
                <span class="font-light text-sm text-gray-400">150g</span>
              </div>
              <div class="flex flex-row justify-between items-center">
                <span class="self-end font-bold text-lg text-yellow-500">$1.75</span>
                <img src="https://source.unsplash.com/sc5sTPMrVfk/600x600" class=" h-14 w-14 object-cover rounded-md" alt="">
              </div>
            </div>
            <div class="px-3 py-3 flex flex-col border border-gray-200 rounded-md h-32 justify-between">
              <div>
                <div class="font-bold text-gray-800">Ranch Burger</div>
                <span class="font-light text-sm text-gray-400">150g</span>
              </div>
              <div class="flex flex-row justify-between items-center">
                <span class="self-end font-bold text-lg text-yellow-500">$7.00</span>
                <img src="https://source.unsplash.com/sc5sTPMrVfk/600x500" class=" h-14 w-14 object-cover rounded-md" alt="">
              </div>
            </div>
            <div class="px-3 py-3 flex flex-col border border-gray-200 rounded-md h-32 justify-between">
              <div>
                <div class="font-bold text-gray-800">Pizza Bacon</div>
                <span class="font-light text-sm text-gray-400">150g</span>
              </div>
              <div class="flex flex-row justify-between items-center">
                <span class="self-end font-bold text-lg text-yellow-500">$1.75</span>
                <img src="https://source.unsplash.com/sc5sTPMrVfk/500x500" class=" h-14 w-14 object-cover rounded-md" alt="">
              </div>
            </div>
            <div class="px-3 py-3 flex flex-col border border-gray-200 rounded-md h-32 justify-between">
              <div>
                <div class="font-bold text-gray-800">Griled corn</div>
                <span class="font-light text-sm text-gray-400">150g</span>
              </div>
              <div class="flex flex-row justify-between items-center">
                <span class="self-end font-bold text-lg text-yellow-500">$1.75</span>
                <img src="https://source.unsplash.com/MNtag_eXMKw/600x600" class=" h-14 w-14 object-cover rounded-md" alt="">
              </div>
            </div>
            <div class="px-3 py-3 flex flex-col border border-gray-200 rounded-md h-32 justify-between">
              <div>
                <div class="font-bold text-gray-800">Griled corn</div>
                <span class="font-light text-sm text-gray-400">150g</span>
              </div>
              <div class="flex flex-row justify-between items-center">
                <span class="self-end font-bold text-lg text-yellow-500">$1.75</span>
                <img src="https://source.unsplash.com/MNtag_eXMKw/600x600" class=" h-14 w-14 object-cover rounded-md" alt="">
              </div>
            </div>
            <div class="px-3 py-3 flex flex-col border border-gray-200 rounded-md h-32 justify-between">
              <div>
                <div class="font-bold text-gray-800">Griled corn</div>
                <span class="font-light text-sm text-gray-400">150g</span>
              </div>
              <div class="flex flex-row justify-between items-center">
                <span class="self-end font-bold text-lg text-yellow-500">$1.75</span>
                <img src="https://source.unsplash.com/MNtag_eXMKw/600x600" class=" h-14 w-14 object-cover rounded-md" alt="">
              </div>
            </div>
            <div class="px-3 py-3 flex flex-col border border-gray-200 rounded-md h-32 justify-between">
              <div>
                <div class="font-bold text-gray-800">Griled corn</div>
                <span class="font-light text-sm text-gray-400">150g</span>
              </div>
              <div class="flex flex-row justify-between items-center">
                <span class="self-end font-bold text-lg text-yellow-500">$1.75</span>
                <img src="https://source.unsplash.com/MNtag_eXMKw/600x600" class=" h-14 w-14 object-cover rounded-md" alt="">
              </div>
            </div>
            <div class="px-3 py-3 flex flex-col border border-gray-200 rounded-md h-32 justify-between">
              <div>
                <div class="font-bold text-gray-800">Griled corn</div>
                <span class="font-light text-sm text-gray-400">150g</span>
              </div>
              <div class="flex flex-row justify-between items-center">
                <span class="self-end font-bold text-lg text-yellow-500">$1.75</span>
                <img src="https://source.unsplash.com/MNtag_eXMKw/600x600" class=" h-14 w-14 object-cover rounded-md" alt="">
              </div>
            </div>
            <div class="px-3 py-3 flex flex-col border border-gray-200 rounded-md h-32 justify-between">
              <div>
                <div class="font-bold text-gray-800">Griled corn</div>
                <span class="font-light text-sm text-gray-400">150g</span>
              </div>
              <div class="flex flex-row justify-between items-center">
                <span class="self-end font-bold text-lg text-yellow-500">$1.75</span>
                <img src="https://source.unsplash.com/MNtag_eXMKw/600x600" class=" h-14 w-14 object-cover rounded-md" alt="">
              </div>
            </div>
            <div class="px-3 py-3 flex flex-col border border-gray-200 rounded-md h-32 justify-between">
              <div>
                <div class="font-bold text-gray-800">Griled corn</div>
                <span class="font-light text-sm text-gray-400">150g</span>
              </div>
              <div class="flex flex-row justify-between items-center">
                <span class="self-end font-bold text-lg text-yellow-500">$1.75</span>
                <img src="https://source.unsplash.com/MNtag_eXMKw/600x600" class=" h-14 w-14 object-cover rounded-md" alt="">
              </div>
            </div>
            <div class="px-3 py-3 flex flex-col border border-gray-200 rounded-md h-32 justify-between">
              <div>
                <div class="font-bold text-gray-800">Griled corn</div>
                <span class="font-light text-sm text-gray-400">150g</span>
              </div>
              <div class="flex flex-row justify-between items-center">
                <span class="self-end font-bold text-lg text-yellow-500">$1.75</span>
                <img src="https://source.unsplash.com/MNtag_eXMKw/600x600" class=" h-14 w-14 object-cover rounded-md" alt="">
              </div>
            </div>
          </div>
          <!-- end products -->
        </div>
        <!-- end left section -->
        <!-- right section -->
        <div class="w-full lg:w-2/5">
          <!-- header -->
          <div class="flex flex-row items-center justify-between px-5 mt-5">
            <div class="font-bold text-xl">Current Order</div>
            <div class="font-semibold">
              <span class="px-4 py-2 rounded-md bg-red-100 text-red-500">Clear All</span>
              <span class="px-4 py-2 rounded-md bg-gray-100 text-gray-800">Setting</span>
            </div>
          </div>
          <!-- end header -->
          <!-- order list -->
          <div class="px-5 py-4 mt-5 overflow-y-auto h-64">
              <div class="flex flex-row justify-between items-center mb-4">
                <div class="flex flex-row items-center w-2/5">
                  <img src="https://source.unsplash.com/4u_nRgiLW3M/600x600" class="w-10 h-10 object-cover rounded-md" alt="">
                  <span class="ml-4 font-semibold text-sm">Stuffed flank steak</span>
                </div>
                <div class="w-32 flex justify-between">
                  <span class="px-3 py-1 rounded-md bg-gray-300 ">-</span>
                  <span class="font-semibold mx-4">2</span>
                  <span class="px-3 py-1 rounded-md bg-gray-300 ">+</span>
                </div>
                <div class="font-semibold text-lg w-16 text-center">
                  $13.50
                </div>
              </div>             
              <div class="flex flex-row justify-between items-center mb-4">
                <div class="flex flex-row items-center w-2/5">
                  <img src="https://source.unsplash.com/sc5sTPMrVfk/600x600" class="w-10 h-10 object-cover rounded-md" alt="">
                  <span class="ml-4 font-semibold text-sm">Grilled Corn</span>
                </div>
                <div class="w-32 flex justify-between">
                  <span class="px-3 py-1 rounded-md bg-gray-300 ">-</span>
                  <span class="font-semibold mx-4">10</span>
                  <span class="px-3 py-1 rounded-md bg-gray-300 ">+</span>
                </div>
                <div class="font-semibold text-lg w-16 text-center">
                  $3.50
                </div>
              </div>
              <div class="flex flex-row justify-between items-center mb-4">
                <div class="flex flex-row items-center w-2/5">
                  <img src="https://source.unsplash.com/MNtag_eXMKw/600x600" class="w-10 h-10 object-cover rounded-md" alt="">
                  <span class="ml-4 font-semibold text-sm">Grilled Corn</span>
                </div>
                <div class="w-32 flex justify-between">
                  <span class="px-3 py-1 rounded-md bg-gray-300 ">-</span>
                  <span class="font-semibold mx-4">10</span>
                  <span class="px-3 py-1 rounded-md bg-gray-300 ">+</span>
                </div>
                <div class="font-semibold text-lg w-16 text-center">
                  $3.50
                </div>
              </div>
              <div class="flex flex-row justify-between items-center mb-4">
                <div class="flex flex-row items-center w-2/5">
                  <img src="https://source.unsplash.com/MNtag_eXMKw/600x600" class="w-10 h-10 object-cover rounded-md" alt="">
                  <span class="ml-4 font-semibold text-sm">Grilled Corn</span>
                </div>
                <div class="w-32 flex justify-between">
                  <span class="px-3 py-1 rounded-md bg-gray-300 ">-</span>
                  <span class="font-semibold mx-4">10</span>
                  <span class="px-3 py-1 rounded-md bg-gray-300 ">+</span>
                </div>
                <div class="font-semibold text-lg w-16 text-center">
                  $3.50
                </div>
              </div> 
              <div class="flex flex-row justify-between items-center mb-4">
                <div class="flex flex-row items-center w-2/5">
                  <img src="https://source.unsplash.com/MNtag_eXMKw/600x600" class="w-10 h-10 object-cover rounded-md" alt="">
                  <span class="ml-4 font-semibold text-sm">Ranch Burger</span>
                </div>
                <div class="w-32 flex justify-between">
                  <span class="px-3 py-1 rounded-md bg-red-300 text-white">x</span>
                  <span class="font-semibold mx-4">1</span>
                  <span class="px-3 py-1 rounded-md bg-gray-300 ">+</span>
                </div>
                <div class="font-semibold text-lg w-16 text-center">
                  $2.50
                </div>
              </div> 
              <div class="flex flex-row justify-between items-center mb-4">
                <div class="flex flex-row items-center w-2/5">
                  <img src="https://source.unsplash.com/4u_nRgiLW3M/600x600" class="w-10 h-10 object-cover rounded-md" alt="">
                  <span class="ml-4 font-semibold text-sm">Ranch Burger</span>
                </div>
                <div class="w-32 flex justify-between">
                  <span class="px-3 py-1 rounded-md bg-red-300 text-white">x</span>
                  <span class="font-semibold mx-4">1</span>
                  <span class="px-3 py-1 rounded-md bg-gray-300 ">+</span>
                </div>
                <div class="font-semibold text-lg w-16 text-center">
                  $2.50
                </div>
              </div>            
          </div>
          <!-- end order list -->
          <!-- totalItems -->
          <div class="px-5 mt-5">
            <div class="py-4 rounded-md shadow-lg">
              <div class=" px-4 flex justify-between ">
                <span class="font-semibold text-sm">Subtotal</span>
                <span class="font-bold">$35.25</span>
              </div>
              <div class=" px-4 flex justify-between ">
                <span class="font-semibold text-sm">Discount</span>
                <span class="font-bold">- $5.00</span>
              </div>
              <div class=" px-4 flex justify-between ">
                <span class="font-semibold text-sm">Sales Tax</span>
                <span class="font-bold">$2.25</span>
              </div>
              <div class="border-t-2 mt-3 py-2 px-4 flex items-center justify-between">
                <span class="font-semibold text-2xl">Total</span>
                <span class="font-bold text-2xl">$37.50</span>
              </div>
            </div>
          </div>
          <!-- end total -->
          <!-- cash -->
          <div class="px-5 mt-5">
            <div class="rounded-md shadow-lg px-4 py-4">
              <div class="flex flex-row justify-between items-center">
                <div class="flex flex-col">
                  <span class="uppercase text-xs font-semibold">cashless credit</span>
                  <span class="text-xl font-bold text-yellow-500">$32.50</span>
                  <span class=" text-xs text-gray-400 ">Available</span>
                </div>
                <div class="px-4 py-3 bg-gray-300 text-gray-800 rounded-md font-bold"> Cancel</div>
              </div>
            </div>
          </div>
          <!-- end cash -->
          <!-- button pay-->
          <div class="px-5 mt-5">
            <div class="px-4 py-4 rounded-md shadow-lg text-center bg-yellow-500 text-white font-semibold">
              Pay With Cashless Credit
            </div>
          </div>
          <!-- end button pay -->
        </div>
        <!-- end right section -->
      </div>
    </div>

How to build a Dashboard Point of sale system with Tailwind CSS?

Install tailwind css of verion 2.0.2

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

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

All the unility class needed to build a Dashboard Point of sale system component

  • mx-auto
  • px-5
  • bg-white
  • flex
  • lg:flex-row
  • flex-col-reverse
  • w-full
  • lg:w-3/5
  • min-h-screen
  • flex-row
  • mt-5
  • text-gray-800
  • text-xl
  • text-xs
  • text-sm
  • text-center
  • mr-4
  • text-gray-500
  • px-4
  • py-2
  • bg-gray-200
  • py-1
  • bg-yellow-500
  • text-white
  • grid
  • grid-cols-3
  • gap-4
  • overflow-y-auto
  • h-3/4
  • px-3
  • py-3
  • flex-col
  • border-gray-200
  • h-32
  • text-gray-400
  • text-lg
  • text-yellow-500
  • h-14
  • w-14
  • lg:w-2/5
  • bg-red-100
  • text-red-500
  • bg-gray-100
  • py-4
  • h-64
  • mb-4
  • w-2/5
  • w-10
  • h-10
  • ml-4
  • w-32
  • bg-gray-300
  • mx-4
  • w-16
  • bg-red-300
  • border-t-2
  • mt-3
  • text-2xl

58 steps to build a Dashboard Point of sale system component with Tailwind CSS

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

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

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

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

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

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

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

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

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

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

  11. Control the margin on top side of an element to 1.25rem using the mt-5 utilities.

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

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

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

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

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

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

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

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

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

  21. Control the background color of an element to gray-200 using the bg-gray-200 utilities.

  22. Control the vertical padding of an element to 0.25rem using the py-1 utilities.

  23. Control the background color of an element to yellow-500 using the bg-yellow-500 utilities.

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

  25. Use grid to create a grid container.

  26. Use grid to create a grid container.

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

  28. Use overflow-y-auto to allow vertical scrolling if needed.

  29. Use h-3/4 to set an element to a fixed height(3/4).

  30. Control the horizontal padding of an element to 0.75rem using the px-3 utilities.

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

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

  33. Control the border color of an element to gray-200 using the border-gray-200 utilities.

  34. Use h-32 to set an element to a fixed height(8rem).

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

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

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

  38. Use h-14 to set an element to a fixed height(3.5rem).

  39. Use w-14 to set an element to a fixed width(3.5rem).

  40. Use lg:w-2/5 to set an element to a fixed width(2/5) at only large screen sizes.

  41. Control the background color of an element to red-100 using the bg-red-100 utilities.

  42. Control the text color of an element to red-500 using the text-red-500 utilities.

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

  44. Control the vertical padding of an element to 1rem using the py-4 utilities.

  45. Use h-64 to set an element to a fixed height(16rem).

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

  47. Use w-2/5 to set an element to a fixed width(2/5).

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

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

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

  51. Use w-32 to set an element to a fixed width(8rem).

  52. Control the background color of an element to gray-300 using the bg-gray-300 utilities.

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

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

  55. Control the background color of an element to red-300 using the bg-red-300 utilities.

  56. Control the border color of an element to t-2 using the border-t-2 utilities.

  57. Control the margin on top side of an element to 0.75rem using the mt-3 utilities.

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

Conclusion

The above is a step-by-step tutorial on how to use Tailwind CSS to build a Dashboard Point of sale system components, learn and follow along to implement your own components.