Published on

Create A Trello panel clone With Tailwind CSS Like A Pro With The Help Of These 6 Tips

Tags
Trello panel clone

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 Trello panel clone ui component

A trello panel clone for tailwind ccss

Why use Tailwind CSS to create a Trello panel clone ui component?

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

The preview of Trello panel clone ui component

Free download of the Trello panel clone's source code

The source code of Trello panel clone ui component

<div class="bg-blue w-full h-screen font-sans">
            <div class="flex p-2 bg-blue-dark items-center">
                <div class="hidden md:flex justify-start">
                    <button class="bg-blue-light rounded p-2 font-bold text-white text-sm mr-2 flex">
                        <svg class="fill-current text-white h-4 mr-2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><path d="M41 4H9C6.24 4 4 6.24 4 9v32c0 2.76 2.24 5 5 5h32c2.76 0 5-2.24 5-5V9c0-2.76-2.24-5-5-5zM21 36c0 1.1-.9 2-2 2h-7c-1.1 0-2-.9-2-2V12c0-1.1.9-2 2-2h7c1.1 0 2 .9 2 2v24zm19-12c0 1.1-.9 2-2 2h-7c-1.1 0-2-.9-2-2V12c0-1.1.9-2 2-2h7c1.1 0 2 .9 2 2v12z"/></svg>
                        Pannels
                    </button>
                    <input type="text" class="bg-blue-light rounded p-2">
                </div>
                <div class="mx-0 md:mx-auto">
                    <h1 class="text-blue-lighter text-xl flex items-center font-sans italic">
                        <svg class="fill-current h-8 mr-2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><path d="M41 4H9C6.24 4 4 6.24 4 9v32c0 2.76 2.24 5 5 5h32c2.76 0 5-2.24 5-5V9c0-2.76-2.24-5-5-5zM21 36c0 1.1-.9 2-2 2h-7c-1.1 0-2-.9-2-2V12c0-1.1.9-2 2-2h7c1.1 0 2 .9 2 2v24zm19-12c0 1.1-.9 2-2 2h-7c-1.1 0-2-.9-2-2V12c0-1.1.9-2 2-2h7c1.1 0 2 .9 2 2v12z"/></svg>
                        Trello
                    </h1>
                </div>
                <div class="flex items-center ml-auto">
                    <button class="bg-blue-light rounded h-8 w-8 font-bold text-white text-sm mr-2">+</button>
                    <button class="bg-blue-light rounded h-8 w-8 font-bold text-white text-sm mr-2">i</button>
                    <button class="bg-red rounded h-8 w-8 font-bold text-white text-sm mr-2">
                        <svg class="h-4 fill-current" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2c-.8 0-1.5.7-1.5 1.5v.688C7.344 4.87 5 7.62 5 11v4.5l-2 2.313V19h18v-1.188L19 15.5V11c0-3.379-2.344-6.129-5.5-6.813V3.5c0-.8-.7-1.5-1.5-1.5zm-2 18c0 1.102.898 2 2 2 1.102 0 2-.898 2-2z"/></svg>
                    </button>
                    <img src="https://i.imgur.com/OZaT7jl.png" class="rounded-full" />
                </div>
            </div>
            <div class="flex m-4 justify-between">
                <div class="flex">
                    <h3 class="text-white mr-4">TailwindComponents.com</h3>
                    <ul class="list-reset text-white hidden md:flex">
                        <li><span class="font-bold text-lg px-2"></span></li>
                        <li><span class="border-l border-blue-lighter px-2 text-sm">Business Name</span> <span class="rounded-lg bg-blue-light text-xs px-2 py-1">Free</span></li>
                        <li><span class="border-l border-blue-lighter px-2 text-sm ml-2">Team Visible</span></li>
                    </ul>
                </div>
                <div class="text-white font-sm text-underlined hidden md:flex items-center underline">
                    <svg class="h-4 fill-current text-white cursor-pointer mr-2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 10a1.999 1.999 0 1 0 0 4 1.999 1.999 0 1 0 0-4zm7 0a1.999 1.999 0 1 0 0 4 1.999 1.999 0 1 0 0-4zm7 0a1.999 1.999 0 1 0 0 4 1.999 1.999 0 1 0 0-4z"/></svg>
                    Show menu
                </div>
            </div>
            <div class="flex px-4 pb-8 items-start overflow-x-scroll">
                <div class="rounded bg-grey-light  flex-no-shrink w-64 p-2 mr-3">
                    <div class="flex justify-between py-1">
                        <h3 class="text-sm">New landing page</h3>
                        <svg class="h-4 fill-current text-grey-dark cursor-pointer" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 10a1.999 1.999 0 1 0 0 4 1.999 1.999 0 1 0 0-4zm7 0a1.999 1.999 0 1 0 0 4 1.999 1.999 0 1 0 0-4zm7 0a1.999 1.999 0 1 0 0 4 1.999 1.999 0 1 0 0-4z"/></svg>
                    </div>
                    <div class="text-sm mt-2">
                        <div class="bg-white p-2 rounded mt-1 border-b border-grey cursor-pointer hover:bg-grey-lighter">
                            Do a mobile first layout
                        </div>
                        
                        <div class="bg-white p-2 rounded mt-1 border-b border-grey cursor-pointer hover:bg-grey-lighter">
                            Check the meta tags
                        </div>
                        
                        <div class="bg-white p-2 rounded mt-1 border-b border-grey cursor-pointer hover:bg-grey-lighter">
                            Check the responsive layout on all devices
                            <div class="text-grey-darker mt-2 ml-2 flex justify-between items-start">
                                <span class="text-xs flex items-center">
                                    <svg class="h-4 fill-current mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><path d="M11 4c-3.855 0-7 3.145-7 7v28c0 3.855 3.145 7 7 7h28c3.855 0 7-3.145 7-7V11c0-3.855-3.145-7-7-7zm0 2h28c2.773 0 5 2.227 5 5v28c0 2.773-2.227 5-5 5H11c-2.773 0-5-2.227-5-5V11c0-2.773 2.227-5 5-5zm25.234 9.832l-13.32 15.723-8.133-7.586-1.363 1.465 9.664 9.015 14.684-17.324z"/></svg>
                                    3/5
                                </span>
                                <img src="https://i.imgur.com/OZaT7jl.png" class="rounded-full" />
                            </div>
                        </div>
                        <p class="mt-3 text-grey-dark">Add a card...</p>
                    </div>
                </div>
                <div class="rounded bg-grey-light flex-no-shrink w-64 p-2 mr-3">
                    <div class="flex justify-between py-1">
                        <h3 class="text-sm">Old landing</h3>
                        <svg class="h-4 fill-current text-grey-dark cursor-pointer" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 10a1.999 1.999 0 1 0 0 4 1.999 1.999 0 1 0 0-4zm7 0a1.999 1.999 0 1 0 0 4 1.999 1.999 0 1 0 0-4zm7 0a1.999 1.999 0 1 0 0 4 1.999 1.999 0 1 0 0-4z"/></svg>
                    </div>
                    <div class="text-sm mt-2">
                        <div class="bg-white p-2 rounded mt-1 border-b border-grey cursor-pointer hover:bg-grey-lighter">
                            Delete all references from the wiki
                        </div>
                        
                        <div class="bg-white p-2 rounded mt-1 border-b border-grey cursor-pointer hover:bg-grey-lighter">
                            Remove analytics code
                        </div>
                        
                        <div class="bg-white p-2 rounded mt-1 border-b border-grey cursor-pointer hover:bg-grey-lighter">
                            Whatever
                        </div>
                        
                        <div class="bg-white p-2 rounded mt-1 border-b border-grey cursor-pointer hover:bg-grey-lighter">
                            <p>Think more tasks for this example</p>
                            <div class="bg-red rounded p-1 mt-2 inline-flex text-white text-xs">
                                <svg class="h-4 fill-current" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2c-.8 0-1.5.7-1.5 1.5v.688C7.344 4.87 5 7.62 5 11v4.5l-2 2.313V19h18v-1.188L19 15.5V11c0-3.379-2.344-6.129-5.5-6.813V3.5c0-.8-.7-1.5-1.5-1.5zm-2 18c0 1.102.898 2 2 2 1.102 0 2-.898 2-2z"/></svg>
                                2
                            </div>
                        </div>
                        <p class="mt-3 text-grey-dark">Add a card...</p>
                    </div>
                </div>
                <div class="rounded bg-grey-light flex-no-shrink w-64 p-2 mr-3">
                    <div class="flex justify-between py-1">
                        <h3 class="text-sm">Do more cards</h3>
                        <svg class="h-4 fill-current text-grey-dark cursor-pointer" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 10a1.999 1.999 0 1 0 0 4 1.999 1.999 0 1 0 0-4zm7 0a1.999 1.999 0 1 0 0 4 1.999 1.999 0 1 0 0-4zm7 0a1.999 1.999 0 1 0 0 4 1.999 1.999 0 1 0 0-4z"/></svg>
                    </div>
                    <div class="text-sm mt-2">
                        <div class="bg-white p-2 rounded mt-1 border-b border-grey cursor-pointer hover:bg-grey-lighter">
                            Delete all references from the wiki
                        </div>
                        
                        <div class="bg-white p-2 rounded mt-1 border-b border-grey cursor-pointer hover:bg-grey-lighter">
                            Remove analytics code
                        </div>
                        
                        <div class="bg-white p-2 rounded mt-1 border-b border-grey cursor-pointer hover:bg-grey-lighter">
                            Whatever
                        </div>
                        
                        <div class="bg-white p-2 rounded mt-1 border-b border-grey cursor-pointer hover:bg-grey-lighter">
                            Delete all references from the wiki
                        </div>
                        
                        <div class="bg-white p-2 rounded mt-1 border-b border-grey cursor-pointer hover:bg-grey-lighter">
                            Remove analytics code
                        </div>
                        
                        <div class="bg-white p-2 rounded mt-1 border-b border-grey cursor-pointer hover:bg-grey-lighter">
                            Whatever
                        </div>
                        
                        <div class="bg-white p-2 rounded mt-1 border-b border-grey cursor-pointer hover:bg-grey-lighter">
                            <p>Think more tasks for this example</p>
                            <div class="bg-red rounded p-1 mt-2 inline-flex text-white text-xs">
                                <svg class="h-4 fill-current" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2c-.8 0-1.5.7-1.5 1.5v.688C7.344 4.87 5 7.62 5 11v4.5l-2 2.313V19h18v-1.188L19 15.5V11c0-3.379-2.344-6.129-5.5-6.813V3.5c0-.8-.7-1.5-1.5-1.5zm-2 18c0 1.102.898 2 2 2 1.102 0 2-.898 2-2z"/></svg>
                                2
                            </div>
                        </div>
                        
                        <div class="bg-white p-2 rounded mt-1 border-b border-grey cursor-pointer hover:bg-grey-lighter">
                            Delete all references from the wiki
                        </div>
                        
                        <div class="bg-white p-2 rounded mt-1 border-b border-grey cursor-pointer hover:bg-grey-lighter">
                            Remove analytics code
                        </div>
                        
                        <div class="bg-white p-2 rounded mt-1 border-b border-grey cursor-pointer hover:bg-grey-lighter">
                            Whatever
                        </div>
                        <p class="mt-3 text-grey-dark">Add a card...</p>
                    </div>
                </div>
            </div>
        </div>

