Chakra UI
Chakra UI is a **React component library** with “style props” (e.g., `px`, `bg`, `rounded`).
Install
bash
npm i @chakra-ui/react @emotion/react @emotion/styled framer-motionProvider setup
tsx
import { ChakraProvider, extendTheme } from "@chakra-ui/react";
const theme = extendTheme({
config: { initialColorMode: "dark", useSystemColorMode: false },
colors: { brand: { 500: "#2563eb" } },
});
export function AppProviders({ children }: { children: React.ReactNode }) {
return <ChakraProvider theme={theme}>{children}</ChakraProvider>;
}Component example
tsx
import { Button, Card, CardHeader, CardBody, Heading, Text } from "@chakra-ui/react";
export function ExampleCard() {
return (
<Card bg="blackAlpha.300" borderWidth="1px" borderColor="whiteAlpha.200">
<CardHeader><Heading size="md">Server Ready</Heading></CardHeader>
<CardBody>
<Text opacity={0.9}>Deploy behind Nginx, add TLS, and monitor.</Text>
<Button mt={4} colorScheme="blue">Get Started</Button>
</CardBody>
</Card>
);
}Tip: keep tokens stable
- Define your colors/spacing in the theme and avoid random inline values.
Page changelog
Last updated
- 2026-01-18—Initial or baseline update for this page.
Related articles
Getting Started
Tutorials Hub — Learn by Building
Step-by-step workflows that teach deployment, security, and operations by shipping small projects.
Getting Started
Glossary — Infrastructure Terms
Short, clear definitions for common deployment, networking, and security terminology.
Getting Started
Changelog — Documentation Updates
What changed recently in the documentation, plus guidance for versioning docs as code.
Getting Started
Support & FAQ
Quick answers, how to get help, and what information to include when reporting an issue.
Getting Started
Bootstrap — Classic CSS Framework (Fast Layouts)
Use Bootstrap for rapid grids and components, and learn how to override safely with real CSS snippets.
Getting Started
shadcn/ui — Tailwind Components You Own
Add beautiful, accessible components to your app without locking into a hosted UI library. Includes practical examples and structure tips.
Was this page helpful?