- Add useDarkMode hook that watches for .dark class on html element - Remove hardcoded #24292e color override that broke dark mode syntax highlighting - CodeBlock now auto-detects theme and uses vscDarkPlus style in dark mode - Theme prop is now optional, only override when explicitly needed |
||
|---|---|---|
| .. | ||
| CodeBlock.test.tsx | ||
| CodeBlock.tsx | ||
| tokens.ts | ||
| types.ts | ||
| variants.ts | ||