Responsive and accessible React UI components built with React and Emotion

Usage no npm install needed!

<script type="module">
  import chakraXuiReact from 'https://cdn.skypack.dev/@chakra-xui/react';


Welcome to Chakra xui ⚡️

All Contributors

  • Works out of the box. Chakra xui contains a set of polished React components that work out of the box.

  • Flexible & composable. Chakra xui components are built on top of a React UI Primitive for endless composability.

  • Accessible. Chakra xui components follows the WAI-ARIA guidelines specifications.

  • Dark Mode 😍: All components are dark mode compatible.

Looking for the documentation?


Installing Chakra xui

⚡️Chakra xui is made up of multiple components and tools which you can import one by one. All you need to do is install the @chakra-xui/react package:

$ yarn add @chakra-xui/react
# or
$ npm install --save @chakra-xui/react

Getting set up

To start using the components, please follow these steps:

  1. Wrap your application in a ThemeProvider provided by @chakra-xui/react
import { ThemeProvider, ColorModeProvider } from "@chakra-xui/react"

const App = ({ children }) => (

ColorModeProvider is a context that provides light mode and dark mode values to the components. It also comes with a function to toggle between light/dark mode.

  1. Now you can start using components like so!:
import { Button } from "@chakra-xui/react"

const App = () => <Button>I just consumed some ⚡️Chakra!</Button>


Feel like contributing? That's awesome! We have a contributing guide to help guide you.

The components to be built come from the Aria Practices Design Patterns and Widgets.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Segun Adebayo
Segun Adebayo

💻 🚧 📖 💡 🎨
Tioluwani Kolawole
Tioluwani Kolawole

📖 💡 🚧

This project follows the all-contributors specification. Contributions of any kind welcome!