mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added documentation for color schemes
This commit is contained in:
parent
6172a9d5b9
commit
d114778636
@ -323,9 +323,19 @@ theme:
|
||||
|
||||
### Color scheme
|
||||
|
||||
> Default: `light`
|
||||
> Default: `default`
|
||||
|
||||
Click on a color name to change the primary color of the theme:
|
||||
Material for MkDocs supports two color schemes: a light mode, which is just
|
||||
called `default`, and a dark mode, which is called `slate`. The color scheme
|
||||
can be set from `mkdocs.yml`:
|
||||
|
||||
``` yaml
|
||||
theme:
|
||||
palette:
|
||||
scheme: slate
|
||||
```
|
||||
|
||||
Click on a color name to change the color scheme of the theme:
|
||||
|
||||
<style>
|
||||
.md-typeset button[data-md-color-scheme] {
|
||||
@ -342,7 +352,7 @@ Click on a color name to change the primary color of the theme:
|
||||
}
|
||||
</style>
|
||||
|
||||
<button data-md-color-scheme="light"><code>light</code></button>
|
||||
<button data-md-color-scheme="default"><code>default</code></button>
|
||||
<button data-md-color-scheme="slate"><code>slate</code></button>
|
||||
|
||||
<script>
|
||||
|
@ -54,7 +54,7 @@ theme:
|
||||
- tabs
|
||||
#- instant
|
||||
palette:
|
||||
scheme: slate
|
||||
scheme: default
|
||||
primary: indigo
|
||||
accent: indigo
|
||||
font:
|
||||
|
Loading…
Reference in New Issue
Block a user