Skip to content

Commit 7a75f0e

Browse files
committed
style(web): soften streamdown code block visual weight
1 parent 2c1e0ac commit 7a75f0e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

web/src/index.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@
115115
--user-bubble: #e7ebf1;
116116
--user-bubble-text: #1f2937;
117117

118-
--code-bg: #f0f0f2;
119-
--code-header: #e8e8ed;
118+
--code-bg: #f7f8fb;
119+
--code-header: #f3f5f8;
120120
--diff-add-text: #166534;
121121
--diff-add-bg: rgba(34, 197, 94, 0.18);
122122
--diff-del-text: #b42318;
@@ -728,7 +728,7 @@ html, body, #root {
728728
.markdown-streamdown [data-streamdown="code-block"] {
729729
margin: 0.8em 0;
730730
border-radius: var(--radius-md);
731-
border: 1px solid var(--border-primary);
731+
border: 1px solid color-mix(in srgb, var(--border-primary) 68%, transparent);
732732
background: var(--code-bg);
733733
position: relative;
734734
overflow: hidden;
@@ -742,8 +742,8 @@ html, body, #root {
742742
gap: 4px;
743743
padding: 2px;
744744
border-radius: var(--radius-sm);
745-
border: 1px solid var(--border-primary);
746-
background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
745+
border: 1px solid color-mix(in srgb, var(--border-primary) 62%, transparent);
746+
background: color-mix(in srgb, var(--bg-elevated) 78%, transparent);
747747
z-index: 2;
748748
}
749749
.markdown-streamdown [data-streamdown="code-block-copy-button"] {
@@ -768,7 +768,7 @@ html, body, #root {
768768
align-items: center;
769769
min-height: 30px;
770770
padding: 6px 40px 6px 12px;
771-
border-bottom: 1px solid var(--border-primary);
771+
border-bottom: 1px solid color-mix(in srgb, var(--border-primary) 65%, transparent);
772772
background: var(--code-header);
773773
}
774774
.markdown-streamdown [data-streamdown="code-block-header"] span {

0 commit comments

Comments
 (0)