question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I am not sure if this is something, which fits well into Emmet, but I think it does. Did you ever consider Emmet support for Tailwind classes? Many Tailwind classes are short by default, but there are still possible abbreviations, which would be helpful. Examples:

  • tb => text-base
  • fb => font-bold
  • tc500 => text-cyan-500
  • ic => items-center

Thoughts?

Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sergechecommented, Dec 9, 2021

Emmet produces structured output dynamically: it takes basically any word and produces tags from it. That’s why it limits itself to specific code places where it can be activated: you wouldn’t expect HTML tags white typing HTML attribute name or attribute value, right?

What I see from Tailwind docs is that it’s just a bunch of predefined utility classes. There’s nothing dynamic about it and they are tied specifically to class="..." attribute value (where Emmet shouldn’t work by design since it’s used to produce HTML markup).

Your case is exactly what editors’ text snippets should be used for: in editors like Sublime Text or VSCode you can create a list of static snippets what should work inside class="..." and provide nice completions popup

0reactions
sprankhubcommented, Dec 8, 2021

Okay, can you elaborate why you think this is not a good addition to Emmet itself?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Browser Support - Tailwind CSS
Understanding which browsers Tailwind supports and how to manage vendor prefixes. In general, Tailwind CSS v3.0 is designed for and tested on the...
Read more >
Tailwind Support
Installation Support. Specific information geared towards setting you up for an amazingly easy installation of the Tailwind system.
Read more >
How can I receive help from Tailwind?
Tailwind has a dedicated customer success team available to help you. You can contact us by sending an email to help@tailwindapp.com or by...
Read more >
SUPPORT - Go Tailwind
Our support team is ready to help. Please click the support button at the lower right section of your screen to submit a...
Read more >
Contact Us
Call, email, or drop us a line using our Contact Us form – Tailwind is here to help your freight transportation business feel...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found