Surjith S M ✪ Profile picture
May 18, 2021 11 tweets 4 min read Read on X
Tailwind CSS vs Inline Styles.

A Visual Comparison outlining a recent #tailwindcss article by @frontstuff_io
1. Inline styles only apply to the elements they’re declared on.
2. Inline styles cannot add pseudo-classes like hover or focus styles
3. Inline styles cannot do deeper nesting, selector lists, or CSS combinators.
4. Inline styles don’t have access to media queries.
5. Inline styles can’t be processed while TailwindCSS is processed using PostCSS
6. Inline styles don’t cache well
7. Inline styles are unlimited. There are no rules, no guidelines, no design system, and no way to enforce anything.
8. Inline styles are one thing at a time.
tl;dr: No, Utility Classes Aren't the Same As Inline Styles

Read more here: frontstuff.io/no-utility-cla…
Thanks for reading so far, If you like this thread, consider re-tweeting it.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Surjith S M ✪

Surjith S M ✪ Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @surjithctly

May 16, 2023
"Tailwind CSS is just Inline styles"

I'm fed up of these comments 🤦‍♂️

So shut up and here is a visual comparison ↓ Image
1. Inline styles only apply to the elements they’re declared on. Image
2. Inline styles cannot add pseudo-classes like hover or focus styles Image
Read 10 tweets
Mar 14, 2023
30 Tailwind CSS Tips ✨

O N E M E G A T H R E A D ↓
✋ Before we start

I've released "Notion Handbook for Tailwind CSS" which includes 30 tips + 10 bonus tips and a lot of other resources and tools.

It's $29, but get it for 50% off today
(only for first 50 people)

dub.sh/handbook
Coupon: TWTR50
Read 34 tweets
Jun 22, 2021
Ten modern layouts in one line of CSS

🎥 Video Thread 🧵👇👇
1. Super Centered Element

👉 place-items: center
02. The Deconstructed Pancake

👉 flex: 0 1 150px
Read 13 tweets
Mar 14, 2021
Last week in Tech Twitter.

📆 March 7th - 14th

A roundup 👇👇

(Viral tweets, product launches, resources and more)
Read 26 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(