Code Blocks
The theme replaces Starlight’s built-in Expressive Code with a custom Shiki pipeline for syntax highlighting.
Basic Usage
Section titled “Basic Usage”Use fenced code blocks with a language identifier:
Line Highlighting
Section titled “Line Highlighting”Highlight specific lines using the {lines} syntax in the code fence meta:
Diff Notation
Section titled “Diff Notation”Use // [!code ++] and // [!code --] for diff annotations:
Themes
Section titled “Themes”Light Theme
Section titled “Light Theme”Code blocks use one-light in light mode.
Dark Theme
Section titled “Dark Theme”Code blocks use github-dark-dimmed in dark mode.
Both themes are loaded simultaneously and toggled via CSS based on the active theme.