You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just wanted to make sure I understand the usage around the defineTheme and its purpose. It's not to help define the config but add stricter typing to the theme?
I'm unsure what to do with const config = theme.build() once that's run. Do I use config in the defineConfig settings? It seems I still need to update the defineConfig function as if I'm not using pandabox at all.
honestly this '@pandabox/define-theme' package was mostly an experiment to see how far I could go to make the config type-safe
conclusion is that there's too many limitations (values from utility using functions can't be inferred, can't infer preset values, can't infer colorPalette..)
I'll remove it from the main README and add a note in the packages/define-theme/README
this approach works better to get type-safety in your config recipes
Hello!
I just wanted to make sure I understand the usage around the
defineTheme
and its purpose. It's not to help define the config but add stricter typing to the theme?I'm unsure what to do with
const config = theme.build()
once that's run. Do I useconfig
in the defineConfig settings? It seems I still need to update the defineConfig function as if I'm not usingpandabox
at all.Code examples below:
define-theme.ts
filepreset.ts
fileThanks for all you for the Panda CSS community!
The text was updated successfully, but these errors were encountered: