Patch Changes
-
70420dd: Fix issue where using
token()
ortoken.var()
function fromstyled-system/tokens
doesn't get resolved by
the compiler.import { token } from 'styled-system/tokens' import { css } from 'styled-system/css' css({ // This didn't work before, but now it does outline: `2px solid ${token('colors.gray.500')}`, // This has always worked outline: `2px solid token('colors.gray.500')`, })
This also supports fallback values.
css({ color: token('colors.brand.primary', '#3b82f6'), })
-
Updated dependencies [1290a27]
-
Updated dependencies [70420dd]
- @pandacss/shared@1.4.2
- @pandacss/token-dictionary@1.4.2
- @pandacss/types@1.4.2
- @pandacss/is-valid-prop@1.4.2
- @pandacss/logger@1.4.2