4 ms·
These refer to customizable variables and breakpoints that everyone using the library and having done css would know and you can probably click on your IDE to g
by conradfr 3y ago
These refer to customizable variables and breakpoints that everyone using the library and having done css would know and you can probably click on your IDE to get to their definition.
Personally I think that's way better than putting padding & margin in your own css classes.
It actually cuts down a lot on the custom css you need to write and also helps having a uniform design.
- deprecative 3y agoYou're just using someone else's padding and margin classes. At least when you write your own it makes sense instead of Tailwind's alphabet soup bloat.
- ajanuary 3y agoNot really. Tailwind lets you configure your own spacing and breakpoints. You get to pick what those numbers mean.
- deprecative 3y agoThat's just a CSS variable. You don't need Tailwind for that.
- ajanuary 3y agoNever said you did. I was just explaining that you aren't "using someone else's padding and margin classes".
- cantSpellSober 3y agoThey 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)