SystemProperties types generation missing CssVars. Types suggestions with globalVars without utilities. #3155
summerfallen
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I'm using Panda with a config where I add (extend)
globalVars
with all necessary keys so that I get TypeScript autosuggests. I have the following config withstrictTokens
andstrictPropertyValues
enabled:I see that the generated
type SystemProperties
instyle.props.d.ts
for thecolor
property is:which doesn't offer suggestions because as I see
CssVars
is not provided.However, if I configure:
then the generated type becomes:
allowing suggestions (showing all variables defined in the config, even those unrelated to colors).
From what I understand, the type
CssVars
isn't added when the property is missing in the config as it's implemented ingenerateStyleProps()
here.My questions are:
Any insights are appreciated. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions