Moving from Tailwind to CSS Variables(mikerogers.io)
mikerogers.io
Moving from Tailwind to CSS Variables
https://mikerogers.io/2021/05/12/moving-from-tailwind-to-css-variables
2 comments
https://tailwindcss.com/docs/adding-base-styles helps with the preflight being „too aggressive"
This seems like a really good idea to me. I haven't used Tailwind extensively, but in general I prefer to avoid preprocessors because I'm going to get exposed to the output in the browser when I go to debug it.
I'm sure CSS variables are less capable than Tailwind, but they seem to solve a huge chunk of the problem with a far, far lower overhead (i.e. not invoking an extra build step). Am I missing something?
I'm sure CSS variables are less capable than Tailwind, but they seem to solve a huge chunk of the problem with a far, far lower overhead (i.e. not invoking an extra build step). Am I missing something?