Skip to content

Commit

Permalink
Add custom CSS styles for primary and accent colors
Browse files Browse the repository at this point in the history
  • Loading branch information
haeussma committed Sep 17, 2024
1 parent 549da06 commit 074b04f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
Binary file added docs/figs/enzml_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
:root {
--md-primary-fg-color: #40707D;
--md-primary-fg-color--light: #ECB7B7;
--md-accent-fg-color: #90030C;
--md-primary-fg-color--dark: #90030C;
}
24 changes: 15 additions & 9 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ nav:

theme:
name: material
logo: figs/enzml_logo.png
features:
- navigation.instant
- navigation.instant.preview
Expand All @@ -37,17 +38,19 @@ theme:
- content.code.annotation
- content.tooltips
palette:
primary: custom
accent: custom
# Palette toggle for light mode
- scheme: default
toggle:
icon: material/brightness-7
name: Switch to dark mode
# - scheme: default
# toggle:
# icon: material/brightness-7
# name: Switch to dark mode

# Palette toggle for dark mode
- scheme: slate
toggle:
icon: material/brightness-4
name: Switch to light mode
# # Palette toggle for dark mode
# - scheme: slate
# toggle:
# icon: material/brightness-4
# name: Switch to light mode

markdown_extensions:
- abbr
Expand Down Expand Up @@ -85,3 +88,6 @@ extra_javascript:
- javascripts/mathjax.js
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js

extra_css:
- stylesheets/extra.css

0 comments on commit 074b04f

Please sign in to comment.