Skip to content

Commit cba724b

Browse files
Merge pull request #56 from christian-byrne/dark-theme
remap tailwind colors
2 parents a901867 + 7ac2354 commit cba724b

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

ui/src/components/chat/messages/AIMessage.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function AIMessage({ content, name = 'Assistant', avatar, format, onOptio
7272
rehypeKatex
7373
]}
7474
remarkPlugins={[remarkGfm, remarkMath]}
75-
className={`prose prose-xs prose-neutral prose-a:text-accent-foreground/50 break-words [&>*]:!my-1 leading-relaxed text-xs
75+
className={`prose prose-xs prose-neutral prose-a:text-accent-foreground/50 break-words [&>*]:!my-1 leading-relaxed text-xs text-gray-800
7676
prose-headings:font-semibold
7777
prose-h1:text-base
7878
prose-h2:text-sm
@@ -89,6 +89,9 @@ export function AIMessage({ content, name = 'Assistant', avatar, format, onOptio
8989
p: ({ children }) => {
9090
return <p className="!my-0.5 leading-relaxed text-xs">{children}</p>
9191
},
92+
strong: ({ children }) => {
93+
return <strong className="text-gray-900">{children}</strong>
94+
},
9295
h1: ({ children }) => {
9396
return <h1 className="text-base font-semibold !my-1">{children}</h1>
9497
},
@@ -278,7 +281,7 @@ export function AIMessage({ content, name = 'Assistant', avatar, format, onOptio
278281

279282
return (
280283
<BaseMessage name={name}>
281-
<div className="w-full rounded-lg bg-gray-50 p-4 text-gray-700 text-sm break-words overflow-hidden">
284+
<div className="w-full rounded-lg bg-gray-50 p-4 text-gray-900 text-sm break-words overflow-hidden">
282285
{renderContent()}
283286
</div>
284287
</BaseMessage>

ui/tailwind.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,21 @@ export default {
1818
],
1919
theme: {
2020
extend: {
21+
colors: {
22+
white: 'var(--p-panel-background)',
23+
gray: {
24+
50: 'color-mix(in srgb, var(--p-text-color) 5%, transparent)',
25+
100: 'color-mix(in srgb, var(--p-text-color) 10%, transparent)',
26+
200: 'color-mix(in srgb, var(--p-text-color) 20%, transparent)',
27+
300: 'color-mix(in srgb, var(--p-text-color) 30%, transparent)',
28+
400: 'color-mix(in srgb, var(--p-text-color) 40%, transparent)',
29+
500: 'color-mix(in srgb, var(--p-text-color) 50%, transparent)',
30+
600: 'color-mix(in srgb, var(--p-text-color) 60%, transparent)',
31+
700: 'color-mix(in srgb, var(--p-text-color) 70%, transparent)',
32+
800: 'color-mix(in srgb, var(--p-text-color) 80%, transparent)',
33+
900: 'color-mix(in srgb, var(--p-text-color) 90%, transparent)',
34+
}
35+
},
2136
animation: {
2237
// bounce: 'bounce 1s infinite',
2338
},

0 commit comments

Comments
 (0)