From d948b99719c21bd2592d0b4704b8d1541a00dd68 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Wed, 6 Nov 2024 19:12:46 +0300 Subject: [PATCH] Update primary color palette (#497) --- app/globals.css | 12 +- components/custom/canvas.tsx | 61 +++++---- components/custom/chat-header.tsx | 2 +- components/custom/document.tsx | 2 +- components/custom/icons.tsx | 19 +++ components/custom/message.tsx | 9 +- components/custom/model-selector.tsx | 9 +- components/custom/multimodal-input.tsx | 8 +- components/custom/toolbar.tsx | 169 ++++++++++++++++--------- 9 files changed, 180 insertions(+), 111 deletions(-) diff --git a/app/globals.css b/app/globals.css index b184e4a..0b57f94 100644 --- a/app/globals.css +++ b/app/globals.css @@ -30,9 +30,9 @@ --card-foreground: 240 10% 3.9%; --popover: 0 0% 100%; --popover-foreground: 240 10% 3.9%; - --primary: 240 5.9% 10%; + --primary: 217 100% 45%; --primary-foreground: 0 0% 98%; - --secondary: 240 4.8% 95.9%; + --secondary: 213 100% 96%; --secondary-foreground: 240 5.9% 10%; --muted: 240 4.8% 95.9%; --muted-foreground: 240 3.8% 46.1%; @@ -40,7 +40,7 @@ --accent-foreground: 240 5.9% 10%; --destructive: 0 84.2% 60.2%; --destructive-foreground: 0 0% 98%; - --border: 240 5.9% 90%; + --border: 214 32% 91%; --input: 240 5.9% 90%; --ring: 240 10% 3.9%; --chart-1: 12 76% 61%; @@ -65,8 +65,8 @@ --card-foreground: 0 0% 98%; --popover: 240 10% 3.9%; --popover-foreground: 0 0% 98%; - --primary: 0 0% 98%; - --primary-foreground: 240 5.9% 10%; + --primary: 208.69 100% 24.18%; + --primary-foreground: 207 100% 96%; --secondary: 240 3.7% 15.9%; --secondary-foreground: 0 0% 98%; --muted: 240 3.7% 15.9%; @@ -142,5 +142,5 @@ } .suggestion-highlight { - @apply bg-blue-100 hover:bg-blue-200 dark:hover:bg-blue-400/50 dark:text-blue-50 dark:bg-blue-400/40; + @apply bg-blue-200 hover:bg-blue-300 dark:hover:bg-blue-400/50 dark:text-blue-50 dark:bg-blue-500/40; } diff --git a/components/custom/canvas.tsx b/components/custom/canvas.tsx index 39ed79f..90335a9 100644 --- a/components/custom/canvas.tsx +++ b/components/custom/canvas.tsx @@ -29,6 +29,7 @@ import { MultimodalInput } from './multimodal-input'; import { Toolbar } from './toolbar'; import { useScrollToBottom } from './use-scroll-to-bottom'; import { VersionFooter } from './version-footer'; +import { Button } from '../ui/button'; import { Tooltip, TooltipContent, TooltipTrigger } from '../ui/tooltip'; export interface UICanvas { title: string; @@ -254,10 +255,10 @@ export function Canvas({ {!isMobile && (
-
{ setCanvas((currentCanvas) => ({ ...currentCanvas, @@ -406,9 +408,9 @@ export function Canvas({ }} > -
+ -
+
{document?.title ?? canvas.title}
@@ -433,58 +435,63 @@ export function Canvas({
- -
+
+
Copy to clipboard
- -
+
+
View Previous version
- -
+
+
View Next version
- -
+
+
View changes
diff --git a/components/custom/chat-header.tsx b/components/custom/chat-header.tsx index 29b13de..bb1f727 100644 --- a/components/custom/chat-header.tsx +++ b/components/custom/chat-header.tsx @@ -38,7 +38,7 @@ export function ChatHeader({ selectedModelId }: { selectedModelId: string }) { className="order-1 md:order-2" /> ) : (