Skip to content

Commit

Permalink
Added code colors
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed May 9, 2024
1 parent 58473a2 commit cbd81ca
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ themeConfig:
aboutme-nameColor: var(--slidev-theme-accents-red)
aboutme-font-size: 1.1em

code-background: var(--slidev-theme-code-background)
code-color: var(--slidev-theme-code-color)
code-font-size: 1.1em
```
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [0.0.18] - 2024-05-09

- Added css to change the inline code block background and foreground colors

## [0.0.17] - 2024-05-09

- Added new font size variables for each layout and code blocks
Expand Down
5 changes: 5 additions & 0 deletions styles/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@
.slidev-layout {
font-size: var(--slidev-theme-font-size, 1.1em);

:not(pre) > code {
background: var(--slidev-theme-code-background);
color: var(--slidev-theme-code-color, var(--slidev-theme-color));
}

h1 + p {
opacity: 1;
}
Expand Down

0 comments on commit cbd81ca

Please sign in to comment.