Files
DeepTutor/web/components/common
Roman Barlos 49a26d93d6 fix(web): ensure readable text in dark code blocks on light theme
The hard-coded dark code block background (#1f2937 / #292524) combined
with `.prose` rules was producing near-black text in the light theme:
`.prose pre` forced color #D6D3D1 and
`.prose code:not(.md-code-block__code):not(.md-inline-code)` pulled the
code element back to var(--foreground), overriding the Tailwind classes
on the fallback <pre>/<code>.

Add a higher-specificity rule on .md-renderer .md-code-block {,pre,code}
that pins the text color to #e5e7eb regardless of theme, and tag the
<code> elements in the Rich/Simple markdown fallbacks with the existing
md-code-block__code class so the :not() guard kicks in and inheritance
resolves to the light color.
2026-04-20 14:31:32 +03:00
..
2026-03-13 01:47:38 +08:00
2026-03-13 01:47:38 +08:00