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:borderetcTest 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