Tailwind CSS To DO APP UI Example

In this tutorial we will see tailwind css to do app ui, to do app list with icons examples with Tailwind CSS.


Tool Use

Tailwind CSS 3.x

Heroicons icon


Example 1

Tailwind CSS simple to do list app.

<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Tailwind CSS To DO APP</title>
    <script src="https://cdn.tailwindcss.com"></script>
  </head>

  <body>
    <div class="flex items-center justify-center h-screen">
        <div class="w-full px-4 py-8 mx-auto shadow lg:w-1/3">
          <div class="flex items-center mb-6">
            <h1 class="mr-6 text-4xl font-bold text-purple-600"> TO DO APP</h1>
          </div>
          <div class="relative">
            <input type="text" placeholder="What needs to be done today?"
              class="w-full px-2 py-3 border rounded outline-none border-grey-600" />
          </div>
          <ul class="list-reset">
            <li class="relative flex items-center justify-between px-2 py-6 border-b">
              <div>
                <input type="checkbox" class="" />
                <p class="inline-block mt-1 text-gray-600">Tailwind CSS To DO App List 1</p>
              </div>
              <button type="button" class="absolute right-0 flex items-center">
                <svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 text-red-700" fill="none" viewBox="0 0 24 24"
                  stroke="currentColor" stroke-width="2">
                  <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
                </svg>
              </button>
            </li>
            <li class="relative flex items-center justify-between px-2 py-6 border-b">
              <div>
                <input type="checkbox" class="" />
                <p class="inline-block mt-1 text-gray-600">Tailwind CSS To DO App List 2</p>
              </div>
              <button type="button" class="absolute right-0 flex items-center">
                <svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 text-red-700" fill="none" viewBox="0 0 24 24"
                  stroke="currentColor" stroke-width="2">
                  <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
                </svg>
              </button>
            </li>
          </ul>
        </div>
    </div>

  </body>

</html>
tailwind css to do app

tailwind css to do app

Example 2

Tailwind v3 to do app list with icons and strikethrough tags.

<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Tailwind CSS To DO List APP</title>
    <script src="https://cdn.tailwindcss.com"></script>
  </head>

  <body>
    <div class="flex items-center justify-center h-screen">
        <div class="w-full px-4 py-8 mx-auto shadow lg:w-1/3">
          <div class="flex items-center mb-6">
            <h1 class="mr-6 text-4xl font-bold text-purple-600"> TO DO APP</h1>
          </div>
          <div class="relative">
            <input type="text" placeholder="What needs to be done today?"
              class="w-full px-2 py-3 border rounded outline-none border-grey-600" />
          </div>
          <ul class="list-reset">
            <li class="relative flex items-center justify-between px-2 py-6 border-b">
              <div>
                <input type="checkbox" class="" />
                <p  class="inline-block mt-1 text-gray-600">Tailwind CSS To DO App List 1</p>
              </div>
              <button type="button" class="absolute right-0 flex items-center">
                <svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 text-blue-600" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
                  <path stroke-linecap="round" stroke-linejoin="round" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" />
                </svg>
                <svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 text-red-700" fill="none" viewBox="0 0 24 24"
                  stroke="currentColor" stroke-width="2">
                  <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
                </svg>
              </button>
            </li>
            <li class="relative flex items-center justify-between px-2 py-6 border-b">
              <div>
                <input type="checkbox" class="" />
                <p  class="inline-block mt-1 text-gray-600 line-through">Tailwind CSS To DO App List 2</p>
              </div>
              <button type="button" class="absolute right-0 flex items-center">
                <svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 text-blue-600" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
                  <path stroke-linecap="round" stroke-linejoin="round" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" />
                </svg>
                <svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 text-red-700" fill="none" viewBox="0 0 24 24"
                  stroke="currentColor" stroke-width="2">
                  <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
                </svg>
              </button>
            </li>
          </ul>
        </div>
    </div>

  </body>

</html>
tailwind css to do app list with icons

tailwind css to do app list with icons