-
Notifications
You must be signed in to change notification settings - Fork 815
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
Add support for escaping names in CSS #1049
Comments
TBH I didn't even know the CSS has this escaping behaviour. I think we should support it in general, which would enable this use-case amongst others. |
/
Yeah, it's definitely something I only learned because of the tuilwindcss project 😅 . Might be good to double-check the spec on it, though. Now that I think of it; it's merely something that I've spotted while hacking around and checking the tailwind files. It could be that CSS has some specific rules. |
If I understand the spec correctly, escaping with
And the CSS3 spec seems to point to that same section: https://www.w3.org/TR/selectors-3/#selector-syntax
|
Going to close this one for now. It's not a bad idea, and we may end up implementing it, but it seems niche for now. Will reconsider if there is a demand. |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
I'm working on a plugin that tries to mimic tailwind.css for Textual. It's called tuilwindcss.
Many things work swell out of the box, but I'm stuck on the relative widths. In tailwind.css you're able to use a class like
w-1/5
to declare a 20% width.That would lead me to add the following classes to my generated CSS file.
But! When added that to my CSS file, I got this error when I tried actually using it.
I think Tailwind "solves" this by adding an escape character so that
w-1/5
becomesw-1/\5
, but that yields nearly the same error.Is this something you'd like to support? It would be fun on my end to see how far I might be able to get
tuilwind
to really work liketailwind
.The text was updated successfully, but these errors were encountered: