Skip to content

Commit 15f0345

Browse files
committed
improvement(markdown): bump bold weight to 650 in dark mode
1 parent a19fce1 commit 15f0345

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-editor.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@
105105
font-weight: 600;
106106
}
107107

108+
/* Light-on-dark text renders perceptually heavier, compressing the bold/regular contrast —
109+
* mirror the dark-mode bump the --font-weight-* tokens apply (e.g. semibold 500 → 550). */
110+
.dark .rich-markdown-prose strong {
111+
font-weight: 650;
112+
}
113+
108114
.rich-markdown-prose em {
109115
font-style: italic;
110116
}

apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/chat-content/chat-content.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const PROSE_CLASSES = cn(
4747
'prose-li:text-base prose-li:leading-[25px] prose-li:text-[var(--text-primary)]',
4848
'prose-li:my-1',
4949
'prose-ul:my-4 prose-ol:my-4',
50-
'prose-strong:font-[600] prose-strong:text-[var(--text-primary)]',
50+
'prose-strong:font-[600] dark:prose-strong:font-[650] prose-strong:text-[var(--text-primary)]',
5151
'prose-a:text-[var(--text-primary)] prose-a:underline prose-a:decoration-dashed prose-a:underline-offset-4',
5252
'prose-hr:border-[var(--divider)] prose-hr:my-6',
5353
'prose-table:my-0'
@@ -163,7 +163,7 @@ function fileIconLabel(ref: string, fallback: string): string {
163163
const MARKDOWN_COMPONENTS = {
164164
table({ children }: { children?: React.ReactNode }) {
165165
return (
166-
<div className='not-prose my-4 w-full overflow-x-auto [&_strong]:font-[600]'>
166+
<div className='not-prose my-4 w-full overflow-x-auto [&_strong]:font-[600] dark:[&_strong]:font-[650]'>
167167
<table className='min-w-full border-collapse [&_tbody_tr:last-child_td]:border-b-0'>
168168
{children}
169169
</table>

0 commit comments

Comments
 (0)