Does anyone here use tailwind CSS? I heard it was ...
# water-cooler
a
Does anyone here use tailwind CSS? I heard it was the bees knees but I'm finding it hard to get started with. Templates etc all seem to be paid options.
I like https://www.primefaces.org/primeflex/ but not using React for a side project
h
I've used tailwind for one project. it was really flexible. The compiliation process was sort of cumbersome to figure out initially.
I didn't use any templates. I had found a pretty good AlpineJS tutorial on Youtube and the person teaching it also used Tailwind, so kinda of learned both at the same time.
s
We use it for everything and love it. I bought tailwindUI a long time ago and use some of it for our company and also for some personal projects.
👍 1
m
We’ve just began using it this year and I like the speed of working with it, but I’m still not 100% on the philosophy behind it.
a
Thanks all. I can see tailwindUI would be a rapid jump start but as this is just a side project which I'm doing purely to learn new things that's pricey. I've not got any JS of any flavour in this project yet so setting up a build step just to see if I can get on with tailwind has put me off for the moment!
s
The templates aren't necessary. Tailwind by itself is pretty quick to develop with once you get used to it
h
you don't need to use the build step to get a feel for it. You can point to the play CDN to give it a spin but it does get repetitive having to specify all the class names to style stuff each time: https://tailwindcss.com/docs/installation/play-cdn

https://www.youtube.com/watch?v=5ILDMMLgX0E&t=7563s▾

c
you can combine tailwind classes into your own classes, then for the repetitive bits you can have a meaningful and reusable class name https://tailwindcss.com/docs/functions-and-directives#apply
a
Thanks, I saw that. It's similar to how I'd do it with SaSS and PrimeFlex
@include
- just was being too lazy to setup node etc for my "try stuff out" pet project. Will have to get around to it though so I can experiment.
c
worth doing all the node bits and bobs eventually, there are so many useful things - it can cut out all the unused styles and trim itself down to super small also.
a
Does that work on cfml templates as well? - I read the docs and guess you just add whatever extension you want it to watch for classes.
c
Tbh i have not got into using it myself yet (and unlikely we will end up using it with CF), the node guys we have are doing amazing things with it though.
a
Cool. I was planning to play with Alpine.js anyway so will need to set up npm at some point. PrimeFlex and PrimeReact have served me well but deliberately not using things I've used before to learn me sumfink.
Nice to build something without the commercial world constraints of having to deliver as you can deliberately go down rabbit holes and see where they lead!
c
Yeah commercial constraints can get in the way of those way to fun rabbit holes within rabbit holes. Had not heard of PrimeReact, looks like a goodun.
👍 1
a
Just finished messing with Playwright for end-to-end testing and it's pretty nice. Have previously used Cypress - do find Cypress was easier to get started with, but like the "accessibility first" approach of Playwright - but that does make it harder to do some things