From 0a715a949a9aacc5a3bce057075c240148791359 Mon Sep 17 00:00:00 2001 From: iotserver24 <147928812+iotserver24@users.noreply.github.com> Date: Wed, 6 May 2026 05:42:31 +0000 Subject: [PATCH] style: revamp desktop UI to use flat zinc dark theme - Update global.css and tailwind.config.js to use neutral zinc colors. - Make ChatPanel input borderless and flatter. - Simplify MessageBubble markdown styles and remove backgrounds from code blocks. --- .../src/renderer/components/ChatPanel.tsx | 20 ++++---- .../src/renderer/components/MessageBubble.tsx | 14 +++--- .../desktop/src/renderer/styles/global.css | 48 +++++++++---------- packages/desktop/tailwind.config.js | 20 ++++---- 4 files changed, 51 insertions(+), 51 deletions(-) diff --git a/packages/desktop/src/renderer/components/ChatPanel.tsx b/packages/desktop/src/renderer/components/ChatPanel.tsx index 88640ee..2095fc6 100644 --- a/packages/desktop/src/renderer/components/ChatPanel.tsx +++ b/packages/desktop/src/renderer/components/ChatPanel.tsx @@ -176,13 +176,13 @@ export default function ChatPanel({ {/* Input area */} -
- Use Enter to send, Shift + Enter for new line + Use Enter to send, Shift + Enter for new line
{children}
+ {children}
),
code: ({ className, children }) => {
const isInline = !className;
return isInline ? (
- {children}
+ {children}
) : (
- {children}
+ {children}
);
},
}}
diff --git a/packages/desktop/src/renderer/styles/global.css b/packages/desktop/src/renderer/styles/global.css
index e6450c6..f67e2b0 100644
--- a/packages/desktop/src/renderer/styles/global.css
+++ b/packages/desktop/src/renderer/styles/global.css
@@ -1,31 +1,31 @@
@import "tailwindcss";
@theme {
- --color-xibe-bg: #111111;
- --color-xibe-surface: #1A1A1A;
- --color-xibe-surface-raised: #2A2A2A;
- --color-xibe-surface-hover: #222222;
- --color-xibe-border: #333333;
- --color-xibe-border-subtle: #222222;
- --color-xibe-border-focus: #444444;
- --color-xibe-muted: #888888;
- --color-xibe-text: #fafafa;
- --color-xibe-text-secondary: #e4e4e7;
- --color-xibe-text-dim: #a1a1aa;
- --color-xibe-accent: #f4f4f5;
- --color-xibe-accent-hover: #e4e4e7;
+ --color-xibe-bg: #09090b; /* zinc-950 */
+ --color-xibe-surface: #18181b; /* zinc-900 */
+ --color-xibe-surface-raised: #27272a; /* zinc-800 */
+ --color-xibe-surface-hover: #27272a; /* zinc-800 */
+ --color-xibe-border: #3f3f46; /* zinc-700 */
+ --color-xibe-border-subtle: #27272a; /* zinc-800 */
+ --color-xibe-border-focus: #52525b; /* zinc-600 */
+ --color-xibe-muted: #71717a; /* zinc-500 */
+ --color-xibe-text: #fafafa; /* zinc-50 */
+ --color-xibe-text-secondary: #e4e4e7; /* zinc-200 */
+ --color-xibe-text-dim: #a1a1aa; /* zinc-400 */
+ --color-xibe-accent: #f4f4f5; /* zinc-100 */
+ --color-xibe-accent-hover: #e4e4e7; /* zinc-200 */
--color-xibe-accent-muted: rgba(244, 244, 245, 0.15);
- --color-xibe-brand-blue: #60A5FA;
- --color-xibe-brand-green: #34D399;
- --color-xibe-brand-orange: #FBBF24;
- --color-xibe-brand-purple: #A78BFA;
- --color-xibe-brand-red: #F87171;
- --color-xibe-suggestion: #93C5FD;
- --color-xibe-user-bubble: #27272a;
- --color-xibe-warning: #F59E0B;
- --color-xibe-error: #EF4444;
- --color-xibe-info: #0EA5E9;
- --color-xibe-success: #10B981;
+ --color-xibe-brand-blue: #a1a1aa; /* zinc-400 */
+ --color-xibe-brand-green: #a1a1aa; /* zinc-400 */
+ --color-xibe-brand-orange: #a1a1aa; /* zinc-400 */
+ --color-xibe-brand-purple: #a1a1aa; /* zinc-400 */
+ --color-xibe-brand-red: #a1a1aa; /* zinc-400 */
+ --color-xibe-suggestion: #d4d4d8; /* zinc-300 */
+ --color-xibe-user-bubble: #27272a; /* zinc-800 */
+ --color-xibe-warning: #a1a1aa; /* zinc-400 */
+ --color-xibe-error: #f87171; /* red-400 */
+ --color-xibe-info: #a1a1aa; /* zinc-400 */
+ --color-xibe-success: #a1a1aa; /* zinc-400 */
--font-mono: 'JetBrains Mono', ui-monospace, monospace;
--font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
diff --git a/packages/desktop/tailwind.config.js b/packages/desktop/tailwind.config.js
index 6efe480..b76df9e 100644
--- a/packages/desktop/tailwind.config.js
+++ b/packages/desktop/tailwind.config.js
@@ -5,16 +5,16 @@ export default {
extend: {
colors: {
xibe: {
- bg: '#0D0D12',
- surface: '#16161D',
- border: '#2A2A35',
- muted: '#6b7280',
- text: '#E2E2E9',
- accent: '#3B82F6',
- 'accent-dim': '#2563EB',
- warning: '#F59E0B',
- error: '#EF4444',
- info: '#0EA5E9',
+ bg: '#09090b',
+ surface: '#18181b',
+ border: '#3f3f46',
+ muted: '#71717a',
+ text: '#fafafa',
+ accent: '#f4f4f5',
+ 'accent-dim': '#e4e4e7',
+ warning: '#a1a1aa',
+ error: '#f87171',
+ info: '#a1a1aa',
},
},
fontFamily: {