Skip to content

Commit

Permalink
Add dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mavidser committed Oct 14, 2024
1 parent 58c3120 commit 286ed06
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
18 changes: 17 additions & 1 deletion assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,20 @@ main > p > strong {
background-clip: border-box;
background-clip: text;
color: transparent;
}
}

:root[data-color-scheme="dark"] main > p > strong {
background: linear-gradient(to right, #FEAC5E, #C779D0, #4BC0C8);
background-clip: border-box;
background-clip: text;
color: transparent;
}

@media (prefers-color-scheme: dark) {
:root[data-color-scheme="auto"] main > p > strong {
background: linear-gradient(to right, #FEAC5E, #C779D0, #4BC0C8);
background-clip: border-box;
background-clip: text;
color: transparent;
}
}
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ summaryLength = 0
unsafe= true

[params]
mode = "light"
colorScheme = "auto"
customCSS = ["/css/style.css"]
favicon = "/icons/favicon.ico"
socialBanner = "/icons/banner.png"
Expand Down

0 comments on commit 286ed06

Please sign in to comment.