Skip to content

Commit

Permalink
docs: apply suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Rainsberger <[email protected]>
  • Loading branch information
HiDeoo and sarah11918 authored Mar 4, 2025
1 parent adb0cce commit 239bded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/en/guides/syntax-highlighting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default defineConfig({

You can follow [Shiki's own theme documentation](https://shiki.style/themes) for more customization options for themes, [light vs dark mode toggles](https://shiki.style/guide/dual-themes), or styling via [CSS variables](https://shiki.style/guide/theme-colors#css-variables-theme).

Astro code blocks have some differences compared to the default Shiki documentation:
You will need to adjust the examples from Shiki's documentation for your Astro project by making the following substitutions:

- Code blocks are styled using the `.astro-code` class instead of `.shiki`
- When using the `css-variables` theme, custom properties are prefixed with `--astro-code-` instead of `--shiki-`
Expand Down

0 comments on commit 239bded

Please sign in to comment.