chakra-ui-theme-explorer v0.2.4
Chakra Theme Explorer
Ever wondered what tokens are configured in your Chakra UI theme?
With chakra-ui-theme-explorer you get an autogenerated explorer to discover your application theme.

Installation
npm install chakra-ui-theme-explorer
# or
yarn add chakra-ui-theme-explorerUsage
Render the ThemeExplorer component in your app and pass your application theme of chakra UI.
import { ChakraProvider, Heading } from "@chakra-ui/react";
import { ThemeExplorer } from "chakra-ui-theme-explorer";
import { theme } from "./your-app-theme";
const App = () => (
<>
<ChakraProvider theme={theme}>
<Heading>Chakra Theme Explorer Demo</Heading>
</ChakraProvider>
<ThemeExplorer theme={theme} />
</>
);Development
npm start # or yarn startYou can run the example:
cd example
npm i # or yarn to install dependencies
npm start # or yarn startThe default example imports and live reloads whatever is in /dist, so if you are seeing an out of date component, make sure TSDX is running in watch mode like we recommend above. No symlinking required, we use Parcel's aliasing.
To do a one-off build, use npm run build or yarn build.
To run tests, use npm test or yarn test.
Configuration
Code quality is set up for you with prettier, husky, and lint-staged. Adjust the respective fields in package.json accordingly.
Jest
Jest tests are set up to run with npm test or yarn test. This runs the test watcher (Jest) in an interactive mode. By default, runs tests related to files changed since the last commit.
Using the Playground
cd example
npm i # or yarn to install dependencies
npm start # or yarn startThe default example imports and live reloads whatever is in /dist, so if you are seeing an out of date component, make sure TSDX is running in watch mode like we recommend above. No symlinking required!