Replies: 1 comment 1 reply
-
Moving this to a discussion for now. This is a very tricky to solve since it's on the hot path of the generated TS code Tagging @astahmer on this one so we can discuss this further. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I made a custom utility for width and set the values equal to
1
and2
. The types for this utility accept1/2
due to theWithColorOpacityModifier
allowing strings that start with a value and contain a forward slash, e.g.${T}/
.Link to Reproduction
https://play.panda-css.com/NgeBz8-8QC
Steps to reproduce
1
and2
are the only allowed valuesJS Framework
No response
Panda CSS Version
0.53.0
Browser
No response
Operating System
Additional Information
WithEscapeHatch
unionsWithColorOpacityModifier
which allows strings that contain{token}/{string}
.Perhaps there would be two
WithEscapeHatch
types, one specifically forgroup:color
and one for all other properties? Something like:Beta Was this translation helpful? Give feedback.
All reactions