Published on

The 5 Really Obvious Ways To Make A Youtube Clone With Tailwind CSS Better That You Ever Did

Tags
Youtube 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 Youtube Clone ui component

A more polished youtube clone made with tailwind css.

Why use Tailwind CSS to make a Youtube Clone ui component?

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

The preview of Youtube Clone ui component

Free download of the Youtube Clone's source code

The source code of Youtube Clone ui component

<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/shuvroroy/youtube-clone/883c8d9a/public/css/main.css">
<div class="bg-white font-sans">
    <nav class="py-2 shadow">
        <div class="container mx-auto flex items-center">
            <div class="w-1/5">
                <a href="#" class="mr-6"><i class="fa fa-bars fa-lg" aria-hidden="true"></i></a>
                <a href="#" class="text-red-light tracking-tight">
                <i class="fa fa-youtube-play fa-lg" aria-hidden="true"></i>
                <span class="text-black font-bold tracking-tight">YouTube</span>
                </a>
            </div>
            <div class="w-3/5">
                <div class="relative">
                    <input type="text" class="h-8 p-4 text-sm w-full border" placeholder="Search">
                    <span class="flex items-center bg-grey-lightest hover:bg-grey-lighter absolute pin-r pin-y border px-8"><i class="fa fa-search text-grey-dark"></i></span>
                </div>
            </div>
            <div class="w-1/5">
                <div class="flex items-center justify-end">
                    <a href="#" class="mr-6"><i class="fa fa-upload fa-lg" aria-hidden="true"></i></a>
                    <a href="#" class="mr-6"><i class="fa fa-th fa-lg" aria-hidden="true"></i></a>
                    <a href="#" class="mr-6"><i class="fa fa-bell fa-lg" aria-hidden="true"></i></a>
                    <a href="#">
                    <img class="h-8 w-8 rounded-full" src="https://yt3.ggpht.com/-d4QhdOi4N6c/AAAAAAAAAAI/AAAAAAAAAAA/vpG4T-iVv7w/s88-c-k-no-mo-rj-c0xffffff/photo.jpg" alt="avatar">
                    </a>
                </div>
            </div>
        </div>
    </nav>
    <div class="bg-cover h-112">
        <img src="https://yt3.ggpht.com/HR5bTyedjHyoOd9h2zty2OAqZ3MFM6T7_R48jhdd2rQE2aSPHOD2B-ibdv-yLSTy4_AAF6XdoCk=w2560-fcrop64=1,00005a57ffffa5a8-nd-c0xffffffff-rj-k-no" alt="banner">
    </div>
    <div class="-mt-1 bg-grey-lighter">
        <div class="container mx-auto">
            <div class="flex justify-between items-center py-4 px-16">
                <div class="flex items-center">
                    <img class="w-24 h-24 rounded-full" src="https://yt3.ggpht.com/-5ny40r8qe90/AAAAAAAAAAI/AAAAAAAAAAA/IrloZ_OeiYc/s288-c-k-no-mo-rj-c0xffffff/photo.jpg" alt="channel_logo">
                    <div class="ml-6">
                        <div class="text-2xl font-normal flex items-center">
                            <span class="mr-2">Fun Fun Function</span>
                            <span class="w-3 h-3 text-white inline-block text-center rounded-full bg-grey-dark text-2xs">&#10003;</span>
                        </div>
                        <p class="mt-2 font-hairline text-sm">126,014 subscribers</p>
                    </div>
                </div>
                <div class="text-grey-dark">
                    <button class="appearance-none px-3 py-2 bg-grey-light uppercase text-grey-darker text-sm mr-4">Subscribed 126K</button>
                    <span><i class="fa fa-bell fa-lg" aria-hidden="true"></i></span>
                </div>
            </div>
            <div class="px-16">
                <ul class="list-reset flex">
                    <li class="text-center py-3 px-8 border-b-2 border-solid border-grey-dark"><a href="#" class="text-black">Home</a></li>
                    <li class="text-center py-3 px-8"><a href="#" class="hover:text-black">Videos</a></li>
                    <li class="text-center py-3 px-8"><a href="#" class="hover:text-black">Playlists</a></li>
                    <li class="text-center py-3 px-8"><a href="#" class="hover:text-black">Community</a></li>
                    <li class="text-center py-3 px-8"><a href="#" class="hover:text-black">Channels</a></li>
                    <li class="text-center py-3 px-8"><a href="#" class="hover:text-black">About</a></li>
                    <li class="text-center py-3 px-8"><i class="fa fa-search fa-lg text-grey-dark"></i></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="container mx-auto flex">
        <div class="w-3/4 mx-16 py-6">
            <div class="border-b pb-8">
                <div class="flex">
                    <div class="w-3/4 flex">
                        <div>
                            <img class="block w-full" src="https://i.ytimg.com/vi/Kcie9rbbb4s/hqdefault.jpg?sqp=-oaymwEXCNACELwBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLCbowulw74TtG_RM8mhfoyq3tya9A" alt="">
                        </div>
                        <div class="pl-4">
                            <p class="w-64 h-6 truncate text-sm font-medium mb-1">Habitual negative thoughts</p>
                            <p class="text-grey-darker text-xs">
                                <span>Fun Fun Function</span>
                                <span>&middot;</span>
                                <span>7.5 views</span>
                                <span>&middot;</span>
                                <span>2 days ago</span>
                            </p>
                        </div>
                    </div>
                    <div class="w-1/4">
                        <div>
                            <img class="block w-100" src="https://i.ytimg.com/vi/TubVp9nn32Q/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLAUxQM30HpBNOg3UpiPQUISQgwSlg" alt="">
                        </div>
                        <div>
                            <p class="text-sm font-medium my-2">TDD with Wallaby.js Part 2</p>
                            <p class="text-grey-darker text-xs mb-1">Fun Fun Function</p>
                            <p class="text-grey-darker text-xs">
                                <span>186 views</span>
                                <span>&middot;</span>
                                <span>3 hours ago</span>
                            </p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="border-b">
                <h3 class="py-6 text-base font-medium">
                    Best of Fun Fun Function
                    <span class="uppercase ml-3 text-grey-dark">Play all</span>
                </h3>
                <div class="flex mb-4 relative">
                    <div class="absolute w-10 h-10 rounded-full bg-white text-grey-dark text-center -mr-3 pin-r mt-8 shadow-md">
                        <i class="fa fa-chevron-right mt-3" aria-hidden="true"></i>
                    </div>
                    <div class="flex-1 mr-1">
                        <div>
                            <img src="https://i.ytimg.com/vi/BMUiFMZr7vk/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLCBiAHMlgjlC5lAn12CO1GRPKYgPg" alt="">
                        </div>
                        <div class="mb-4">
                            <h4 class="text-sm font-medium">Higher-order functions - Part 1 of Functional Programming</h4>
                            <p class="mt-2 font-hairline text-sm text-grey-darker">
                                Fun Fun Function
                                <span class="w-3 h-3 text-white inline-block text-center rounded-full bg-grey-dark text-2xs">&#10003;</span>
                            </p>
                            <p class="mt-1 font-hairline text-xs text-grey-darker">
                                336K views &middot; 2 years ago
                            </p>
                            <p class="inline block p-1 text-grey-darker bg-grey-lighter font-hairline text-2xs">
                                CC
                            </p>
                        </div>
                    </div>
                    <div class="flex-1 mr-1">
                        <div>
                            <img src="https://i.ytimg.com/vi/BMUiFMZr7vk/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLCBiAHMlgjlC5lAn12CO1GRPKYgPg" alt="">
                        </div>
                        <div class="mb-4">
                            <h4 class="text-sm font-medium">Higher-order functions - Part 1 of Functional Programming</h4>
                            <p class="mt-2 font-hairline text-sm text-grey-darker">
                                Fun Fun Function
                                <span class="w-3 h-3 text-white inline-block text-center rounded-full bg-grey-dark text-2xs">&#10003;</span>
                            </p>
                            <p class="mt-1 font-hairline text-xs text-grey-darker">
                                336K views &middot; 2 years ago
                            </p>
                            <p class="inline block p-1 text-grey-darker bg-grey-lighter font-hairline text-2xs">
                                CC
                            </p>
                        </div>
                    </div>
                    <div class="flex-1 mr-1">
                        <div>
                            <img src="https://i.ytimg.com/vi/BMUiFMZr7vk/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLCBiAHMlgjlC5lAn12CO1GRPKYgPg" alt="">
                        </div>
                        <div class="mb-4">
                            <h4 class="text-sm font-medium">Higher-order functions - Part 1 of Functional Programming</h4>
                            <p class="mt-2 font-hairline text-sm text-grey-darker">
                                Fun Fun Function
                                <span class="w-3 h-3 text-white inline-block text-center rounded-full bg-grey-dark text-2xs">&#10003;</span>
                            </p>
                            <p class="mt-1 font-hairline text-xs text-grey-darker">
                                336K views &middot; 2 years ago
                            </p>
                            <p class="inline block p-1 text-grey-darker bg-grey-lighter font-hairline text-2xs">
                                CC
                            </p>
                        </div>
                    </div>
                    <div class="flex-1 mr-1">
                        <div>
                            <img src="https://i.ytimg.com/vi/BMUiFMZr7vk/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLCBiAHMlgjlC5lAn12CO1GRPKYgPg" alt="">
                        </div>
                        <div class="mb-4">
                            <h4 class="text-sm font-medium">Higher-order functions - Part 1 of Functional Programming</h4>
                            <p class="mt-2 font-hairline text-sm text-grey-darker">
                                Fun Fun Function
                                <span class="w-3 h-3 text-white inline-block text-center rounded-full bg-grey-dark text-2xs">&#10003;</span>
                            </p>
                            <p class="mt-1 font-hairline text-xs text-grey-darker">
                                336K views &middot; 2 years ago
                            </p>
                            <p class="inline block p-1 text-grey-darker bg-grey-lighter font-hairline text-2xs">
                                CC
                            </p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="border-b">
                <h3 class="py-6 text-base font-medium">
                    Uploads
                    <span class="uppercase ml-3 text-grey-dark">Play all</span>
                </h3>
                <div class="flex mb-4 relative">
                    <div class="absolute w-10 h-10 rounded-full bg-white text-grey-dark text-center -mr-3 pin-r mt-8 shadow-md">
                        <i class="fa fa-chevron-right mt-3" aria-hidden="true"></i>
                    </div>
                    <div class="flex-1 mr-1">
                        <div>
                            <img src="https://i.ytimg.com/vi/C8p7rHwctAg/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLDnbDWPH7Ef-OV7CVWii7v-0RuSBw" alt="">
                        </div>
                        <div class="mb-4 mt-1">
                            <h4 class="text-sm font-medium">Commit editor settings to version control? - Fun Fun Function</h4>
                            <p class="mt-1 font-hairline text-xs text-grey-darker">
                                5.3K views &middot; 4 days ago
                            </p>
                        </div>
                    </div>
                    <div class="flex-1 mr-1">
                        <div>
                            <img src="https://i.ytimg.com/vi/C8p7rHwctAg/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLDnbDWPH7Ef-OV7CVWii7v-0RuSBw" alt="">
                        </div>
                        <div class="mb-4 mt-1">
                            <h4 class="text-sm font-medium">Commit editor settings to version control? - Fun Fun Function</h4>
                            <p class="mt-1 font-hairline text-xs text-grey-darker">
                                5.3K views &middot; 4 days ago
                            </p>
                        </div>
                    </div>
                    <div class="flex-1 mr-1">
                        <div>
                            <img src="https://i.ytimg.com/vi/C8p7rHwctAg/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLDnbDWPH7Ef-OV7CVWii7v-0RuSBw" alt="">
                        </div>
                        <div class="mb-4 mt-1">
                            <h4 class="text-sm font-medium">Commit editor settings to version control? - Fun Fun Function</h4>
                            <p class="mt-1 font-hairline text-xs text-grey-darker">
                                5.3K views &middot; 4 days ago
                            </p>
                        </div>
                    </div>
                    <div class="flex-1 mr-1">
                        <div>
                            <img src="https://i.ytimg.com/vi/C8p7rHwctAg/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLDnbDWPH7Ef-OV7CVWii7v-0RuSBw" alt="">
                        </div>
                        <div class="mb-4 mt-1">
                            <h4 class="text-sm font-medium">Commit editor settings to version control? - Fun Fun Function</h4>
                            <p class="mt-1 font-hairline text-xs text-grey-darker">
                                5.3K views &middot; 4 days ago
                            </p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="border-b">
                <div class="py-6">
                    <h3 class="text-base font-medium">
                        MPJ's Musings
                        <span class="uppercase ml-3 text-grey-dark">Play all</span>
                    </h3>
                    <p class="text-sm font-normal text-grey-dark mt-2 leading-loose max-w-md">More "soft" episodes about software, creativity, motivation, and career.</p>
                </div>
                <div class="flex mb-4 relative">
                    <div class="absolute w-10 h-10 rounded-full bg-white text-grey-dark text-center -mr-3 pin-r mt-8 shadow-md">
                        <i class="fa fa-chevron-right mt-3" aria-hidden="true"></i>
                    </div>
                    <div class="flex-1 mr-1">
                        <div>
                            <img src="https://i.ytimg.com/vi/gXfOdwduXqY/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLAUglms6KZMul1UMpuBfFPM5Ddocw" alt="">
                        </div>
                        <div class="mb-4">
                            <h4 class="text-sm font-medium">Why remote working is so hard</h4>
                            <p class="mt-2 font-hairline text-sm text-grey-darker">
                                Fun Fun Function
                                <span class="w-3 h-3 text-white inline-block text-center rounded-full bg-grey-dark text-2xs">&#10003;</span>
                            </p>
                            <p class="mt-1 font-hairline text-xs text-grey-darker">
                                20K views &middot; 2 months ago
                            </p>
                            <p class="inline block p-1 text-grey-darker bg-grey-lighter font-hairline text-2xs">
                                CC
                            </p>
                        </div>
                    </div>
                    <div class="flex-1 mr-1">
                        <div>
                            <img src="https://i.ytimg.com/vi/gXfOdwduXqY/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLAUglms6KZMul1UMpuBfFPM5Ddocw" alt="">
                        </div>
                        <div class="mb-4">
                            <h4 class="text-sm font-medium">Why remote working is so hard</h4>
                            <p class="mt-2 font-hairline text-sm text-grey-darker">
                                Fun Fun Function
                                <span class="w-3 h-3 text-white inline-block text-center rounded-full bg-grey-dark text-2xs">&#10003;</span>
                            </p>
                            <p class="mt-1 font-hairline text-xs text-grey-darker">
                                20K views &middot; 2 months ago
                            </p>
                            <p class="inline block p-1 text-grey-darker bg-grey-lighter font-hairline text-2xs">
                                CC
                            </p>
                        </div>
                    </div>
                    <div class="flex-1 mr-1">
                        <div>
                            <img src="https://i.ytimg.com/vi/gXfOdwduXqY/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLAUglms6KZMul1UMpuBfFPM5Ddocw" alt="">
                        </div>
                        <div class="mb-4">
                            <h4 class="text-sm font-medium">Why remote working is so hard</h4>
                            <p class="mt-2 font-hairline text-sm text-grey-darker">
                                Fun Fun Function
                                <span class="w-3 h-3 text-white inline-block text-center rounded-full bg-grey-dark text-2xs">&#10003;</span>
                            </p>
                            <p class="mt-1 font-hairline text-xs text-grey-darker">
                                20K views &middot; 2 months ago
                            </p>
                            <p class="inline block p-1 text-grey-darker bg-grey-lighter font-hairline text-2xs">
                                CC
                            </p>
                        </div>
                    </div>
                    <div class="flex-1 mr-1">
                        <div>
                            <img src="https://i.ytimg.com/vi/gXfOdwduXqY/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLAUglms6KZMul1UMpuBfFPM5Ddocw" alt="">
                        </div>
                        <div class="mb-4">
                            <h4 class="text-sm font-medium">Why remote working is so hard</h4>
                            <p class="mt-2 font-hairline text-sm text-grey-darker">
                                Fun Fun Function
                                <span class="w-3 h-3 text-white inline-block text-center rounded-full bg-grey-dark text-2xs">&#10003;</span>
                            </p>
                            <p class="mt-1 font-hairline text-xs text-grey-darker">
                                20K views &middot; 2 months ago
                            </p>
                            <p class="inline block p-1 text-grey-darker bg-grey-lighter font-hairline text-2xs">
                                CC
                            </p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="border-b">
                <div class="py-6">
                    <h3 class="text-base font-medium">
                        Functional programming in Javascript
                        <span class="uppercase ml-3 text-grey-dark">Play all</span>
                    </h3>
                    <p class="text-sm font-normal text-grey-dark mt-2 leading-loose max-w-md">This is a collection of the videos from FunFunFunction that is specifically about functional programming in JavaScript</p>
                </div>
                <div class="flex mb-4 relative">
                    <div class="absolute w-10 h-10 rounded-full bg-white text-grey-dark text-center -mr-3 pin-r mt-8 shadow-md">
                        <i class="fa fa-chevron-right mt-3" aria-hidden="true"></i>
                    </div>
                    <div class="flex-1 mr-1">
                        <div>
                            <img src="https://i.ytimg.com/vi/BMUiFMZr7vk/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLCBiAHMlgjlC5lAn12CO1GRPKYgPg" alt="">
                        </div>
                        <div class="mb-4">
                            <h4 class="text-sm font-medium">Higher-order functions - Part 1 of Functional Programming in JavaScript</h4>
                            <p class="mt-2 font-hairline text-sm text-grey-darker">
                                Fun Fun Function
                                <span class="w-3 h-3 text-white inline-block text-center rounded-full bg-grey-dark text-2xs">&#10003;</span>
                            </p>
                            <p class="mt-1 font-hairline text-xs text-grey-darker">
                                20K views &middot; 2 months ago
                            </p>
                            <p class="inline block p-1 text-grey-darker bg-grey-lighter font-hairline text-2xs">
                                CC
                            </p>
                        </div>
                    </div>
                    <div class="flex-1 mr-1">
                        <div>
                            <img src="https://i.ytimg.com/vi/BMUiFMZr7vk/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLCBiAHMlgjlC5lAn12CO1GRPKYgPg" alt="">
                        </div>
                        <div class="mb-4">
                            <h4 class="text-sm font-medium">Higher-order functions - Part 1 of Functional Programming in JavaScript</h4>
                            <p class="mt-2 font-hairline text-sm text-grey-darker">
                                Fun Fun Function
                                <span class="w-3 h-3 text-white inline-block text-center rounded-full bg-grey-dark text-2xs">&#10003;</span>
                            </p>
                            <p class="mt-1 font-hairline text-xs text-grey-darker">
                                20K views &middot; 2 months ago
                            </p>
                            <p class="inline block p-1 text-grey-darker bg-grey-lighter font-hairline text-2xs">
                                CC
                            </p>
                        </div>
                    </div>
                    <div class="flex-1 mr-1">
                        <div>
                            <img src="https://i.ytimg.com/vi/BMUiFMZr7vk/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLCBiAHMlgjlC5lAn12CO1GRPKYgPg" alt="">
                        </div>
                        <div class="mb-4">
                            <h4 class="text-sm font-medium">Higher-order functions - Part 1 of Functional Programming in JavaScript</h4>
                            <p class="mt-2 font-hairline text-sm text-grey-darker">
                                Fun Fun Function
                                <span class="w-3 h-3 text-white inline-block text-center rounded-full bg-grey-dark text-2xs">&#10003;</span>
                            </p>
                            <p class="mt-1 font-hairline text-xs text-grey-darker">
                                20K views &middot; 2 months ago
                            </p>
                            <p class="inline block p-1 text-grey-darker bg-grey-lighter font-hairline text-2xs">
                                CC
                            </p>
                        </div>
                    </div>
                    <div class="flex-1 mr-1">
                        <div>
                            <img src="https://i.ytimg.com/vi/BMUiFMZr7vk/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLCBiAHMlgjlC5lAn12CO1GRPKYgPg" alt="">
                        </div>
                        <div class="mb-4">
                            <h4 class="text-sm font-medium">Higher-order functions - Part 1 of Functional Programming in JavaScript</h4>
                            <p class="mt-2 font-hairline text-sm text-grey-darker">
                                Fun Fun Function
                                <span class="w-3 h-3 text-white inline-block text-center rounded-full bg-grey-dark text-2xs">&#10003;</span>
                            </p>
                            <p class="mt-1 font-hairline text-xs text-grey-darker">
                                20K views &middot; 2 months ago
                            </p>
                            <p class="inline block p-1 text-grey-darker bg-grey-lighter font-hairline text-2xs">
                                CC
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="w-1/4 py-6">
            <div class="border-b">
                <p class="text-grey-darker uppercase text-sm mb-6">Other channels I like</p>
                <ul class="list-reset">
                    <li class="mb-6">
                        <span class="flex items-center mb-2">
                        <img class="w-6 h-6 rounded-full" src="https://yt3.ggpht.com/-E0Ej_rdX5Ic/AAAAAAAAAAI/AAAAAAAAAAA/kskO1deXSNs/s88-c-k-no-mo-rj-c0xffffff/photo.jpg" alt="">
                        <span class="ml-2">Wes Bos</span>
                        </span>
                        <button class="appearance-none p-2 bg-grey-light uppercase text-grey-darker text-xs mr-4">Subscribe</button>
                    </li>
                    <li class="mb-6">
                        <span class="flex items-center mb-2">
                        <img class="w-6 h-6 rounded-full" src="https://yt3.ggpht.com/-X6Szi46cleA/AAAAAAAAAAI/AAAAAAAAAAA/XJsGnNESQs8/s88-c-k-no-mo-rj-c0xffffff/photo.jpg" alt="">
                        <span class="ml-2">TheHappieCat</span>
                        </span>
                        <button class="appearance-none p-2 bg-grey-light uppercase text-grey-darker text-xs mr-4">Subscribe</button>
                    </li>
                    <li class="mb-6">
                        <span class="flex items-center mb-2">
                        <img class="w-6 h-6 rounded-full" src="https://yt3.ggpht.com/-Lvqivbc77hw/AAAAAAAAAAI/AAAAAAAAAAA/YSd9RXOp_Ng/s88-c-k-no-mo-rj-c0xffffff/photo.jpg" alt="">
                        <span class="ml-2">Siraj Raval</span>
                        </span>
                        <button class="appearance-none p-2 bg-grey-light uppercase text-grey-darker text-xs mr-4">Subscribe</button>
                    </li>
                    <li class="mb-6">
                        <span class="flex items-center mb-2">
                        <img class="w-6 h-6 rounded-full" src="https://yt3.ggpht.com/-1rYs64e24jQ/AAAAAAAAAAI/AAAAAAAAAAA/B2LPB2yW030/s88-c-k-no-mo-rj-c0xffffff/photo.jpg" alt="">
                        <span class="ml-2">The Coding Train</span>
                        </span>
                        <button class="appearance-none p-2 bg-grey-light uppercase text-grey-darker text-xs mr-4">Subscribe</button>
                    </li>
                    <li class="mb-6">
                        <span class="flex items-center mb-2">
                        <img class="w-6 h-6 rounded-full" src="https://yt3.ggpht.com/-kHTbb6oDqmY/AAAAAAAAAAI/AAAAAAAAAAA/BHWd_jlJmJU/s88-c-k-no-mo-rj-c0xffffff/photo.jpg" alt="">
                        <span class="ml-2">sentdex</span>
                        </span>
                        <button class="appearance-none p-2 bg-grey-light uppercase text-grey-darker text-xs mr-4">Subscribe</button>
                    </li>
                    <li class="mb-6">
                        <span class="flex items-center mb-2">
                        <img class="w-6 h-6 rounded-full" src="https://yt3.ggpht.com/-pX2m-odRVjo/AAAAAAAAAAI/AAAAAAAAAAA/kVOqkSiGTaA/s88-c-k-no-mo-rj-c0xffffff/photo.jpg" alt="">
                        <span class="ml-2">noopkat</span>
                        </span>
                        <button class="appearance-none p-2 bg-grey-light uppercase text-grey-darker text-xs mr-4">Subscribe</button>
                    </li>
                </ul>
            </div>
            <div class="py-6">
                <p class="text-grey-darker uppercase text-sm mb-6">RELATED CHANNELS</p>
                <ul class="list-reset">
                    <li class="mb-6">
                        <span class="flex items-center mb-2">
                        <img class="w-6 h-6 rounded-full" src="https://yt3.ggpht.com/-5aj55jp4Jm8/AAAAAAAAAAI/AAAAAAAAAAA/aMg0g6GjNJ8/s88-c-k-no-mo-rj-c0xffffff/photo.jpg" alt="">
                        <span class="ml-2">DevTips</span>
                        </span>
                        <button class="appearance-none p-2 bg-grey-light uppercase text-grey-darker text-xs mr-4">Subscribe</button>
                    </li>
                    <li class="mb-6">
                        <span class="flex items-center mb-2">
                        <img class="w-6 h-6 rounded-full" src="https://yt3.ggpht.com/-OsgBxXITFdg/AAAAAAAAAAI/AAAAAAAAAAA/gDaUV_aSb2Q/s88-c-k-no-mo-rj-c0xffffff/photo.jpg" alt="">
                        <span class="ml-2">Traversy Media</span>
                        </span>
                        <button class="appearance-none p-2 bg-grey-light uppercase text-grey-darker text-xs mr-4">Subscribe</button>
                    </li>
                    <li class="mb-6">
                        <span class="flex items-center mb-2">
                        <img class="w-6 h-6 rounded-full" src="https://yt3.ggpht.com/--JVzzRDG2ME/AAAAAAAAAAI/AAAAAAAAAAA/Q-LECA0Cxb8/s88-c-k-no-mo-rj-c0xffffff/photo.jpg" alt="">
                        <span class="ml-2">The Net Ninja</span>
                        </span>
                        <button class="appearance-none p-2 bg-grey-light uppercase text-grey-darker text-xs mr-4">Subscribe</button>
                    </li>
                    <li class="mb-6">
                        <span class="flex items-center mb-2">
                        <img class="w-6 h-6 rounded-full" src="https://yt3.ggpht.com/-yZnkNC2qlCU/AAAAAAAAAAI/AAAAAAAAAAA/qgA6rParUds/s88-c-k-no-mo-rj-c0xffffff/photo.jpg" alt="">
                        <span class="ml-2">Academind</span>
                        </span>
                        <button class="appearance-none p-2 bg-grey-light uppercase text-grey-darker text-xs mr-4">Subscribe</button>
                    </li>
                    <li class="mb-6">
                        <span class="flex items-center mb-2">
                        <img class="w-6 h-6 rounded-full" src="https://yt3.ggpht.com/-9X-_QJu0RvQ/AAAAAAAAAAI/AAAAAAAAAAA/X3cPcZ5icto/s88-c-k-no-mo-rj-c0xffffff/photo.jpg" alt="">
                        <span class="ml-2">Google Chrome Developers</span>
                        </span>
                        <button class="appearance-none p-2 bg-grey-light uppercase text-grey-darker text-xs mr-4">Subscribe</button>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>