How to create a Trello panel clone with Tailwind CSS?

Install tailwind css of verion 0.3.0

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

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

All the unility class needed to create a Trello panel clone component

  • bg-blue
  • w-full
  • h-screen
  • flex
  • p-2
  • bg-blue-dark
  • hidden
  • md:flex
  • justify-start
  • bg-blue-light
  • text-white
  • text-sm
  • mr-2
  • h-4
  • mx-0
  • md:mx-auto
  • text-blue-lighter
  • text-xl
  • h-8
  • ml-auto
  • w-8
  • bg-red
  • m-4
  • mr-4
  • text-lg
  • px-2
  • border-l
  • border-blue-lighter
  • text-xs
  • py-1
  • ml-2
  • text-underlined
  • px-4
  • pb-8
  • overflow-x-scroll
  • bg-grey-light
  • flex-no-shrink
  • w-64
  • mr-3
  • text-grey-dark
  • mt-2
  • bg-white
  • mt-1
  • border-b
  • border-grey
  • hover:bg-grey-lighter
  • text-grey-darker
  • mr-1
  • mt-3
  • p-1
  • inline-flex

51 steps to create a Trello panel clone component with Tailwind CSS

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

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

  3. Use h-screen to make an element span the entire height of the viewport.

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

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

  6. Control the background color of an element to blue-dark using the bg-blue-dark utilities.

  7. Use hidden to set an element to display: none and remove it from the page layout.

  8. Use flex to create a block-level flex container at only medium screen sizes.

  9. Use justify-start to justify items against the start of the container’s main axis.

  10. Control the background color of an element to blue-light using the bg-blue-light utilities.

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

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

  13. Control the margin on right side of an element to 0.5rem using the mr-2 utilities.

  14. Use h-4 to set an element to a fixed height(1rem).

  15. Control the horizontal margin of an element to 0rem using the mx-0 utilities.

  16. Control the horizontal margin of an element to auto at only medium screen sizes using the md:mx-auto utilities.

  17. Control the text color of an element to blue-lighter using the text-blue-lighter utilities.

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

  19. Use h-8 to set an element to a fixed height(2rem).

  20. Control the margin on left side of an element to auto using the ml-auto utilities.

  21. Use w-8 to set an element to a fixed width(2rem).

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

  23. Control the margin on all sides of an element to 1rem using the m-4 utilities.

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

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

  26. Control the horizontal padding of an element to 0.5rem using the px-2 utilities.

  27. Control the border color of an element to l using the border-l utilities.

  28. Control the border color of an element to blue-lighter using the border-blue-lighter utilities.

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

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

  31. Control the margin on left side of an element to 0.5rem using the ml-2 utilities.

  32. Control the text color of an element to underlined using the text-underlined utilities.

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

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

  35. Use overflow-x-scroll to allow horizontal scrolling and always show scrollbars unless always-visible scrollbars are disabled by the operating system.

  36. Control the background color of an element to grey-light using the bg-grey-light utilities.

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

  38. Use w-64 to set an element to a fixed width(16rem).

  39. Control the margin on right side of an element to 0.75rem using the mr-3 utilities.

  40. Control the text color of an element to grey-dark using the text-grey-dark utilities.

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

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

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

  44. Control the border color of an element to b using the border-b utilities.

  45. Control the border color of an element to grey using the border-grey utilities.

  46. Control the background color of an element to grey-lighter using the hover:bg-grey-lighter utilities on hover.

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

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

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

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

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

Conclusion

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