Skip to content

Commit 7c2fd4e

Browse files
committed
fix: Playground light mode issue
closes #52
1 parent 6d6f18d commit 7c2fd4e

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

playground/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Demo from './Demo.mdx';
22

33
function App() {
44
return (
5-
<main className="flex flex-col min-w-screen">
5+
<main className="flex flex-col min-w-screen dark">
66
<div className="flex flex-col prose dark:prose-invert self-center mt-10 md:max-w-3xl">
77
<Demo />
88
<footer className="text-sm dark:text-slate-300 mt-10 mb-8 self-end">

playground/src/index.css

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
@import "tailwindcss";
22
@plugin '@tailwindcss/typography';
33

4+
@custom-variant dark (&:where(.dark, .dark *));
5+
46
:root {
57
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
68
line-height: 1.5;
@@ -59,15 +61,15 @@ button:focus-visible {
5961
outline: 4px auto -webkit-focus-ring-color;
6062
}
6163

62-
@media (prefers-color-scheme: light) {
63-
:root {
64-
color: #213547;
65-
background-color: #ffffff;
66-
}
67-
a:hover {
68-
color: #747bff;
69-
}
70-
button {
71-
background-color: #f9f9f9;
72-
}
73-
}
64+
/* @media (prefers-color-scheme: light) { */
65+
/* :root { */
66+
/* color: #213547; */
67+
/* background-color: #ffffff; */
68+
/* } */
69+
/* a:hover { */
70+
/* color: #747bff; */
71+
/* } */
72+
/* button { */
73+
/* background-color: #f9f9f9; */
74+
/* } */
75+
/* } */

0 commit comments

Comments
 (0)