Gathering detailed insights and metrics for @chakra-ui/color-mode
Gathering detailed insights and metrics for @chakra-ui/color-mode
Chakra UI is a component system for building products with speed ⚡️
npm install @chakra-ui/color-mode
Typescript
Module System
Node Version
NPM Version
98.6
Supply Chain
84.3
Quality
78.5
Maintenance
100
Vulnerability
100
License
@chakra-ui/panda-preset@3.7.0
Published on 04 Feb 2025
@chakra-ui/react@3.7.0
Published on 04 Feb 2025
@chakra-ui/cli@3.7.0
Published on 04 Feb 2025
@chakra-ui/react@3.6.0
Published on 02 Feb 2025
@chakra-ui/panda-preset@3.6.0
Published on 02 Feb 2025
@chakra-ui/cli@3.6.0
Published on 02 Feb 2025
TypeScript (82.7%)
MDX (16.49%)
JavaScript (0.65%)
CSS (0.08%)
HTML (0.07%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
79,608,839
Last Day
92,936
Last Week
92,936
Last Month
1,547,611
Last Year
27,988,761
38,446 Stars
10,459 Commits
3,348 Forks
202 Watching
12 Branches
679 Contributors
Minified
Minified + Gzipped
Latest Version
2.2.0
Package Id
@chakra-ui/color-mode@2.2.0
Unpacked Size
110.99 kB
Size
14.43 kB
File Count
48
NPM Version
9.5.1
Node Version
18.16.1
Publised On
18 Jul 2023
Cumulative downloads
Total Downloads
Last day
0%
92,936
Compared to previous day
Last week
-70.1%
92,936
Compared to previous week
Last month
-7.8%
1,547,611
Compared to previous month
Last year
10.3%
27,988,761
Compared to previous year
1
1
3
React component that adds support for light mode and dark mode using
localStorage
and matchMedia
.
1yarn add @chakra-ui/color-mode 2 3# or 4 5npm i @chakra-ui/color-mode
To enable this behavior within your apps, wrap your application in a
ColorModeProvider
below the ThemeProvider
1import * as React from "react" 2import { ColorModeProvider } from "@chakra-ui/color-mode" 3import theme from "./theme" 4 5function App({ children }) { 6 return ( 7 <ThemeProvider theme={theme}> 8 <ColorModeProvider>{children}</ColorModeProvider> 9 </ThemeProvider> 10 ) 11}
Then you can use the hook useColorMode
within your application.
1function Example() { 2 const { colorMode, toggleColorMode } = useColorMode() 3 return ( 4 <header> 5 <Button onClick={toggleColorMode}> 6 Toggle {colorMode === "light" ? "Dark" : "Light"} 7 </Button> 8 </header> 9 ) 10}
No vulnerabilities found.
Reason
30 commit(s) and 8 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
6 existing vulnerabilities detected
Details
Reason
Found 4/23 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Score
Last Scanned on 2025-02-03
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