@chakra-ui/color-mode
Advanced tools
Comparing version 0.0.0-pr-20220620149 to 0.0.0-pr-202208163634
@@ -127,2 +127,7 @@ 'use strict'; | ||
if (utils.isBrowser) { | ||
/** | ||
* @deprecated | ||
* The CSS variable `--chakra-ui-color-mode` will be removed in the next major release | ||
* Please use the `data-theme` attribute to determine the current color mode | ||
*/ | ||
document.documentElement.style.setProperty("--chakra-ui-color-mode", mode); | ||
@@ -129,0 +134,0 @@ document.documentElement.setAttribute("data-theme", mode); |
@@ -127,2 +127,7 @@ 'use strict'; | ||
if (utils.isBrowser) { | ||
/** | ||
* @deprecated | ||
* The CSS variable `--chakra-ui-color-mode` will be removed in the next major release | ||
* Please use the `data-theme` attribute to determine the current color mode | ||
*/ | ||
document.documentElement.style.setProperty("--chakra-ui-color-mode", mode); | ||
@@ -129,0 +134,0 @@ document.documentElement.setAttribute("data-theme", mode); |
@@ -103,2 +103,7 @@ import { useEnvironment } from '@chakra-ui/react-env'; | ||
if (isBrowser) { | ||
/** | ||
* @deprecated | ||
* The CSS variable `--chakra-ui-color-mode` will be removed in the next major release | ||
* Please use the `data-theme` attribute to determine the current color mode | ||
*/ | ||
document.documentElement.style.setProperty("--chakra-ui-color-mode", mode); | ||
@@ -105,0 +110,0 @@ document.documentElement.setAttribute("data-theme", mode); |
{ | ||
"name": "@chakra-ui/color-mode", | ||
"version": "0.0.0-pr-20220620149", | ||
"version": "0.0.0-pr-202208163634", | ||
"description": "React component and hooks for handling light and dark mode.", | ||
@@ -41,5 +41,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@chakra-ui/hooks": "0.0.0-pr-20220620149", | ||
"@chakra-ui/react-env": "0.0.0-pr-20220620149", | ||
"@chakra-ui/utils": "0.0.0-pr-20220620149" | ||
"@chakra-ui/hooks": "0.0.0-pr-202208163634", | ||
"@chakra-ui/react-env": "0.0.0-pr-202208163634", | ||
"@chakra-ui/utils": "0.0.0-pr-202208163634" | ||
}, | ||
@@ -46,0 +46,0 @@ "peerDependencies": { |
@@ -83,2 +83,7 @@ import { isBrowser, noop } from "@chakra-ui/utils" | ||
if (isBrowser) { | ||
/** | ||
* @deprecated | ||
* The CSS variable `--chakra-ui-color-mode` will be removed in the next major release | ||
* Please use the `data-theme` attribute to determine the current color mode | ||
*/ | ||
document.documentElement.style.setProperty("--chakra-ui-color-mode", mode) | ||
@@ -85,0 +90,0 @@ document.documentElement.setAttribute("data-theme", mode) |
Sorry, the diff of this file is not supported yet
58452
1638
+ Added@chakra-ui/hooks@0.0.0-pr-202208163634(transitive)
+ Added@chakra-ui/react-env@0.0.0-pr-202208163634(transitive)
+ Added@chakra-ui/utils@0.0.0-pr-202208163634(transitive)
- Removed@chakra-ui/hooks@0.0.0-pr-20220620149(transitive)
- Removed@chakra-ui/react-env@0.0.0-pr-20220620149(transitive)
- Removed@chakra-ui/utils@0.0.0-pr-20220620149(transitive)