3 ms·
> Should your IDE know about these classes? > Can you autocomplete class names? Yes! (https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwi
by lxe 6y ago
> Should your IDE know about these classes?
> Can you autocomplete class names?
Yes! (https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss https://marketplace.visualstudio.com/items?itemName=bradlc.v...)
Although I wouldn't mind an array instead so I can use the typescript typechecker.
- welder 6y agoYou get type checking automatically using withStyles, no plugin needed. That plugin is kinda cool with the css preview feature, but I bet using the built-in IDE autocomplete is more reliable. I also find withStyles more readable in general, for ex: theme: { button: { primary: { color: 'blue', padding: '2px', }, }, } <Button {...css(theme.button.primary)}> vs. tailwind classes: <Button className="text-blue p-2">