Gathering detailed insights and metrics for @chakra-ui/system
Gathering detailed insights and metrics for @chakra-ui/system
Gathering detailed insights and metrics for @chakra-ui/system
Gathering detailed insights and metrics for @chakra-ui/system
@chakra-ui/styled-system
Style function for css-in-js building component libraries
@chakra-ui/react
Responsive and accessible React UI components built with React and Emotion
@chakra-ui/provider
Theme and components agnostic ChakraProvider
@chakra-ui/vue
Build Accessible and Responsive Vue.js websites and applications with speed ⚡️
Chakra UI is a component system for building SaaS products with speed ⚡️
npm install @chakra-ui/system
Typescript
Module System
Node Version
NPM Version
@chakra-ui/cli@3.22.0
Updated on Jul 07, 2025
@chakra-ui/panda-preset@3.22.0
Updated on Jul 07, 2025
@chakra-ui/react@3.22.0
Updated on Jul 07, 2025
@chakra-ui/charts@3.22.0
Updated on Jul 07, 2025
@chakra-ui/panda-preset@3.21.1
Updated on Jun 28, 2025
@chakra-ui/charts@3.21.1
Updated on Jun 28, 2025
TypeScript (82.19%)
MDX (16.96%)
JavaScript (0.71%)
CSS (0.07%)
HTML (0.06%)
Dockerfile (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
39,340 Stars
10,957 Commits
3,442 Forks
201 Watchers
10 Branches
694 Contributors
Updated on Jul 10, 2025
Latest Version
2.6.2
Package Id
@chakra-ui/system@2.6.2
Unpacked Size
152.22 kB
Size
25.77 kB
File Count
87
NPM Version
9.8.1
Node Version
18.18.2
Published on
Nov 09, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
7
3
Styled API for creating atomic, theme-aware component styling.
1yarn add @chakra-ui/system 2 3# or 4 5npm i @chakra-ui/system
In modern web development, we have lots of solutions and architectures that have tried to unify how components are styled. We've seen CSS architectures like BEM, SMACSS, etc, and frameworks like theme-ui, and Tailwind CSS.
While these solutions work great, we still think there is a sheer amount of work required to create a fully customizable, theme-aware component.
Chakra provides enhanced JSX elements that can be styled directly via props, or
can accept the common sx
prop for custom styles.
We'll provide a chakra function, just like styled-components. Users can create
any component using the chakra.[element]
. The resulting component will be a
styled component and have all system props.
1<chakra.button bg="green.200" _hover={{ bg: "green.300" }}> 2 Click me 3</chakra.button> 4 5<chakra.h1 fontSize="lg"> Heading </chakra.h1> 6 7// create your own box 8const Box = chakra.div 9 10// you can still use the `as` prop 11<Box as="h1">This is my box</Box> 12 13// for custom components 14const ChakraPowered = chakra(YourComponent) 15 16// TS: chakra will infer the types of Link and 17// make it available in props 18<chakra.a as={Link} to="/home"> Click me</chakra.a>
A way to define themeable components in chakra. We believe most re-usable, atomic components have the following modifiers:
Our goal with this component API is to design a common interface to style any component given these characteristics. Here's how it works:
1// 1. create a component schema in your theme 2const theme = { 3 colors: { 4 green: { 5 light: "#dfdfdf", 6 normal: "#dfdfdf", 7 dark: "#d566Df", 8 darker: "#dfd56f" 9 }, 10 blue: {} 11 }, 12 components: { 13 Button: { 14 defaultProps: { 15 variant: "solid", 16 size: "md", 17 colorScheme: "blue" 18 }, 19 variants: { 20 // props has colorScheme, colorMode (light mode or dark mode) 21 solid: props => ({ 22 bg: `${props.colorScheme}.normal`, 23 color: "white", 24 }), 25 outline: { 26 border: "2px", 27 borderColor: "green.normal" 28 } 29 }, 30 sizes: { 31 sm: { 32 padding: 20, 33 fontSize: 12 34 }, 35 md: { 36 padding: 40, 37 fontSize: 15 38 } 39 } 40 } 41 } 42}; 43 44// 2. create or import Button from chakra-ui 45import { Button } from "@chakra-ui/react" 46 47// or your own button 48const Button = chakra("button", { themeKey: "Button" }) 49 50// 3. use the button. It'll have the visual props defined in defaultProps 51<Button>Click me</Button> 52 53// 4. override the defaultProps 54<Button variant="outline" colorScheme="green">Click me</Button>
No vulnerabilities found.
Reason
30 commit(s) and 15 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
7 existing vulnerabilities detected
Details
Reason
Found 5/25 approved changesets -- score normalized to 2
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More