Skip to content

Commit c51f252

Browse files
light mode (pingdotgg#4)
* init components * use them * Fix select trigger styling in dark mode and add open state highlight Remove dark mode background bleed on select triggers and add accent background when popup is open. Co-Authored-By: Claude Opus 4.6 <[email protected]> --------- Co-authored-by: Claude Opus 4.6 <[email protected]>
1 parent 70a9a04 commit c51f252

52 files changed

Lines changed: 4872 additions & 918 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/desktop/scripts/smoke-test.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* the first render). For production mode (no React DevTools message), we
1414
* instead check that no fatal errors appeared.
1515
*/
16-
import { spawn, execSync } from "node:child_process";
16+
import { execSync, spawn } from "node:child_process";
1717
import { dirname, resolve } from "node:path";
1818
import { fileURLToPath } from "node:url";
1919

@@ -75,7 +75,7 @@ child.on("exit", () => {
7575
for (const f of failures) {
7676
console.error(` • ${f}`);
7777
}
78-
console.error("\nFull output:\n" + output);
78+
console.error(`\nFull output:\n${output}`);
7979
process.exit(1);
8080
}
8181

‎apps/renderer/components.json‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": false,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "",
8+
"css": "src/index.css",
9+
"baseColor": "zinc",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"iconLibrary": "lucide",
14+
"rtl": false,
15+
"aliases": {
16+
"components": "#/components",
17+
"utils": "#/lib/utils",
18+
"ui": "#/components/ui",
19+
"lib": "#/lib",
20+
"hooks": "#/hooks"
21+
},
22+
"registries": {
23+
"@coss": "https://coss.com/ui/r/{name}.json"
24+
}
25+
}

‎apps/renderer/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>Electron Todo</title>
77
</head>
8-
<body class="bg-slate-100">
8+
<body>
99
<div id="root"></div>
1010
<script type="module" src="/src/main.tsx"></script>
1111
</body>

‎apps/renderer/package.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@
1212
},
1313
"dependencies": {
1414
"@acme/contracts": "workspace:*",
15+
"@base-ui/react": "^1.1.0",
16+
"class-variance-authority": "^0.7.1",
17+
"clsx": "^2.1.1",
1518
"highlight.js": "^11.11.1",
19+
"lucide-react": "^0.563.0",
1620
"react": "^19.0.0",
1721
"react-dom": "^19.0.0",
1822
"react-markdown": "^10.1.0",
1923
"rehype-highlight": "^7.0.2",
2024
"remark-gfm": "^4.0.1",
25+
"tailwind-merge": "^3.4.0",
2126
"zod": "^3.24.1"
2227
},
2328
"devDependencies": {

‎apps/renderer/src/App.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ function Layout() {
3131

3232
if (!api) {
3333
return (
34-
<div className="flex h-screen flex-col bg-[#0c0c0c] text-[#e0e0e0]">
34+
<div className="flex h-screen flex-col bg-background text-foreground">
3535
<div className="drag-region h-[52px] shrink-0" />
3636
<div className="flex flex-1 items-center justify-center">
37-
<p className="text-sm text-[#a0a0a0]/60">
37+
<p className="text-sm text-muted-foreground">
3838
Native bridge unavailable. Launch through Electron.
3939
</p>
4040
</div>
@@ -43,7 +43,7 @@ function Layout() {
4343
}
4444

4545
return (
46-
<div className="flex h-screen overflow-hidden bg-[#0c0c0c] text-[#e0e0e0]">
46+
<div className="flex h-screen overflow-hidden bg-background text-foreground">
4747
<EventRouter />
4848
<Sidebar />
4949
<ChatView />

‎apps/renderer/src/components/ChatMarkdown.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const markdownComponents: Components = {
1515

1616
export default function ChatMarkdown({ text }: ChatMarkdownProps) {
1717
return (
18-
<div className="chat-markdown text-sm leading-relaxed text-[#d0d0d0]">
18+
<div className="chat-markdown text-sm leading-relaxed text-foreground/80">
1919
<ReactMarkdown
2020
remarkPlugins={[remarkGfm]}
2121
rehypePlugins={[[rehypeHighlight, { detect: true, ignoreMissing: true }]]}

0 commit comments

Comments
 (0)