Skip to content

Commit

Permalink
Update syntax highlights for light/dark mode
Browse files Browse the repository at this point in the history
It isn't perfect, but I didn't want to go overboard with the CSS
selector setting stuff. So I think this is a fairly good compromise (and
latte is my daily-driver theme for work, haha)
  • Loading branch information
nicholastay committed Jun 15, 2024
1 parent abf9c71 commit e489e03
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ outputFormats:
RSS:
mediatype: "application/rss"
baseName: "rss"

markup:
highlight:
style: catppuccin-latte
2 changes: 1 addition & 1 deletion content/post/2024-01-21-wine-dualsense.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The main issue is that the PS5 controller uses its audio device for haptics (bac

Under Fedora 39's default config, the audio session manager is WirePlumber for PipeWire. So, in `~/.config/wireplumber/main.lua.d/60-dualsense.lua`, we can create a custom rule:

```
```lua
rule = {
matches = {
{
Expand Down
12 changes: 7 additions & 5 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ li {

pre, code,
pre code span {
background-color: #e6e6e6 !important;
color: #4c4f69;
background-color: #eff1f5 !important;
font-family: "Fantasque Sans Mono", Monaco, Menlo, monospace;
}
pre code > span {
padding: 0.1rem 0;
}

code {
padding: 0.15rem 0.35rem;
Expand Down Expand Up @@ -333,9 +337,7 @@ blockquote {

pre, code,
pre code span {
background-color: #323232 !important;
}
pre, code {
color: white;
color: #e1dbfd;
background-color: #090e15 !important;
}
}

0 comments on commit e489e03

Please sign in to comment.