How to make a Youtube 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 make a Youtube Clone component

  • bg-white
  • py-2
  • mx-auto
  • flex
  • w-1/5
  • mr-6
  • text-red-light
  • text-black
  • w-3/5
  • relative
  • h-8
  • p-4
  • text-sm
  • w-full
  • bg-grey-lightest
  • hover:bg-grey-lighter
  • absolute
  • px-8
  • text-grey-dark
  • w-8
  • bg-cover
  • h-112
  • -mt-1
  • bg-grey-lighter
  • py-4
  • px-16
  • w-24
  • h-24
  • ml-6
  • text-2xl
  • mr-2
  • w-3
  • h-3
  • text-white
  • inline-block
  • text-center
  • bg-grey-dark
  • text-2xs
  • mt-2
  • px-3
  • bg-grey-light
  • text-grey-darker
  • mr-4
  • py-3
  • border-b-2
  • border-solid
  • border-grey-dark
  • hover:text-black
  • w-3/4
  • mx-16
  • py-6
  • border-b
  • pb-8
  • block
  • pl-4
  • w-64
  • h-6
  • mb-1
  • text-xs
  • w-1/4
  • w-100
  • my-2
  • text-base
  • ml-3
  • mb-4
  • w-10
  • h-10
  • -mr-3
  • mt-8
  • mt-3
  • flex-1
  • mr-1
  • mt-1
  • inline
  • p-1
  • max-w-md
  • mb-6
  • mb-2
  • w-6
  • ml-2
  • p-2

