Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Allow RegExp pattern for @source inline() safelist in Tailwind v4 #19093

Moongazer started this conversation in Ideas
Discussion options

We want to use Tailwind v4 with a CMS, so we have to whitelist many classes which can be used inside the WYSIWYG editor.

With @source inline("{,sm:,md:,lg:}text-{center,left,right} ...") we can add many required classes, but there are so many more, that it would be great to somehow import these using RegExp attern like /^text-/ and /^font-/ like in the old days (JavaScript definition).

Or is this possible already somehow and we missed it in the documentation?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /