strict-tokens-scoped - Enforce strictTokens only for a set of TokenCategory or style props
Installation
pnpm add -D @pandabox/panda-plugins
Usage
import { defineConfig } from '@pandacss/dev'
import { createStrictTokensScope } from '@pandabox/panda-plugins'
export default defineConfig({
// ...
strictTokens: true,
// can also be used together with
// strictPropertyValues: true,
plugins: [createStrictTokensScope({ categories: ['colors'] })],
})
@pandabox/panda-plugins
strict-tokens-scoped
- EnforcestrictTokens
only for a set ofTokenCategory
or style propsInstallation
Usage