Re:Why Tailwind CSS Won
by deprecative on Wednesday August 16, 2023 @05:45PM
(#37154311)
That's just a CSS variable. You don't need Tailwind for that.
[ Parent
| on HN ]
Never said you did. I was just explaining that you aren't "using someone else's padding and margin classes".
Re:Why Tailwind CSS Won
by cantSpellSober on Thursday August 17, 2023 @09:09AM
(#37160995)
They are CJS modules or (ideally) Typescript. CSS custom properties (variables) are slightly different.
import type { Config } from 'tailwindcss'
export default {
content: [],
theme: {
extend: {},
},
plugins: [],
} satisfies Config
(not arguing for or against TW here)