From 57982461356e1bb2f3ee511fd45708fe574f5ca0 Mon Sep 17 00:00:00 2001 From: Haileyesus <118998054+blackmammoth@users.noreply.github.com> Date: Tue, 30 Jun 2026 00:22:33 +0300 Subject: [PATCH] style(ui): use Merriweather serif for chat text and Encode Sans for the rest of the UI --- index.html | 10 +++++++++- .../chat/view/subcomponents/MessageComponent.tsx | 10 +++++----- src/index.css | 2 +- tailwind.config.js | 4 ++++ 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 37d2217d..1fdfcc7c 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,15 @@ CloudCLI UI - + + + + + + diff --git a/src/components/chat/view/subcomponents/MessageComponent.tsx b/src/components/chat/view/subcomponents/MessageComponent.tsx index 552b31cb..cfe852fe 100644 --- a/src/components/chat/view/subcomponents/MessageComponent.tsx +++ b/src/components/chat/view/subcomponents/MessageComponent.tsx @@ -115,7 +115,7 @@ const MessageComponent = memo(({ message, prevMessage, createDiff, onFileOpen, a /* User message bubble on the right */
-
+
{message.content}
{message.images && message.images.length > 0 && ( @@ -194,7 +194,7 @@ const MessageComponent = memo(({ message, prevMessage, createDiff, onFileOpen, a <>
- + {String(message.displayText || '')}
@@ -233,7 +233,7 @@ const MessageComponent = memo(({ message, prevMessage, createDiff, onFileOpen, a {t('messageTypes.error')}
- + {String(message.toolResult.content || '')}
@@ -342,7 +342,7 @@ const MessageComponent = memo(({ message, prevMessage, createDiff, onFileOpen, a - + {message.content}
@@ -399,7 +399,7 @@ const MessageComponent = memo(({ message, prevMessage, createDiff, onFileOpen, a // Normal rendering for non-JSON content return message.type === 'assistant' ? ( - + {content} ) : ( diff --git a/src/index.css b/src/index.css index ed7f4f5a..195ae1d3 100644 --- a/src/index.css +++ b/src/index.css @@ -128,7 +128,7 @@ body { @apply bg-background text-foreground; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; + font-family: "Encode Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; margin: 0; diff --git a/tailwind.config.js b/tailwind.config.js index 0b2517d0..5d67ef83 100755 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -14,6 +14,10 @@ export default { }, }, extend: { + fontFamily: { + sans: ['"Encode Sans"', '-apple-system', 'BlinkMacSystemFont', '"Segoe UI"', 'Roboto', '"Helvetica Neue"', 'Arial', 'sans-serif'], + serif: ['Merriweather', 'Georgia', 'Cambria', '"Times New Roman"', 'serif'], + }, colors: { border: "hsl(var(--border))", input: "hsl(var(--input))",