Skip to content

Conversation

@ryanbalsdon
Copy link

Fixes #42

It looks like there are two very different grammars defined against class names for CSS and for HTML. Where CSS restricts most special characters, HTML only restricts whitespace characters (because it's a space-separated list).

This patch switches the class name validation to use HTML-style, anything-goes class names (that have no spaces). These non-CSS-compliant class names can still be used from within Javascript and are used heavily by TailwindCSS.

Copy link

@manyinsects manyinsects left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one nit, looks good otherwise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for Tailwinds CSS class names

2 participants