Skip to content

Commit fd307ce

Browse files
committed
🎨 style(app): markdown syntax coloring, tasteful copy buttons, reasoning container
- Headings: Use theme --markdown-heading color (purple/gold per theme) - Bold: Uses --markdown-strong color (distinct from regular text) - Italic: Uses --markdown-emph color with italic style - Blockquotes: Uses --markdown-block-quote color for text + border - Links: Uses --markdown-link color - Inline code: Uses --markdown-code color (green tones) - Code copy button: Pill-shaped with backdrop blur + shadow - Reasoning/thinking: Contained in bordered rounded card with info tint - Bash output: Max-height 200px with scroll (contained)
1 parent 92ab152 commit fd307ce

1 file changed

Lines changed: 64 additions & 0 deletions

File tree

‎packages/app/src/index.css‎

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,70 @@
195195
background: color-mix(in srgb, var(--text-weaker) 50%, transparent);
196196
}
197197

198+
/* --- Markdown syntax coloring: Different colors for bold, italic, headings --- */
199+
[data-component="markdown"] h1,
200+
[data-component="markdown"] h2,
201+
[data-component="markdown"] h3 {
202+
color: var(--markdown-heading) !important;
203+
}
204+
205+
[data-component="markdown"] strong,
206+
[data-component="markdown"] b {
207+
color: var(--markdown-strong) !important;
208+
}
209+
210+
[data-component="markdown"] em,
211+
[data-component="markdown"] i {
212+
color: var(--markdown-emph) !important;
213+
font-style: italic;
214+
}
215+
216+
[data-component="markdown"] blockquote {
217+
color: var(--markdown-block-quote) !important;
218+
border-left-color: var(--markdown-block-quote) !important;
219+
}
220+
221+
[data-component="markdown"] a {
222+
color: var(--markdown-link) !important;
223+
}
224+
225+
[data-component="markdown"] :not(pre) > code {
226+
color: var(--markdown-code) !important;
227+
}
228+
229+
/* --- Code block copy button: Tasteful pill-style --- */
230+
[data-slot="markdown-copy-button"][data-variant="secondary"] {
231+
border-radius: 8px !important;
232+
padding: 4px 8px !important;
233+
font-size: 11px !important;
234+
height: auto !important;
235+
width: auto !important;
236+
aspect-ratio: unset !important;
237+
background: var(--surface-raised-stronger-non-alpha) !important;
238+
border: 1px solid var(--border-weaker-base) !important;
239+
box-shadow: var(--shadow-xs) !important;
240+
backdrop-filter: blur(8px);
241+
-webkit-backdrop-filter: blur(8px);
242+
}
243+
244+
/* --- Reasoning/thinking: Collapsible visual treatment --- */
245+
[data-component="reasoning-part"] {
246+
border: 1px solid var(--border-weaker-base) !important;
247+
border-radius: 10px !important;
248+
padding: 12px 16px !important;
249+
background: color-mix(in srgb, var(--surface-info-base) 30%, transparent) !important;
250+
position: relative;
251+
}
252+
253+
[data-component="reasoning-part"] [data-component="markdown"] {
254+
margin-top: 0 !important;
255+
}
256+
257+
/* --- Bash/tool output: Contained with max-height + scroll --- */
258+
[data-component="bash-output"] [data-slot="bash-scroll"] {
259+
max-height: 200px !important;
260+
}
261+
198262
/* --- Empty state backgrounds: Subtle radial gradient --- */
199263
[data-component="session-turn"] .size-full:has(> .text-20-medium) {
200264
background: radial-gradient(

0 commit comments

Comments
 (0)