Skip to content

@pandabox/panda-plugins@0.0.2

Compare
Choose a tag to compare
@github-actions github-actions released this 24 Feb 23:49
· 63 commits to main since this release
2ad8c93

Patch Changes

  • 8471320: Add pluginMinimalSetup / pluginStrictTokensScope / pluginRemoveFeatures / pluginRemoveNegativeSpacing

    @pandabox/panda-plugins

    • strict-tokens-scope - Enforce strictTokens only for a set of TokenCategory or style props
    • remove-negative-spacing - Removes negative spacing tokens
    • remove-features - Removes features from the styled-system
    • minimal-setup - Removes the built-in presets and allow removing features from the styled-system

    Installation

    pnpm add -D @pandabox/panda-plugins

    Usage

    import { defineConfig } from "@pandacss/dev";
    import {
      pluginStrictTokensScope,
      pluginRemoveNegativeSpacing,
      pluginRemoveFeatures,
    } from "@pandabox/panda-plugins";
    
    export default defineConfig({
      // ...
      strictTokens: true,
      // can also be used together with
      // strictPropertyValues: true,
      //
      plugins: [
        pluginStrictTokensScope({ categories: ["colors", "spacing"] }),
        pluginRemoveFeatures({ features: ["no-jsx", "no-cva"] }),
        pluginRemoveNegativeSpacing({ spacingTokenType: true, tokenType: true }),
      ],
    });