Skip to content

Commit 53ccd68

Browse files
authored
Fix color issue in light theme (#23)
1 parent 8114400 commit 53ccd68

File tree

5 files changed

+971
-3
lines changed

5 files changed

+971
-3
lines changed

src/pages/_app.page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import type { AppProps } from "next/app";
22
import "normalize.css/normalize.css";
33
import "open-color/open-color.css";
44
import "./_app.scss";
5-
import "flexlayout-react/style/dark.scss";
5+
import "../styles/flexlayout-light.scss";
6+
import "../styles/flexlayout-dark.scss";
67

78
const App: React.FC<AppProps> = ({ Component, pageProps }) => {
89
return <Component {...pageProps} />;

src/pages/_app.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,15 @@ button {
4343

4444
input {
4545
border: 0;
46-
color: var(--oc-gray-5);
47-
background-color: var(--oc-gray-9);
4846
padding: 0.25em;
4947
margin: 3px 0px;
48+
color: var(--oc-gray-9);
49+
background-color: var(--oc-gray-5);
50+
51+
@media (prefers-color-scheme: dark) {
52+
color: var(--oc-gray-5);
53+
background-color: var(--oc-gray-9);
54+
}
5055

5156
&:hover {
5257
box-shadow: 0 0 0 1px var(--pb-sep);

0 commit comments

Comments
 (0)