github chakra-ui/panda @pandacss/core@1.4.2

Patch Changes

  • 70420dd: Fix issue where using token() or token.var() function from styled-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

Don't miss a new panda release

NewReleases is sending notifications on new releases.