Skip to content

Commit bfb82db

Browse files
authored
Merge pull request #46 from asfires/t3code/improve-markdown-rule-contrast
fix(web): improve markdown rule contrast
2 parents 214936e + a9df9c0 commit bfb82db

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

apps/web/src/index.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,15 +1725,23 @@ code {
17251725
background-size: 4px 2px;
17261726
}
17271727

1728+
/* Markdown rules take their color from the surrounding text instead of
1729+
--border. --border is tuned against the canvas, and the user bubble sits at
1730+
the same lightness step, so a --border hr vanishes inside it. currentColor is
1731+
already contrast-solved against whichever surface the markdown is on. */
1732+
.chat-markdown hr {
1733+
border-top-color: color-mix(in srgb, currentcolor 18%, transparent);
1734+
}
1735+
17281736
.chat-markdown blockquote {
1729-
border-left: 2px solid var(--border);
1737+
border-left: 2px solid color-mix(in srgb, currentcolor 18%, transparent);
17301738
padding-left: 0.8rem;
17311739
color: var(--muted-foreground);
17321740
}
17331741

17341742
.chat-markdown section[data-footnotes] {
17351743
margin-top: 1.25rem;
1736-
border-top: 1px solid var(--border);
1744+
border-top: 1px solid color-mix(in srgb, currentcolor 18%, transparent);
17371745
padding-top: 0.75rem;
17381746
color: var(--muted-foreground);
17391747
font-size: 0.75rem;

0 commit comments

Comments
 (0)