DEV Community

Cover image for Tailwind + Vue Formulate = ❤️

Tailwind + Vue Formulate = ❤️

Justin Schroeder on June 18, 2020

Using Tailwind with Vue Formulate Watching Vue Formulate begin to gain traction in the Vue ecosystem in the last few months has been a r...
Collapse
 
madza profile image
Madza

And I thought it was just Svelte that worked awesome in pair with Tailwind xdd
Thank you so much for this ;)

Collapse
 
ckissi profile image
Csaba Kissi

This is absolutely amazing man! Even the form generation is supported. My VUE forms were bloated and hard to read. This is absolutely the game changer for me

Collapse
 
justinschroeder profile image
Justin Schroeder

Thanks! I'm biased but I agree, I think the component-first api + form generation is a game changer. Excited to see what you build with it 👍

Collapse
 
ckissi profile image
Csaba Kissi • Edited

The recent things I did do not use forms like e.g. tablericons.com but I'm going to create an invoice generator and this will definitely suite my needs. I'll also use it in the admin area of my upcoming SaaS projects.

Thread Thread
 
andrewboyd profile image
Andrew Boyd

Wow! love the UI for the tablericons.com site. I'm going to be inspired heavily by it for some eventual Vue Formulate work. Have aspirations to create a theme customizer (for those who don't use class utility frameworks).

Thread Thread
 
ckissi profile image
Csaba Kissi

Thanks Andrew!

Collapse
 
atharva3010 profile image
Atharva Sharma • Edited

If anyone is wondering where styling of forms went when they deployed their app in production, please make sure that in your purgeCSS config, you have set the matching for *.js files as well.
Like this:

purge: {
    ....
    content: ['./src/**/*.html', './src/**/*.vue', './src/**/*.js']
    ...
},
Enter fullscreen mode Exit fullscreen mode
Collapse
 
rcoundon profile image
Ross Coundon

What is this witchcraft!? Really like the look of this, thanks for pointers over on Discord too

Collapse
 
areindl profile image
Anton Reindl

Works really well! Thank you.

One Question: How would I style a disabled Button with Tailwind? I don't see that attribute in the classes docs :/

Thanks for help and great job. The framework is simply amazing.

Collapse
 
justinschroeder profile image
Justin Schroeder

As of 2.4.4 released this week this is easy! The context object passed to you class functions now includes an attrs property which is all of the element’s attributes including disabled

Collapse
 
ajibsbaba profile image
Samuel Ajibade

This was really helpful

Collapse
 
akyag profile image
Akshay Ghate

Waiting for Vue3 support. This is everything I want :)

Collapse
 
trostcodes profile image
Alex Trost

I used Vue Formulate on a project recently and absolutely loved the API. It’s my go-to from now on. Excited to try out these tailwind techniques!

Collapse
 
justinschroeder profile image
Justin Schroeder

That’s awesome to hear Alex!! Kinda makes it worth it 👍

Collapse
 
ckissi profile image
Csaba Kissi

Justin, one idea... Would it be possible to make a Group type sortable? This would be a very useful feature.

Collapse
 
justinschroeder profile image
Justin Schroeder

It would be...there’s even a feature branch out there with some effort towards that

Collapse
 
benjaminloeffel profile image
Benjamin Löffel

Thank you for this great article, it's been very helpful.

Collapse
 
g33knoob profile image
G33kNoob

Seem interesting, will trying in next project
Currently im in pug project can't use vue

Collapse
 
frknasir profile image
Faruk Nasir

Thank you Justin for your service to #VueNation !

Collapse
 
jtumain profile image
Justin Alexander

Wow. This is great. Will definitely be using this in my next project. Thanks for the work and article. Is this compatible with Vue 3 / Vite?

Collapse
 
justinschroeder profile image
Justin Schroeder

Vue 3 in the works, but as of this post met yet ready

Collapse
 
brandiqa profile image
Michael Wanyoike • Edited

This is by far the best, simplest and most developer friendly JavaScript Form solution I've used so far. Thank you for making and documenting this 🙌