Open stafyniaksacha opened 1 year ago
Would love to have a PR for that :)
And why not having, like in unocss, pre-defined tokens file? For exemple, a pre-defined config from the tailwind default?
@Barbapapazes ; this is something I would love to have but sadly do not had the time to work on it myself yet!
This is the kind of stuff I would love to have contributions on! :)
Okkkk. Have you some docs or exemples on how this can be achieved?
I would happily help; I would say the best way to start is to look over here: https://github.com/Tahul/pinceau/blob/main/playground/theme/tokens.config.ts
This is a basic tokens definition, if I wanted to replicate the theming from other tools, I would do follow the same structure of naming as the tool I'm trying to replicate.
For now, you can maybe make a PR that adds it to the playground, and then I can dig into it myself to check out how to distribute these preset files?
By the way, you can start the playground locally with pnpm play
or pnpm play:nuxt
after installing the repo.
That would be a great to have utils to convert colors defined in tailwind format, like:
In a format exploitable with tailwind css variables: https://tailwindcss.com/docs/customizing-colors#using-css-variables
Pinceau have to store RGB or HSL values, without their function:
255 115 179
198deg 93% 60%
which could be defined like:
and used in tailwind config like: