Skip to content

Commit

Permalink
added dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
jitendravjh committed Aug 22, 2024
1 parent b4949a7 commit 513f40f
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ format:
html:
theme:
light: cosmo
dark: [solar, theming/theme-dark.scss]
css: theming/styles.css
toc: true
smooth-scroll: true
Expand Down
47 changes: 47 additions & 0 deletions theming/theme-dark.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*-- scss:defaults --*/

$navbar-bg: #192222;
$navbar-fg: #1bb3ac;
$footer-bg: #192222;
$footer-fg: #1bb3ac;
$body-color: #fff;
$body-bg: #131818;

a {
color: #2aa198 !important;
}

a:hover {
color: #31dce6 !important;
}

code, p code, ol code, li code, h1 code {
background-color: #172424 !important;
color: #2aa198;
}

.cell, .anchored code {
background-color: #172424 !important;
color: #2aa198;
}

div.sourceCode {
background-color: #172424 !important;
}

li {
color: #979c9c !important;
}

.menu-text:hover {
color: #31dce6 !important;
}

p {
color: #979c9c !important;
}

::selection {
color: #31dce6;
background: #192222;
}

0 comments on commit 513f40f

Please sign in to comment.