This command will allow you import component compositions into your project.
By default, it'll import all component compositions.
## add a specific component
chakra compose add <components>
## list all available component compositions
chakra compose list
--outdir
- specify the output directory for the component composition. defaults tocomponents/ui
--format
- specify the format of the component composition (js or ts). defaults totsx
--dry-run
- run the command without writing to the file system--diff
- compare the current component composition inoutdir
with the latest version--force
- force the command to overwrite the existing component composition
This command will be used to automatically update the types for design tokens.
It requires a path to the design tokens file.
chakra typegen <file-path>
chakra typegen path/to/theme.ts
--dry-run
- run the command without writing to the file system
This command will scaffold a custom or existing theme file in your project.
# scaffold a new theme file
chakra theme init --outdir path/to/dir
# import an existing theme file
chakra theme import <recipe>
# import all theme files (tokens and recipes)
chakra theme import
# list all available theme files
chakra theme list