Skip to content

What is a preset? #304

Answered by IgnusG
manuganji asked this question in Q&A
Mar 29, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Twind, in v1 at least, works more like unocss in that it doesn’t come with any predefined rules (it’s basically an empty CSS compiler and you can write your own rules if you’d like).

if you’d like to use some predefined ones such as the Tailwind 3.0 ones you can include the Tailwind preset and those rules will become available to you.

Twind v0 comes with the tailwind 2.0 rules preloaded I think so you don’t need to specify anything there. I think it doesn’t support presets at all which is why it’s missing in the documentation (the docs are not up to date yet as v1 is still in alpha).

Until the release you can consult examples, https://github.com/tw-in-js/twind/blob/next/website/pages/docs…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@manuganji
Comment options

Answer selected by manuganji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants