Skip to content
Discussion options

You must be logged in to vote

So I just wanted to share that I've taken a different look at my initial approach and have come up with what is probably a much better solution.

https://codesandbox.io/s/nuxtjs-twind-s90bw?file=/plugins/twind.js

Ultimately I've just included Twind as a global instance and, by using a computed property, I can apply styles directly to elements in my template via a class binding. I'm still testing it out, but I think this is a much simpler, much less over-engineered approach.

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@lukejacksonn
Comment options

@sastan
Comment options

@tylerforesthauser
Comment options

@sastan
Comment options

@tylerforesthauser
Comment options

Comment options

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

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