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

latest releases: @pandacss/studio@1.4.0, @pandacss/config@1.4.0, @pandacss/types@1.4.0...
19 months ago

Minor Changes

  • fde37d8: Add support for element level css reset via preflight.level. Learn more
    here.

    Setting preflight.level to 'element' applies the reset directly to the individual elements that have the scope class
    assigned.

    import { defineConfig } from "@pandacss/dev";
    
    export default defineConfig({
      preflight: {
        scope: ".my-scope",
        level: "element", // 'element' | 'parent (default)'
      },
      // ...
    });

    This will generate CSS that looks like:

    button.my-scope {
    }
    
    img.my-scope {
    }

    This approach allows for more flexibility, enabling selective application of CSS resets either to an entire parent
    container or to specific elements within a container.

Patch Changes

  • 34d94cf: Unify the token path syntax when using formatTokenName

    Example with the following config:

    import { defineConfig } from '@pandacss/dev'
    
    export default defineConfig({
      hooks: {
        'tokens:created': ({ configure }) => {
          configure({
            formatTokenName: (path: string[]) => '

Don't miss a new panda release

NewReleases is sending notifications on new releases.