Skip to content

Commit 461e06c

Browse files
caio-pizzolclaude
andcommitted
Remove dark mode support
Removes all theme switching functionality and dark mode styles. The app now only uses light mode. This includes removing the ThemeToggle component, useTheme hook, dark logo asset, and all dark CSS variables. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 4cdfebb commit 461e06c

File tree

8 files changed

+11877
-167
lines changed

8 files changed

+11877
-167
lines changed

package-lock.json

Lines changed: 11867 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/assets/logo-dark.png

-37.5 KB
Binary file not shown.

src/components/Navbar.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ import { clsx } from "clsx";
22
import { Menu, X } from "lucide-react";
33
import { useState } from "react";
44
import { Link, useLocation } from "react-router-dom";
5-
import logoDark from "../assets/logo-dark.png";
6-
import logoLight from "../assets/logo-light.png";
7-
import { useTheme } from "../hooks/useTheme";
8-
import { ThemeToggle } from "./ThemeToggle";
5+
import logo from "../assets/logo.png";
96

107
interface NavbarProps {
118
sticky?: boolean;
@@ -14,7 +11,6 @@ interface NavbarProps {
1411

1512
export function Navbar({ sticky = false, maxWidth = false }: NavbarProps) {
1613
const location = useLocation();
17-
const { resolvedTheme } = useTheme();
1814
const isDocsActive = location.pathname.startsWith("/docs");
1915
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
2016

@@ -28,7 +24,7 @@ export function Navbar({ sticky = false, maxWidth = false }: NavbarProps) {
2824
<div className={clsx("flex items-center justify-between", maxWidth && "mx-auto max-w-6xl")}>
2925
<Link to="/" className="flex shrink-0 items-center">
3026
<img
31-
src={resolvedTheme === "dark" ? logoDark : logoLight}
27+
src={logo}
3228
alt="ooxml.dev"
3329
className="h-6"
3430
/>
@@ -47,12 +43,10 @@ export function Navbar({ sticky = false, maxWidth = false }: NavbarProps) {
4743
</span>
4844
</span>
4945
</NavLink>
50-
<ThemeToggle />
5146
</nav>
5247

5348
{/* Mobile menu button */}
5449
<div className="flex items-center gap-2 sm:hidden">
55-
<ThemeToggle />
5650
<button
5751
type="button"
5852
onClick={() => setMobileMenuOpen(!mobileMenuOpen)}

src/components/ThemeToggle.tsx

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/hooks/useTheme.tsx

Lines changed: 0 additions & 66 deletions
This file was deleted.

src/index.css

Lines changed: 5 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,40 @@
11
@import "tailwindcss";
22

3-
/* ooxml.dev theme - Coral Light (with dark mode) */
3+
/* ooxml.dev theme - Coral Light */
44
:root {
55
/* Coral accent */
66
--color-accent: #ea580c;
77
--color-accent-hover: #c2410c;
88
--color-accent-light: #fff7ed;
99

10-
/* Light mode backgrounds */
10+
/* Backgrounds */
1111
--color-bg-primary: #ffffff;
1212
--color-bg-secondary: #fafaf9;
1313
--color-bg-tertiary: #f5f5f4;
1414
--color-bg-code: #1c1917;
1515

16-
/* Light mode borders */
16+
/* Borders */
1717
--color-border: #e7e5e4;
1818
--color-border-strong: #d6d3d1;
1919

20-
/* Light mode text */
20+
/* Text */
2121
--color-text-primary: #1c1917;
2222
--color-text-secondary: #57534e;
2323
--color-text-muted: #a8a29e;
2424

25-
/* Syntax highlighting (for light mode code blocks on dark bg) */
25+
/* Syntax highlighting (for code blocks on dark bg) */
2626
--color-syntax-tag: #22d3ee;
2727
--color-syntax-attr: #c4b5fd;
2828
--color-syntax-value: #86efac;
2929
--color-syntax-comment: #71717a;
3030
}
3131

32-
.dark {
33-
/* Coral accent (slightly lighter for dark mode) */
34-
--color-accent: #fb923c;
35-
--color-accent-hover: #f97316;
36-
--color-accent-light: #431407;
37-
38-
/* Dark mode backgrounds */
39-
--color-bg-primary: #0c0a09;
40-
--color-bg-secondary: #1c1917;
41-
--color-bg-tertiary: #292524;
42-
--color-bg-code: #1c1917;
43-
44-
/* Dark mode borders */
45-
--color-border: #292524;
46-
--color-border-strong: #44403c;
47-
48-
/* Dark mode text */
49-
--color-text-primary: #fafaf9;
50-
--color-text-secondary: #a8a29e;
51-
--color-text-muted: #78716c;
52-
}
53-
54-
html {
55-
color-scheme: light;
56-
}
57-
58-
html.dark {
59-
color-scheme: dark;
60-
}
61-
6232
body {
6333
font-family: "Inter", system-ui, -apple-system, sans-serif;
6434
background-color: var(--color-bg-primary);
6535
color: var(--color-text-primary);
6636
margin: 0;
6737
min-height: 100vh;
68-
transition:
69-
background-color 0.2s ease,
70-
color 0.2s ease;
71-
}
72-
73-
/* Smooth transitions for theme changes */
74-
*,
75-
*::before,
76-
*::after {
77-
transition:
78-
background-color 0.2s ease,
79-
border-color 0.2s ease;
8038
}
8139

8240
/* Code syntax highlighting */
@@ -98,34 +56,18 @@ body {
9856
background-color: #fef2f2;
9957
border-color: #fecaca;
10058
}
101-
.dark .note-critical {
102-
background-color: rgba(127, 29, 29, 0.3);
103-
border-color: #7f1d1d;
104-
}
10559

10660
.note-warning {
10761
background-color: #fffbeb;
10862
border-color: #fde68a;
10963
}
110-
.dark .note-warning {
111-
background-color: rgba(120, 53, 15, 0.3);
112-
border-color: #78350f;
113-
}
11464

11565
.note-info {
11666
background-color: #fff7ed;
11767
border-color: #fed7aa;
11868
}
119-
.dark .note-info {
120-
background-color: rgba(124, 45, 18, 0.3);
121-
border-color: #7c2d12;
122-
}
12369

12470
.note-tip {
12571
background-color: #f0fdf4;
12672
border-color: #bbf7d0;
12773
}
128-
.dark .note-tip {
129-
background-color: rgba(20, 83, 45, 0.3);
130-
border-color: #14532d;
131-
}

src/main.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,12 @@ import { StrictMode } from "react";
22
import { createRoot } from "react-dom/client";
33
import { BrowserRouter } from "react-router-dom";
44
import App from "./App";
5-
import { ThemeProvider } from "./hooks/useTheme";
65
import "./index.css";
76

87
createRoot(document.getElementById("root")!).render(
98
<StrictMode>
10-
<ThemeProvider>
11-
<BrowserRouter>
12-
<App />
13-
</BrowserRouter>
14-
</ThemeProvider>
9+
<BrowserRouter>
10+
<App />
11+
</BrowserRouter>
1512
</StrictMode>,
1613
);

0 commit comments

Comments
 (0)