Skip to content

Commit

Permalink
feat(docs): Add dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Oct 11, 2024
1 parent 7cb72e3 commit 98339d3
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/images/cncf-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
5 changes: 4 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,7 @@ This can make it a good fit for lightweight CI/CD use cases.

`ko` is a Cloud Native Computing Foundation Sandbox project.

<a href="https://cncf.io"><img width=300 src="./images/cncf.svg" alt="CNCF logo" /></a>
<a href="https://cncf.io">
<img width=300 src="./images/cncf-light.svg#only-light" alt="CNCF logo" />
<img width=300 src="./images/cncf-dark.svg#only-dark" alt="CNCF logo" />
</a>
21 changes: 20 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,26 @@ theme:
favicon: images/favicon-96x96.png
custom_dir: docs/custom/
palette:
primary: light blue
# Palette toggle for automatic mode
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode

# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
primary: light blue
toggle:
icon: material/brightness-7
name: Switch to dark mode

# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: light blue
toggle:
icon: material/brightness-4
name: Switch to system preference

nav:
- index.md
Expand Down

0 comments on commit 98339d3

Please sign in to comment.