Skip to content

Commit 6b75ec3

Browse files
committed
fix: codeblock broken bg for hosted
1 parent f7b81d5 commit 6b75ec3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/ui/src/styles/typography.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,10 @@
103103
/* Code blocks - replicated by inspecting shadcn website */
104104
pre code,
105105
pre code.hljs {
106-
@apply p-0 font-mono bg-secondary/50 rounded-lg p-4 overflow-x-auto text-lg font-mono !important;
107-
106+
@apply p-0 font-mono rounded-lg p-4 overflow-x-auto text-lg font-mono;
107+
108+
/* Override highlight.js background with important */
109+
background-color: color-mix(in oklab, var(--secondary) 50%, transparent) !important;
108110
display: block;
109111
font-size: 1rem;
110112
font-family: var(--font-mono);

0 commit comments

Comments
 (0)