Skip to content

Commit

Permalink
Added documentation for color schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed May 18, 2020
1 parent 6172a9d commit d114778
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 13 additions & 3 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] {
Expand All @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ theme:
- tabs
#- instant
palette:
scheme: slate
scheme: default
primary: indigo
accent: indigo
font:
Expand Down

0 comments on commit d114778

Please sign in to comment.