Docs ambiguity: can textStyles be defined without extends? #1940
Replies: 1 comment
-
quickly answering in the meantime:
yes, the extend keyword just means that you want to deep merge your config with the presets (both built-ins & customs), if you're omitting it that means you'll erase everything else but your own config
no, do as you wish
yes
yes, those functions from |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Subject
textStyles
Description
Right now, the guide in https://panda-css.com/docs/theming/text-styles suggests creating a separate
text-styles.ts
file and usingtheme.extends.textStyles
inpanda.config.ts
. That seems unclear to me on a few points:text-styles.ts
file is being recommended rather than doing it inline inpanda.config.ts
?panda.config.ts
, would directly setting it in the config be ok?defineTextStyles
?Whatever the answers to all these questions, requesting they be placed in the docs please. 🙂
Beta Was this translation helpful? Give feedback.
All reactions