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:
parent
4e8962a8b4
commit
c3a0a5c434
1 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue