diff --git a/ui/desktop/src/components/settings/app/ThemeColorEditor/Preview/ColorPreview.tsx b/ui/desktop/src/components/settings/app/ThemeColorEditor/Preview/ColorPreview.tsx
index f5f2020865..1cc531368a 100644
--- a/ui/desktop/src/components/settings/app/ThemeColorEditor/Preview/ColorPreview.tsx
+++ b/ui/desktop/src/components/settings/app/ThemeColorEditor/Preview/ColorPreview.tsx
@@ -1,11 +1,13 @@
/**
* ColorPreview Component
*
- * Shows live preview of how a selected color variable is used in the UI.
- * Displays real component examples with the color applied.
+ * Shows 1:1 accurate previews of how a selected color variable is used in the actual Goose UI.
+ * Uses real component structures and class names from the app.
*/
import { ColorVariable } from '../types';
+import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '../../../../ui/card';
+import { Button } from '../../../../ui/button';
interface ColorPreviewProps {
variable: ColorVariable;
@@ -34,28 +36,34 @@ export function ColorPreview({ variable, lightColor, darkColor, currentMode }: C
};
return (
-
-
-
- {variable.label}
-
-
- {variable.description}
-
-
+
+ {/* Color Info Header */}
+
+
-
- {currentColor}
+
+
+ {variable.label}
+
+
+ {variable.description}
+
+
+ {currentColor}
+
-
-
- Used In:
+
+
+ {/* Usage Examples */}
+
+
+ Where This Color Appears:
{renderPreview()}
@@ -63,263 +71,364 @@ export function ColorPreview({ variable, lightColor, darkColor, currentMode }: C
);
}
-// Background color previews
+// Background color previews - Using REAL Goose UI components
function BackgroundPreview({ variable, color }: { variable: ColorVariable; color: string }) {
const varName = variable.name;
if (varName === 'color-background-primary') {
return (
-
-
-
-
- This is the primary background color used throughout the app.
-
-
- It appears in the main chat area, settings panels, and most content areas.
-
-
-
-
-
-
-
- AI
-
-
+
+
+
+
- This is how AI messages appear on the primary background.
+ This is the main background color for the entire app.
+
- This background is used for informational messages and tips.
+ You can use keyboard shortcuts to navigate faster
-
+
);
}
return (
-
+
Background color preview
-
+
);
}
-// Text color previews
+// Text color previews - Using REAL Goose UI patterns
function TextPreview({ variable, color }: { variable: ColorVariable; color: string }) {
const varName = variable.name;
if (varName === 'color-text-primary') {
return (
-
-
-
-
Heading Text
-
- This is the main text color used for body content, headings, and primary information.
-
-
- It appears in chat messages, settings descriptions, and all main content.
+
+
+
+
+
+
+
+ I'll help you with that! Let me check the files in your project and make the necessary changes.
+
+
+
-
+
+
+
+
+
+ Settings Section
+ Primary text appears in headings and main content
+
+
+
-
+
);
}
-// Ring (focus) color previews
+// Ring (focus) color previews - Using REAL button focus styles
function RingPreview({ variable, color }: { variable: ColorVariable; color: string }) {
return (
-
-
-
-
-
-
-
-
+
+
+
+
-
-
- The ring color appears when elements receive keyboard focus for accessibility.
+
+
+
+
+
+
+ The ring color appears when elements receive keyboard focus (Tab key navigation).
+ This is essential for accessibility and keyboard navigation.