@pandabox/panda-plugins
v0.0.8
Published
- `missing-css-warnings` - Logs a warning message when a CSS rule was used at runtime but couldn't be statically extracted - `strict-tokens-scope` - Enforce `strictTokens` only for a set of `TokenCategory` or style props - `strict-tokens-runtime` - Enfo
Downloads
717
Maintainers
Readme
@pandabox/panda-plugins
missing-css-warnings
- Logs a warning message when a CSS rule was used at runtime but couldn't be statically extractedstrict-tokens-scope
- EnforcestrictTokens
only for a set ofTokenCategory
or style propsstrict-tokens-runtime
- EnforcestrictTokens
at runtime, optionally scope this behaviour to a set ofTokenCategory
or style propsrestrict-styled-props
- Adds aprops
on thestyled
JSX Factory to restrict the props that can be passed to the componentremove-negative-spacing
- Removes negative spacing tokensremove-features
- Removes features from thestyled-system
minimal-setup
- Removes the built-in presets and allow removing features from thestyled-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 }),
],
})