Improve code block visibility with dual Shiki themes

- Configure Shiki with github-light and github-dark themes
- Apply Shiki dark mode CSS variables to .astro-code elements
- Follow Astro official documentation for dual theme implementation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Daisuke Nakahara 2026-03-01 19:18:25 +09:00
parent 4e8962a8b4
commit c3a0a5c434

View file

@ -130,7 +130,10 @@ pre {
overflow-x: auto;
}
html.dark pre {
background-color: #1e293b !important;
html.dark .astro-code,
html.dark .astro-code span {
color: var(--shiki-dark) !important;
background-color: var(--shiki-dark-bg) !important;
}