astro-tips.dev icon indicating copy to clipboard operation
astro-tips.dev copied to clipboard

New tip: lightweight tailwind

Open florian-lefebvre opened this issue 2 years ago • 3 comments

Let's write a Tip (not a recipe), which uses the referenced config file as a EC code block to be a snippet for users to copy. Use annotations and highlights where you think it is appropriate. And maybe optional add a screenshot showing the best of the config, if needed.

https://github.com/OliverSpeir/astro-starter/blob/main/tailwind.config.ts

florian-lefebvre avatar Dec 01 '23 15:12 florian-lefebvre

But what's the aim with this code?

rishi-raj-jain avatar Jun 04 '24 11:06 rishi-raj-jain

Ship less css, the core plugins disabled in the linked file all add CSS even if you never use those classes

So you can add enable them only if you need them

OliverSpeir avatar Jun 04 '24 12:06 OliverSpeir

Ship less css, the core plugins disabled in the linked file all add CSS even if you never use those classes

So you can add enable them only if you need them

Ah got it, thanks!

rishi-raj-jain avatar Jun 04 '24 12:06 rishi-raj-jain