@saas-ui/chakra-preset
v3.0.1
Published
Saas UI - The Chakra UI preset
Maintainers
Readme
@saas-ui/chakra-preset
The Saas UI Chakra preset provides tokens, semantic tokens, recipes, slot recipes, utilities, and the default Chakra system. It does not bundle Saas UI React components.
For a new application, let the CLI install compatible dependency versions and local provider setup:
npx @saas-ui/cli initThe underlying provider boundary is:
import { ChakraProvider } from '@chakra-ui/react'
import { defaultSystem } from '@saas-ui/chakra-preset'
export function Provider(props: { children: React.ReactNode }) {
return <ChakraProvider value={defaultSystem}>{props.children}</ChakraProvider>
}Use the provider installed by saas-ui init when the application needs the
local link adapter or color-mode integration. Install editable custom components
separately:
npx @saas-ui/cli add sidebar app-shell pageThe package exports defaultSystem (also aliased as system), defaultConfig,
recipe values, and their variant-prop types. Templates bind directly to those
recipe exports so consumers do not need Chakra type generation to use them.
Existing @saas-ui/react users should follow the
migration guide.
License
MIT
