github chakra-ui/panda @pandacss/config@0.34.0

latest releases: @pandacss/types@0.49.0, @pandacss/token-dictionary@0.49.0, @pandacss/generator@0.49.0...
9 months ago

Patch Changes

  • 1c63216: Add a config validation check to prevent using spaces in token keys, show better error logs when there's a CSS parsing error

  • 9f04427: Fix "missing token" warning when using DEFAULT in tokens path

    import { defineConfig } from "@pandacss/dev";
    
    export default defineConfig({
      validation: "error",
      theme: {
        semanticTokens: {
          colors: {
            primary: {
              DEFAULT: { value: "#ff3333" },
              lighter: { value: "#ff6666" },
            },
            background: { value: "{colors.primary}" }, // <-- ⚠️ wrong warning
            background2: { value: "{colors.primary.lighter}" }, // <-- no warning, correct
          },
        },
      },
    });

    Add a warning when using value twice

    import { defineConfig } from "@pandacss/dev";
    
    export default defineConfig({
      validation: "error",
      theme: {
        tokens: {
          colors: {
            primary: { value: "#ff3333" },
          },
        },
        semanticTokens: {
          colors: {
            primary: {
              value: { value: "{colors.primary}" }, // <-- ⚠️ new warning for this
            },
          },
        },
      },
    });
  • Updated dependencies [d1516c8]

    • @pandacss/types@0.34.0
    • @pandacss/logger@0.34.0
    • @pandacss/preset-base@0.34.0
    • @pandacss/preset-panda@0.34.0
    • @pandacss/shared@0.34.0

Don't miss a new panda release

NewReleases is sending notifications on new releases.