github chakra-ui/panda @pandacss/generator@0.37.0

latest releases: @pandacss/types@1.3.0, @pandacss/token-dictionary@1.3.0, @pandacss/extractor@1.3.0...
17 months ago

Minor Changes

  • bcfb5c5: ### Fixed

    • Fix className collisions between utilities by using unique class names per property in the default preset.

    Changed

    • Color Mode Selectors: Changed the default selectors for _light and _dark to target parent elements. This
      ensures consistent behavior with using these conditions to style pseudo elements (like ::before and ::after).
    const conditions = {
    -  _dark: '&.dark, .dark &',
    +  _dark: '.dark &',
    -  _light: '&.light, .light &',
    +  _light: '.light &',
    }
    • Changed divideX and divideY now maps to the borderWidths token group.

    Added

    • Spacing Utilities: Add new spaceX and spaceY utilities for applying margin between elements. Especially useful
      when applying negative margin to child elements.
    <div className={flex({ spaceX: "-1" })}>
      <div className={circle({ size: "5", bg: "red" })} />
      <div className={circle({ size: "5", bg: "pink" })} />
    </div>
    • Added new _starting condition to support the new @starting-style at-rule.
      Learn more here
    • Gradient Position: Add new gradientFromPosition and gradientToPosition utilities for controlling the position
      of the gradient color stops.
    <div
      className={css({
        bgGradient: "to-r",
        // from
        gradientFrom: "red",
        gradientFromPosition: "top left",
        // to
        gradientTo: "blue",
        gradientToPosition: "bottom right",
      })}
    />

Patch Changes

  • 4e6cf85: Add missing typings for CSS vars in properties bound to utilities (and that are not part of the list affected by strictPropertyValues)
  • Updated dependencies [7daf159]
  • Updated dependencies [bcfb5c5]
  • Updated dependencies [6247dfb]
    • @pandacss/shared@0.37.0
    • @pandacss/types@0.37.0
    • @pandacss/core@0.37.0
    • @pandacss/token-dictionary@0.37.0
    • @pandacss/logger@0.37.0
    • @pandacss/is-valid-prop@0.37.0

Don't miss a new panda release

NewReleases is sending notifications on new releases.