github chakra-ui/panda @pandacss/token-dictionary@1.9.1

latest releases: @pandacss/generator@1.9.1, @pandacss/parser@1.9.1, @pandacss/extractor@1.9.1...
4 hours ago

Patch Changes

  • d02fcf6: Fix duplicate token references with special characters resolving incorrectly in composite values

    When the same token reference containing special characters (e.g. {sizes.0.5}) appeared more than once in a
    composite value, only the first occurrence was resolved correctly. The second occurrence produced a malformed CSS
    variable name.

    This was caused by String.replace() only replacing the first match. Changed to String.replaceAll() in
    Token.expandReferences() and expandReferences() utility.

    Before (broken): --shadows-control-accent: 0 var(--sizes-0\.5) var(--sizes-0-5) rgba(92, 225, 113, 0.25)

    After (fixed): --shadows-control-accent: 0 var(--sizes-0\.5) var(--sizes-0\.5) rgba(92, 225, 113, 0.25)

    • @pandacss/logger@1.9.1
    • @pandacss/shared@1.9.1
    • @pandacss/types@1.9.1

Don't miss a new panda release

NewReleases is sending notifications on new releases.