Skip to content

Commit a1c9634

Browse files
committed
Force dark mode
1 parent 6bac140 commit a1c9634

File tree

3 files changed

+11
-154
lines changed

3 files changed

+11
-154
lines changed

src/app/globals.css

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
:root {
2-
--background: #ffffff;
3-
--foreground: #171717;
2+
--background: #0a0a0a;
3+
--foreground: #ededed;
44
}
55

6-
@media (prefers-color-scheme: dark) {
7-
:root {
8-
--background: #0a0a0a;
9-
--foreground: #ededed;
10-
}
6+
html {
7+
color-scheme: dark;
118
}
129

1310
html,
@@ -33,10 +30,4 @@ body {
3330
a {
3431
color: inherit;
3532
text-decoration: none;
36-
}
37-
38-
@media (prefers-color-scheme: dark) {
39-
html {
40-
color-scheme: dark;
41-
}
42-
}
33+
}

src/app/page.module.css

Lines changed: 6 additions & 139 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.page {
2-
--gray-rgb: 0, 0, 0;
3-
--gray-alpha-200: rgba(var(--gray-rgb), 0.08);
4-
--gray-alpha-100: rgba(var(--gray-rgb), 0.05);
2+
--gray-rgb: 255, 255, 255;
3+
--gray-alpha-200: rgba(var(--gray-rgb), 0.145);
4+
--gray-alpha-100: rgba(var(--gray-rgb), 0.06);
55

6-
--button-primary-hover: #383838;
7-
--button-secondary-hover: #f2f2f2;
6+
--button-primary-hover: #ccc;
7+
--button-secondary-hover: #1a1a1a;
88

99
display: grid;
1010
grid-template-rows: 20px 1fr 20px;
@@ -16,116 +16,13 @@
1616
font-family: var(--font-geist-sans);
1717
}
1818

19-
@media (prefers-color-scheme: dark) {
20-
.page {
21-
--gray-rgb: 255, 255, 255;
22-
--gray-alpha-200: rgba(var(--gray-rgb), 0.145);
23-
--gray-alpha-100: rgba(var(--gray-rgb), 0.06);
24-
25-
--button-primary-hover: #ccc;
26-
--button-secondary-hover: #1a1a1a;
27-
}
28-
}
29-
3019
.main {
3120
display: flex;
3221
flex-direction: column;
3322
gap: 32px;
3423
grid-row-start: 2;
3524
}
3625

37-
.main ol {
38-
font-family: var(--font-geist-mono);
39-
padding-left: 0;
40-
margin: 0;
41-
font-size: 14px;
42-
line-height: 24px;
43-
letter-spacing: -0.01em;
44-
list-style-position: inside;
45-
}
46-
47-
.main li:not(:last-of-type) {
48-
margin-bottom: 8px;
49-
}
50-
51-
.main code {
52-
font-family: inherit;
53-
background: var(--gray-alpha-100);
54-
padding: 2px 4px;
55-
border-radius: 4px;
56-
font-weight: 600;
57-
}
58-
59-
.ctas {
60-
display: flex;
61-
gap: 16px;
62-
}
63-
64-
.ctas a {
65-
appearance: none;
66-
border-radius: 128px;
67-
height: 48px;
68-
padding: 0 20px;
69-
border: none;
70-
border: 1px solid transparent;
71-
transition:
72-
background 0.2s,
73-
color 0.2s,
74-
border-color 0.2s;
75-
cursor: pointer;
76-
display: flex;
77-
align-items: center;
78-
justify-content: center;
79-
font-size: 16px;
80-
line-height: 20px;
81-
font-weight: 500;
82-
}
83-
84-
a.primary {
85-
background: var(--foreground);
86-
color: var(--background);
87-
gap: 8px;
88-
}
89-
90-
a.secondary {
91-
border-color: var(--gray-alpha-200);
92-
min-width: 180px;
93-
}
94-
95-
.footer {
96-
grid-row-start: 3;
97-
display: flex;
98-
gap: 24px;
99-
}
100-
101-
.footer a {
102-
display: flex;
103-
align-items: center;
104-
gap: 8px;
105-
}
106-
107-
.footer img {
108-
flex-shrink: 0;
109-
}
110-
111-
/* Enable hover only on non-touch devices */
112-
@media (hover: hover) and (pointer: fine) {
113-
a.primary:hover {
114-
background: var(--button-primary-hover);
115-
border-color: transparent;
116-
}
117-
118-
a.secondary:hover {
119-
background: var(--button-secondary-hover);
120-
border-color: transparent;
121-
}
122-
123-
.footer a:hover {
124-
text-decoration: underline;
125-
text-underline-offset: 4px;
126-
}
127-
}
128-
12926
@media (max-width: 600px) {
13027
.page {
13128
padding: 32px;
@@ -135,34 +32,4 @@ a.secondary {
13532
.main {
13633
align-items: center;
13734
}
138-
139-
.main ol {
140-
text-align: center;
141-
}
142-
143-
.ctas {
144-
flex-direction: column;
145-
}
146-
147-
.ctas a {
148-
font-size: 14px;
149-
height: 40px;
150-
padding: 0 16px;
151-
}
152-
153-
a.secondary {
154-
min-width: auto;
155-
}
156-
157-
.footer {
158-
flex-wrap: wrap;
159-
align-items: center;
160-
justify-content: center;
161-
}
162-
}
163-
164-
@media (prefers-color-scheme: dark) {
165-
.logo {
166-
filter: invert();
167-
}
168-
}
35+
}

src/app/waffle/page.module.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
flex-direction: row;
6868
gap: 1rem;
6969
width: 19rem;
70-
7170
}
7271
.nextprevbutton {
7372
flex: auto;

0 commit comments

Comments
 (0)