astrolicious / astro-tips.dev

The place for content that goes beyond the official docs, for all Astronauts!

Home Page:https://astro-tips.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New tip: lightweight tailwind

florian-lefebvre opened this issue · 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

But what's the aim with this code?

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

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!