-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pug-lexer] Tailwind classes support #3373
base: master
Are you sure you want to change the base?
Conversation
There is no change log for this pull request yet. |
is this work already ? I uses Tailwind with Pug FYI, and it's kinda nice to have this. |
you can use Tailwind classes in //- instead of this non-standard syntax
a.focus:border.lg:w-[555px]
//- can be used clear standard syntax
a(class="focus:border lg:w-[555px]") P.S.: Please don't pollute Pug with tailwind's non-standard syntax ;-) |
I think you see it from the wrong perspective 🤔 |
Hear hear. Pug has not progressed feature-wise in past year but CSS frameworks like Tailwindcss has. Pug needs to evolve:
|
I had to let it go as jade (pug) became more and more esoteric. |
Tailwindcss + Pug should be a match made in heaven; we just need pug to allow colons & slashes 🙏 I know we can put tailwind utility classes in the class attribute (I use the responsive utilities on every page, like lg:), but that undoes the syntactic beauty that brought us to pug in the first place |
Support for Tailwind classes syntax like
.lg:w-[555px]
,.hover:border
etcTest added
The only confilct I saw: colon
:
is used for block expansion, but only with space symbol between a blocks, Tailwind no need spaces in class names, so i just add negative lookahead for colon-space combination in regexp