:root { --shiki-color-text: #414141; --shiki-color-background: transparent; --shiki-token-constant: #114b84; --shiki-token-string: #0e7226; --shiki-token-comment: #aaa; --shiki-token-keyword: #d32f2f; --shiki-token-parameter: #ff9800; --shiki-token-function: #6f42c1; --shiki-token-string-expression: #0e7226; --shiki-token-punctuation: #212121; --shiki-token-link: #0e7226; --nextra-shiki-deleted: #f00; --nextra-shiki-inserted: #0e7226; } [data-rehype-pretty-code-fragment] code { @apply grid min-w-full break-words rounded-none border-0 bg-transparent p-0 text-sm text-black; counter-reset: line; box-decoration-break: clone; } [data-rehype-pretty-code-fragment] .line { @apply px-4 py-1; } [data-rehype-pretty-code-fragment] [data-line-numbers] > .line::before { counter-increment: line; content: counter(line); display: inline-block; width: 1rem; margin-right: 1rem; text-align: right; color: gray; } [data-rehype-pretty-code-fragment] .line--highlighted { @apply bg-slate-500 bg-opacity-10; } [data-rehype-pretty-code-fragment] .line-highlighted span { @apply relative; } [data-rehype-pretty-code-fragment] .word--highlighted { @apply rounded-md bg-slate-500 bg-opacity-10 p-1; } [data-rehype-pretty-code-title] { @apply mt-4 py-2 px-4 text-sm font-medium; } [data-rehype-pretty-code-title] + pre { @apply mt-0; }