1.2.10 • Published 4 months ago

@blocto/web-chakra-theme v1.2.10

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
4 months ago

Web Chakra Theme

This is for internal use only.

Usage

install

yarn add @blocto/web-chakra-theme

Since this package only export bundled blocto theme object, you need to combined it with default theme of chakra using extendTheme provided by chakra.

import { ChakraProvider, extendTheme } from '@chakra-ui/react'
import boTheme from '@blocto/web-chakra-theme'

In ChakraProvider:

<ChakraProvider theme={extendTheme(boTheme)}>
  <App />
</ChakraProvider>

Setup autocomplete:

yarn add @chakra-ui/styled-system
npx @chakra-ui/cli tokens /node_modules/@blocto/web-chakra-theme --out ./node_modules/@chakra-ui/system/node_modules/@chakra-ui/styled-system/dist/declarations/src/theming.types.d.ts

Note: Above commend might failed since theming.types.d.ts could located in different folder with various chakra versions. If autocomplete not working, please check where theming.types.d.ts places and replace the --out param. Typically will located in/node_modules/@chakra-ui/system/node_modules/@chakra-ui/styled-system/

Commands

dev

yarn dev

build

yarn build

update from design token repo

git submodule update --remote

publish package

npm publish --access public
1.2.10

4 months ago

1.2.9

9 months ago

1.2.8

12 months ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago