1
0
mirror of https://github.com/ko-build/ko.git synced 2025-01-23 18:34:10 +02:00

feat(docs): Add dark theme

This commit is contained in:
Gabe Cook 2024-10-10 21:49:47 -05:00 committed by Jason Hall
parent c98cb1e05f
commit 932656364f
4 changed files with 25 additions and 2 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 6.3 KiB

View File

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@ -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>

View File

@ -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