fix(app): soften blockquote styling

Use adjacent surface tokens so quotes stay visually quiet, with a square left edge that aligns cleanly with the quote rule.
This commit is contained in:
Mohamed Boudra
2026-08-16 19:14:04 +02:00
parent ab274d635e
commit 3136117906
2 changed files with 15 additions and 2 deletions
@@ -111,4 +111,15 @@ describe("createMarkdownStyles", () => {
});
expect(compactStyles.code_inline).not.toHaveProperty("lineHeight");
});
it("keeps blockquotes quiet with a square left edge", () => {
const styles = createMarkdownStyles(darkTheme);
expect(styles.blockquote).toMatchObject({
backgroundColor: darkTheme.colors.surface1,
borderLeftColor: darkTheme.colors.surface2,
borderTopLeftRadius: 0,
borderBottomLeftRadius: 0,
});
});
});
+4 -2
View File
@@ -302,13 +302,15 @@ export function createMarkdownStyles(theme: Theme) {
// =========================================================================
blockquote: {
backgroundColor: theme.colors.surface2,
backgroundColor: theme.colors.surface1,
borderLeftWidth: 4,
borderLeftColor: theme.colors.primary,
borderLeftColor: theme.colors.surface2,
paddingHorizontal: theme.spacing[4],
paddingVertical: theme.spacing[3],
marginVertical: theme.spacing[3],
borderRadius: theme.borderRadius.md,
borderTopLeftRadius: 0,
borderBottomLeftRadius: 0,
},
// =========================================================================