81 steps to make a Youtube Clone component with Tailwind CSS

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

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

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

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

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

  6. Control the margin on right side of an element to 1.5rem using the mr-6 utilities.

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

  8. Control the text color of an element to black using the text-black utilities.

  9. Use w-3/5 to set an element to a fixed width(3/5).

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

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

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

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

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

  15. Control the background color of an element to grey-lightest using the bg-grey-lightest utilities.

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

  17. Use absolute to position an element outside of the normal flow of the document, causing neighboring elements to act as if the element doesn’t exist.

  18. Control the horizontal padding of an element to 2rem using the px-8 utilities.

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

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

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

  22. Use h-112 to set an element to a fixed height(28rem).

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

  24. Control the background color of an element to grey-lighter using the bg-grey-lighter utilities.

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

  26. Control the horizontal padding of an element to 4rem using the px-16 utilities.

  27. Use w-24 to set an element to a fixed width(6rem).

  28. Use h-24 to set an element to a fixed height(6rem).

  29. Control the margin on left side of an element to 1.5rem using the ml-6 utilities.

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

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

  32. Use w-3 to set an element to a fixed width(0.75rem).

  33. Use h-3 to set an element to a fixed height(0.75rem).

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

  35. Use inline-block utilities to wrap the element to prevent the text inside from extending beyond its parent.

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

  37. Control the background color of an element to grey-dark using the bg-grey-dark utilities.

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

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

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

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

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

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

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

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

  46. Control the border color of an element to solid using the border-solid utilities.

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

  48. Control the text color of an element to black on hover using the hover:text-black utilities.

  49. Use w-3/4 to set an element to a fixed width(3/4).

  50. Control the horizontal margin of an element to 4rem using the mx-16 utilities.

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

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

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

  54. Use inline utilities to put the element on its own line and fill its parent.

  55. Adjust the left padding of an element to 1rem using the pl-4 utilities class

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

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

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

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

  60. Use w-1/4 to set an element to a fixed width(1/4).

  61. Use w-100 to set an element to a fixed width(25rem).

  62. Control the vertical margin of an element to 0.5rem using the my-2 utilities.

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

  64. Control the margin on left side of an element to 0.75rem using the ml-3 utilities.

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

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

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

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

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

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

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

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

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

  74. Use inline utilities to control the flow of text inside the element to wrap normally.

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

  76. Set the maximum width/height of an element using the max-w-md utilities.

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

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

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

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

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

Conclusion

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