Skip to content

Commit 09243d4

Browse files
heyimalexwombleton
authored andcommitted
Fix light background in docusaurus night mode (facebook#7936)
* Fix light background in docusaurus night mode Closes facebook#7930 * Rename lightBackground to gettingStartedSection
1 parent eb493a8 commit 09243d4

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

docusaurus/website/src/pages/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function Home() {
7979
</div>
8080
</div>
8181
)}
82-
<div className={styles.lightBackground}>
82+
<div className={styles.gettingStartedSection}>
8383
<div className="container padding-vert--xl text--left">
8484
<div className="row">
8585
<div className="col col--4 col--offset-1">

docusaurus/website/src/pages/styles.module.css

+5-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@
4040
margin: 0 auto;
4141
}
4242

43-
.lightBackground {
43+
.gettingStartedSection {
4444
background-color: #f7f7f7;
45-
color: rgb(31, 34, 39);
45+
}
46+
47+
html[data-theme='dark'] .gettingStartedSection {
48+
background-color: #33363b;
4649
}

0 commit comments

Comments
 (0)