Skip to content

Commit 2d72fa5

Browse files
committed
Trying to use darkthemem from _brand.yml
1 parent 9518b01 commit 2d72fa5

2 files changed

Lines changed: 16 additions & 13 deletions

File tree

inst/pkgdown/_brand.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,7 @@ color:
2525
stan-blue-light: "#AED1E4"
2626
stan-nav-dark: "#303030"
2727

28-
foreground:
29-
light: stan-blue-dark
30-
dark: stan-cream-light
31-
background:
32-
light: stan-cream
33-
dark: stan-gray-dark
34-
primary:
35-
light: stan-blue-med
36-
dark: stan-blue-light
37-
secondary:
38-
light: stan-teal
39-
dark: stan-blue-light
40-
28+
foreground: stan-blue-dark
29+
background: stan-cream
30+
primary: stan-blue-med
31+
secondary: stan-teal

inst/pkgdown/_pkgdown.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ template:
1212
bslib:
1313
brand: pkgdown/_brand.yml
1414

15+
rules: |
16+
@include color-mode(dark) {
17+
--bs-body-bg: #{$brand-stan-gray-dark};
18+
--bs-body-color: #{$brand-stan-cream-light};
19+
--bs-primary: #{$brand-stan-blue-light};
20+
--bs-secondary: #{$brand-stan-blue-light};
21+
22+
.navbar {
23+
--bs-navbar-bg: #{$brand-stan-nav-dark};
24+
}
25+
}
26+
1527
navbar-light-bg: "#052744"
1628
navbar-light-color: "#F2E5BD"
1729
navbar-light-active-color: "#93B0F1"

0 commit comments

Comments
 (0)