Skip to content

How to toggle class in CDN Version? #481

Answered by rschristian
chanayus asked this question in Q&A
Discussion options

You must be logged in to vote

Twind hashes classnames by default. You can easily configure this however:

<script src="https://cdn.twind.style" crossorigin></script>
<script>
    twind.install({
        hash: false,
    });
</script>

This disables hashing, so bg-red-500 will stay bg-red-500.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chanayus
Comment options

Answer selected by chanayus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants