Skip to content

Commit e2d17b3

Browse files
committed
Use next-theems from transitive dep (for now) (we need dark: prefix for Hero)
1 parent 96fb310 commit e2d17b3

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

src/app/colors.css

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,16 @@
2424
--color-neu-900: 75 15% 5%;
2525
}
2626

27-
@media (prefers-color-scheme: dark) {
28-
:root {
29-
--color-neu-900: 0 0% 100%;
30-
--color-neu-800: 75 57% 97%;
31-
--color-neu-700: 75 15% 95%;
32-
--color-neu-600: 77 14% 90%;
33-
--color-neu-500: 76 14% 85%;
34-
--color-neu-400: 77 14% 80%;
35-
--color-neu-300: 74 14% 70%;
36-
--color-neu-200: 76 15% 60%;
37-
--color-neu-100: 76 15% 40%;
38-
--color-neu-50: 77 14% 20%;
39-
--color-neu-0: 75 15% 5%;
40-
}
27+
html.dark {
28+
--color-neu-900: 0 0% 100%;
29+
--color-neu-800: 75 57% 97%;
30+
--color-neu-700: 75 15% 95%;
31+
--color-neu-600: 77 14% 90%;
32+
--color-neu-500: 76 14% 85%;
33+
--color-neu-400: 77 14% 80%;
34+
--color-neu-300: 74 14% 70%;
35+
--color-neu-200: 76 15% 60%;
36+
--color-neu-100: 76 15% 40%;
37+
--color-neu-50: 77 14% 20%;
38+
--color-neu-0: 75 15% 5%;
4139
}

src/app/conf/2025/layout.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import { GraphQLConf, HostedByGraphQLFoundation } from "@/icons"
66
import NextLink from "next/link"
77
import { NewFontsStyleTag } from "../../fonts"
88
import "../../colors.css"
9-
import "../../typography.css"
9+
10+
// @ts-expect-error: we want to import the same version as Nextra for the main page
11+
import { ThemeProvider } from "next-themes"
1012

1113
export const metadata = {
1214
description:
@@ -54,7 +56,9 @@ export default function Layout({
5456
]}
5557
is2025
5658
/>
57-
<div className="bg-neu-0 text-neu-900">{children}</div>
59+
<ThemeProvider attribute="class">
60+
<div className="bg-neu-0 text-neu-900">{children}</div>
61+
</ThemeProvider>
5862
<Footer
5963
logo={
6064
<NextLink href="/conf/2025" className="nextra-logo text-white">

0 commit comments

Comments
 (0)