I cloned Youtube with Tailwind CSS in 3 days and you will learn it in 3 minutes!

Summary
The author recounts their experience of replicating Youtube's interface using Tailwind CSS and Nuxt 3 within three days, offering insights into the development process and tools used.
Abstract
In a follow-up to previous discussions on modern web development practices, the author details their journey of cloning Youtube's UI in just three days, leveraging the utility-first approach of Tailwind CSS and the streamlined capabilities of Nuxt 3. The process is broken down into three main steps: initializing the layout, generating components, and polishing details. The author emphasizes the speed and efficiency gained by utilizing Tailwind CSS to avoid writing custom CSS, and Nuxt 3 to minimize boilerplate code. They also share their method of using prebuilt components and tools like a color picker and a CSS to Tailwind converter to enhance the development speed during the detailing phase. The final product is presented as a testament to the effectiveness of these modern tools and methodologies in web development.
Opinions

Last time, I talked about It’s time to say goodbye to Bootstrap, and Nuxt 3 is here! What’s “Next”!. To continue the conversation, I challenged myself to build Youtube with Tailwind CSS in 3 days and now you will see how I achieved it in 3 minutes. You could find my source code here.
Combining Tailwind CSS with Nuxt 3, I was able to achieve the ridiculous speed of web development I have ever seen in my life. Typically, with Tailwind CSS, I saved a lot of time from writing pure CSS. With Nuxt 3, I could skip a ton of boilerplate code with automatic import/export, dynamic routing, and environment/dev config.
Now, let me introduce a UI system that was inspired by my digital painting hobby:
I could do all of these positionings by just using the “flex” class.

This step is basically to drag and drop. It is where Tailwind really shines compared to any other UI library like Bootstrap and Material Design. There are many Tailwind CSS libraries out there that could satisfy most of my use cases like Flowbite, DaisyUI, and TailwindElement.
The idea was to get a general feeling of what the final product’s gonna look like. Therefore, I grabbed any component that I could find in my first search.

Since 80% of the time was spent on polishing the detail, I used 3 techniques to significantly boost the speed at this step:
To copy icons from Youtube, I inspected the desired icons and copy the SVG part.


VSCode Tailwind Intellisense supports the color picker to help me with styling using hex color.

Sometimes, I would like to know if a Youtube CSS feature would be viable in Tailwind CSS. Then, I could just go to https://transform.tools/css-to-tailwind, parse the code in, and get the code out in Tailwind CSS.

Now, allow me to present the final product after 3 days of sweat. :)

If you enjoy my story, please support me by subscribing to my blog and giving my story some love. It would mean a lot to my coding journey. Also, consider supporting me via:
See you in the next post. :)
Michal MalewiczYou won’t ever see a website the same way after this
Amaresh AdakLearn professional debugging techniques beyond console.log, including Chrome DevTools, source maps, and AI-powered debugging.
HarendraGet a server with 24 GB RAM + 4 CPU + 200 GB Storage + Always Free
Jano le RouxI stumbled upon his exact strategy from A to Z and it's brilliant.