Skip to content

Commit

Permalink
Fixed code and pre elements to be styled correctly on both light …
Browse files Browse the repository at this point in the history
…and dark mode on valtio.dev (#1033)

* fixed valtio.dev styles for pre and code elements in both light and dark mode

* fixed valtio.dev styles for pre and code elements in both light and dark mode
  • Loading branch information
overthemike authored Jan 11, 2025
1 parent d0a26ba commit 6909918
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/advanced/subscribe.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ subSection: 'Advanced'
description: 'Subscribe to a current state/object'
---

# subscribe
# `subscribe`

## Subscribe from anywhere

Expand Down
4 changes: 4 additions & 0 deletions website/styles/prism-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ pre[class*="language-"] {

code:not([class*="language-"]) {
padding: 0.1em 0.3em;
background: #eee;
}

.dark code:not([class*="language-"]) {
background: #2e3440;
}

Expand Down

0 comments on commit 6909918

Please sign in to comment.