npm explorer

@chakra-ui/cli

v0.0.0-pr-202215132532

Generate theme typings for autocomplete

themethemingtypingsgeneratorchakra-uitypegentheme
0/weekUpdated 6 days agoMITUnpacked: 77.4 KB
Published by Segun Adebayo
npm install @chakra-ui/cli
RepositoryHomepagenpm

@chakra-ui/cli

Generate TypeScript types to provide autocomplete for your custom theme and add
components and blocks to your project.

Commands

$3

Generate TypeScript types for your custom theme:

``sh
npx @chakra-ui/cli tokens
`

or

`sh
npx @chakra-ui/cli tokens <@your-org/chakra-theme-package>
`

`sh
$ npx @chakra-ui/cli tokens --help

Usage: chakra-cli tokens [options]

Options:
--out output file e.g. node_modules/@chakra-ui/styled-system/dist/declarations/src/theming.types.d.ts
--strict-component-types Generate strict types for props variant and size
--strict-token-types Generate strict types for theme tokens (e.g. color, spacing)
--no-format Disable auto formatting
--watch [path] Watch directory for changes and rebuild
--template