DEV Community

Cover image for Dev.to clone with tailwind CSS

Dev.to clone with tailwind CSS

Rohith Gilla on May 04, 2020

TLDR; Github repo Link Live https://devto-tailwind.netlify.app/ GIF Image We will be cruising through the following topics What is tailwind? ...
Collapse
 
ben profile image
Ben Halpern •

Wow, cc @pp

Collapse
 
pp profile image
Paweł Ludwiczak •

Really cool proof of concept! Tailwind is super powerful, I've been a huge fan for a while.

Also, recreating existing products/projects is the best way to learn - not only in dev world but also in design.

Collapse
 
gillarohith profile image
Rohith Gilla •

Thanks a lot 🙌
Yes accepted replicating existing product is the best way to learn something.
I replicated YouTube also
dev.to/gillarohith/i-replicated-yo...
Tailwind ftw 🙌
Thanks
Gilla

Collapse
 
gillarohith profile image
Rohith Gilla •

Thanks means a lot 🙌🥳

Collapse
 
bugsysailor profile image
Bugsy Sailor •

I'm new to Tailwind, but a bit confused. Why is the CSS file 1.6MB?

Collapse
 
gillarohith profile image
Rohith Gilla •

Hey, so we are using the default config along with custom config, we can reduce the size by deleting the colours from tailwind.js file.

Collapse
 
jsn1nj4 profile image
Elliot Derhay •

File size can also be reduced by removing varients you don't need. Also, if you're comfortable with something like Purgecss, that'll remove every class you're not using. That'll really reduce file size.

Thread Thread
 
gillarohith profile image
Rohith Gilla •

Wow thanks, will definitely check that out.

Thread Thread
 
jsn1nj4 profile image
Elliot Derhay •

Purgecss is amazing. But do make sure you have it set up correctly to check source files. That's how it determines what classes you're using.

Depending on what tools you build with, you may also need to whitelist some selectors. That should be covered in the Purgecss docs.

Thread Thread
 
gillarohith profile image
Rohith Gilla •

Oh cool thanks for the heads up, will be ready for it.

Collapse
 
vitorhugomattos profile image
Info Comment hidden by post author - thread only accessible via permalink
Vitor Hugo •

really cool, but I think one of the main reasons for using something like tailwind is the ability to make responsive layouts without having to write CSS and it looks like you forgot it

on my ultrawide
(why this white bar?)
tablet?
phone size

Collapse
 
gillarohith profile image
Rohith Gilla •

Hey my intention was to replicate only the desktop version of the site. If you want to work on the mobile version please let me know 😄
Thanks for the appreciation btw 🙌

Collapse
 
sonicoder profile image
Gábor Soós •

A comparison between the size of stylesheets and rendering times would be interesting also,
Nice replica 👍

Collapse
 
gillarohith profile image
Rohith Gilla •

Thanks for the appreciation.
I didn’t understand exactly what you want me to compare. Can you elaborate it.
Thanks
Gilla

Collapse
 
sonicoder profile image
Gábor Soós •

The size of the stylesheets of the current site and the one with Tailwind css.
How fast is rendering with it.

Thread Thread
 
gillarohith profile image
Rohith Gilla •

Oh gotcha, but since it’s only UI design and not making any api calls, we shouldn’t compare rendering I feel.
But yeah we can definitely compare the style sheet sizes.
Thanks for the idea will do it from next time.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt •

Do people forget about mobile these days?

Collapse
 
gillarohith profile image
Rohith Gilla •

Hey my intention was to replicate only the desktop version of the site. If you want to work on the mobile version please let me know 😄

Collapse
 
saurabhdaware profile image
Saurabh Daware 🌻 •

This is soooo coool Rohith!!!

Collapse
 
gillarohith profile image
Rohith Gilla •

Thanks a lot 🙌
It gives morale boost

Collapse
 
bobj2018 profile image
Joshua Rieth •

I am a fan of TailWind. It has helped me understand the positional element.

Collapse
 
gillarohith profile image
Rohith Gilla •

I’m happy to hear that.
Tailwind ftw

Collapse
 
javaarchive profile image
Raymond •

Great job. Have you tried glitch.com, you can get quick previews of what your HTML looks like.

Collapse
 
gillarohith profile image
Rohith Gilla •

Thanks a lot for the appreciation.
No I haven’t tried it, will definitely check it out.

Collapse
 
adgower profile image
Alex Gower •

awesome! Tailwindcss is dope.

Collapse
 
gillarohith profile image
Rohith Gilla •

Yo thanks 🙌

Collapse
 
sergix profile image
Peyton McGinnis •

Tailwind is love

Tailwind is life

Collapse
 
gillarohith profile image
Rohith Gilla •

Tailwind ftw

Collapse
 
majeo69 profile image
Alex •

Wow

Collapse
 
gillarohith profile image
Rohith Gilla •

Thank you 🙌

Collapse
 
vishnubaliga profile image
Vishnu Baliga •

Amazing, Good effort!
Tailwind is awesome, always been a huge fan of it.

Collapse
 
gillarohith profile image
Rohith Gilla •

Thanks 🙌

Collapse
 
jgb profile image
Jean Bousiquot •

Really nice! I've started using Tailwind a few days ago and I'm enjoying it. :D

Collapse
 
gillarohith profile image
Rohith Gilla •

Thanks 🙌
Wow that’s great you will definitely love it

Collapse
 
gillarohith profile image
Rohith Gilla •

Yes, definitely.
The documentation is amazing 🙌
I wrote a post too on how to setup your react dev env and also created a template repo on GitHub, I hope that helps
Thanks

Collapse
 
soniarpit profile image
Arpit •
Collapse
 
gillarohith profile image
Rohith Gilla •

Hey thanks a lot 🙌
Looks like you are a python developer, please do check out my new series on python packages 📦
I hope you will find them interesting ✌️

Some comments have been hidden by the post's author - find out more