mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Enable dark mode in browser UI (#4089)
This commit is contained in:
@@ -17,10 +17,16 @@
|
||||
|
||||
/* Write your own custom base styles here */
|
||||
html {
|
||||
color-scheme: light;
|
||||
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
html.dark {
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
*/
|
||||
|
||||
html .sp-wrapper {
|
||||
color-scheme: inherit;
|
||||
|
||||
/* palette */
|
||||
--sp-colors-fg-active: #24292e !important;
|
||||
--sp-colors-fg-default: #959da5 !important;
|
||||
|
||||
Reference in New Issue
Block a user