Replies: 1 comment 2 replies
-
I think not, as alternatives you can:
<div
className={css({
display: '[var(--display)]',
boxSizing: '[var(--box-sizing)]',
})}
style={{
'--display': 'flex',
'--box-sizing': 'content-box',
}}
>
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
When
strictPropertyValues: true
is set in the Panda config, using a CSS variable for aStrictableProps
is marked as a TS error. This is a relatively reasonable position for Panda to take, but it does mean that the following pattern triggers a TS error, despite it being a valid pattern according to the example at https://panda-css.com/docs/guides/dynamic-styling#using-token:Should
strictPropertyValues
allow the TS template literal typevar(${string})
as a valid value for allStrictableProps
properties?Thanks!
Link to Reproduction
https://play.panda-css.com/gP-PgP1fJE
Steps to reproduce
JS Framework
No response
Panda CSS Version
0.34.3
Browser
No response
Operating System
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions