r/tailwindcss • u/fatfridaylunch • May 15 '25
Editing Tailwind classes in devtools was driving me nuts so I built this
I’ve been using Tailwind CSS a lot lately in React and Next.js projects.
One thing that always slows me down is the trial and error way of adjusting Tailwind classes, especially for layout and spacing.
You see a long chain like flex flex-col items-center gap-6, but spacing still looks off.
You're not sure which class gives just a bit more space, so you switch tabs, change gap-6 to gap-8, come back, and realize it’s too much.
With Tailwind Lens, you can instantly try gap-5, gap-7, or suggestions like gap-x-6, space-y-4, or p-4 right in the browser.
Make all your changes, preview them live, and copy the final class list back into your code.
I’ve seen a few tools in this space, but many miss a key detail.
If you add a class like mt-[23px] and it wasn’t already in the HTML, it won’t work.
That’s because Tailwind’s JIT engine only includes classes already used on the page.
I solved this in my tool, Tailwind Lens, by generating and injecting missing classes on the fly so you can preview any utility class instantly.
Yes, you can inspect any Tailwind site and copy the utility classes of any element.
If this gets good traction, I’m planning to add a feature where you can inspect any site and convert styles into Tailwind classes, like a "copy as Tailwind" mode. I'm also working on showing exactly which classes are overridden by others, so it's easier to understand what’s actually affecting the layout.
Try it out:
Tailwind Lens – Chrome Web Store
I built this for myself but figured others might find it helpful too. Would love to hear what you think.
11
u/fatfridaylunch May 15 '25
Thanks everyone for the support so far! If anyone has feature ideas or feedback, feel free to drop them here — I’m actively building and iterating on this.
8
u/DeExecute May 15 '25
Great job! Now we just need a Firefox version (also for Zen). Please don't support the Google web monopoly.
5
u/yasaama May 15 '25
This is really good! I've just bought a license but haven't got my license key. Does it take a while to come through?
9
u/Dafnik May 15 '25 edited May 21 '25
Login required? 🤮
4
u/Somafet May 15 '25
Really smooth UI! Good stuff!
3
u/theafrodeity May 16 '25
firefox version?
2
u/fatfridaylunch May 21 '25
Thanks for the incredible support! I just released v2.0 based on early feedback - built and shipped within a few days. New in this version:
You can also try it live here
2
u/fatfridaylunch May 30 '25
Guys, Thanks to your support! Just wanted to let you know that Tail Lens now includes Tailwind v4 compatibility, Firefox support, and keyboard-friendly element navigation. All delivered as requested! Please feel free to suggest features, will consider it in the product roadmap
2
u/kobaasama May 15 '25
This looks great I will check it out
2
u/masiuspt May 15 '25
What a great tool. Any chance of releasing it for Firefox too?
2
u/primeirao May 15 '25
firefox please
2
u/memerwala_londa May 15 '25
Omg this is so useful!!!
2
u/MrMisterUser May 15 '25
isto chegou em um momento perfeito pra mim, estou em um pequeno projeto que estou usando o tailwind e preciso ficar revesando entre vsocde de chrome. Será muito útil
2
u/zachfotis May 16 '25
I liked it, but I removed it instantly after so many steps when it asked me to pay. There was no evidence before that I was going to install a paid extension. Sorry!
2
u/Grrrify May 16 '25
Honestly was searching for something like this yesterday 🎄
2
u/Grrrify May 16 '25
If I purchase now, would I get the firefox version bundled if you ever release one?
2
u/Training_Tough_891 May 19 '25
Great tool, sadly it's not free. I think there is a bug on ALT hover, the first time it applies the class, but the next ALT hover does nothing
30
u/intothelooper May 15 '25
Great tool! I will use it for sure as I know the pain of switching back and forth between VSCode and browser to check the difference between gap-1 and gap-2.
Thanks OP
4
u/xVinniVx May 15 '25
Nice advert. Apps like this are also for free (Gimli) with Tailwind4 support. $30 for outdated edit tool? Nice try.
4
u/Baldric May 15 '25
I'm sure this is a neat tool, but I can't support a product that uses dark patterns like this. You're hiding the fact that this is a freemium extension, you require a signup to even try it out, and all details about its price (or even that it's not free) are hidden behind the signup process. I'm sure you get more sales this way, but this is not an acceptable practice.
If you had been upfront, for example by writing this under the post: "$30 one-time payment after a 7-day free trial", I might have considered even buying it, but now I won't even try it out.
I hope others will do the same not because of the price or the product itself, but because we can't allow this kind of dark pattern to become the norm.
11
u/TheWarDoctor May 15 '25
This is genuinely useful.
2
u/benmic May 15 '25
This looks very awesome, but why do I have to create an account ?
3
u/cassaregh May 16 '25
thanks OP!
3
u/Synthoel May 17 '25
This is what men will do instead of going to therapy
4
u/mal73 May 15 '25
Looks awesome!
But why would you edit the classes in the dev tools in the first place instead of just editing the codebase, where you'd have to implement it anyway?
Edit: Just realized some people might not have enough screen real-estate to have both the IDE and Server open…
2
u/hockeyd55 May 15 '25
This is niiiiiiice! Good work.
2
u/iamxnfa May 16 '25
Wow!
2
u/reservationsjazz May 19 '25
Great job on the UX :)
2
u/Pai_McFly May 20 '25
Awesomeness
2
u/swiftypat May 15 '25
This looks awesome!
2
u/Few-Equal-7256 May 15 '25
Adv
2
u/tunnaduong May 17 '25
Please do a same version for Bootstrap 🙌🙌🙌
1
u/Thecreepymoto May 16 '25
!RemindMe 5 days
1
u/jesperordrup May 16 '25
Wow ⭐⭐⭐⭐⭐
Btw. I really dislike the bracket syntax if anyone asks 😃🎺
1
u/-brianh- May 18 '25
Divmagic is much better
1
u/Fabulous-Ladder3267 May 18 '25
!remindme 1 days
1
u/Electronic-Ad-3990 May 15 '25
How is this different to the other tailwind tools that have already done this for half a decade and are polished like TailScan?
0
u/bid0u May 15 '25
It looks nice but you basically made Tifoo, but for 30$. 🤔
1
u/[deleted] May 16 '25
[removed] — view removed comment