2020-07-16 22:31:39 +02:00
|
|
|
|
---
|
|
|
|
|
template: overrides/main.html
|
|
|
|
|
---
|
|
|
|
|
|
2020-07-21 16:01:22 +02:00
|
|
|
|
# Changing the colors
|
2020-07-16 22:31:39 +02:00
|
|
|
|
|
2020-07-26 14:46:09 +02:00
|
|
|
|
As any proper Material Design implementation, Material for MkDocs supports
|
2021-10-10 17:39:53 +02:00
|
|
|
|
Google's original [color palette], which can be easily configured through
|
2020-07-17 13:08:27 +02:00
|
|
|
|
`mkdocs.yml`. Furthermore, colors can be customized with a few lines of CSS to
|
2021-10-10 17:39:53 +02:00
|
|
|
|
fit your brand's identity by using [CSS variables][custom colors].
|
2020-07-16 22:31:39 +02:00
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
[color palette]: http://www.materialui.co/colors
|
|
|
|
|
[custom colors]: #custom-colors
|
2020-07-16 22:31:39 +02:00
|
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
2020-08-26 23:21:28 +02:00
|
|
|
|
### Color palette
|
|
|
|
|
|
|
|
|
|
#### Color scheme
|
2020-07-16 22:31:39 +02:00
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
[:octicons-tag-24: 5.2.0][palette.scheme support] ·
|
|
|
|
|
:octicons-milestone-24: Default: `default`
|
2020-07-16 22:31:39 +02:00
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
Material for MkDocs supports two color schemes: a light mode, which is just
|
2020-07-16 22:31:39 +02:00
|
|
|
|
called `default`, and a dark mode, which is called `slate`. The color scheme
|
2020-07-23 13:17:50 +02:00
|
|
|
|
can be set via `mkdocs.yml`:
|
2020-07-16 22:31:39 +02:00
|
|
|
|
|
|
|
|
|
``` yaml
|
|
|
|
|
theme:
|
|
|
|
|
palette:
|
|
|
|
|
scheme: default
|
|
|
|
|
```
|
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
Click on a tile to change the color scheme:
|
2020-07-16 22:31:39 +02:00
|
|
|
|
|
2021-02-24 18:02:09 +01:00
|
|
|
|
<div class="mdx-switch">
|
2020-07-19 22:23:26 +02:00
|
|
|
|
<button data-md-color-scheme="default"><code>default</code></button>
|
|
|
|
|
<button data-md-color-scheme="slate"><code>slate</code></button>
|
|
|
|
|
</div>
|
2020-07-16 22:31:39 +02:00
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
var buttons = document.querySelectorAll("button[data-md-color-scheme]")
|
|
|
|
|
buttons.forEach(function(button) {
|
|
|
|
|
button.addEventListener("click", function() {
|
2020-07-17 13:08:27 +02:00
|
|
|
|
var attr = this.getAttribute("data-md-color-scheme")
|
|
|
|
|
document.body.setAttribute("data-md-color-scheme", attr)
|
2021-06-15 12:10:11 +02:00
|
|
|
|
var name = document.querySelector("#__code_1 code span:nth-child(7)")
|
2020-07-17 13:08:27 +02:00
|
|
|
|
name.textContent = attr
|
2020-07-16 22:31:39 +02:00
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
[palette.scheme support]: https://github.com/squidfunk/mkdocs-material/releases/tag/5.2.0
|
2020-07-16 23:05:57 +02:00
|
|
|
|
|
2020-08-26 23:21:28 +02:00
|
|
|
|
#### Primary color
|
2020-07-16 22:31:39 +02:00
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
[:octicons-tag-24: 0.2.0][palette.primary support] ·
|
|
|
|
|
:octicons-milestone-24: Default: `indigo`
|
2020-07-16 22:31:39 +02:00
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
The primary color is used for the header, the sidebar, text links and several
|
2020-07-16 22:31:39 +02:00
|
|
|
|
other components. In order to change the primary color, set the following value
|
|
|
|
|
in `mkdocs.yml` to a valid color name:
|
|
|
|
|
|
|
|
|
|
``` yaml
|
|
|
|
|
theme:
|
|
|
|
|
palette:
|
|
|
|
|
primary: indigo
|
|
|
|
|
```
|
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
Click on a tile to change the primary color:
|
2020-07-16 22:31:39 +02:00
|
|
|
|
|
2021-02-24 18:02:09 +01:00
|
|
|
|
<div class="mdx-switch">
|
2020-07-19 22:23:26 +02:00
|
|
|
|
<button data-md-color-primary="red"><code>red</code></button>
|
|
|
|
|
<button data-md-color-primary="pink"><code>pink</code></button>
|
|
|
|
|
<button data-md-color-primary="purple"><code>purple</code></button>
|
|
|
|
|
<button data-md-color-primary="deep-purple"><code>deep purple</code></button>
|
|
|
|
|
<button data-md-color-primary="indigo"><code>indigo</code></button>
|
|
|
|
|
<button data-md-color-primary="blue"><code>blue</code></button>
|
|
|
|
|
<button data-md-color-primary="light-blue"><code>light blue</code></button>
|
|
|
|
|
<button data-md-color-primary="cyan"><code>cyan</code></button>
|
|
|
|
|
<button data-md-color-primary="teal"><code>teal</code></button>
|
|
|
|
|
<button data-md-color-primary="green"><code>green</code></button>
|
|
|
|
|
<button data-md-color-primary="light-green"><code>light green</code></button>
|
|
|
|
|
<button data-md-color-primary="lime"><code>lime</code></button>
|
|
|
|
|
<button data-md-color-primary="yellow"><code>yellow</code></button>
|
|
|
|
|
<button data-md-color-primary="amber"><code>amber</code></button>
|
|
|
|
|
<button data-md-color-primary="orange"><code>orange</code></button>
|
|
|
|
|
<button data-md-color-primary="deep-orange"><code>deep orange</code></button>
|
|
|
|
|
<button data-md-color-primary="brown"><code>brown</code></button>
|
|
|
|
|
<button data-md-color-primary="grey"><code>grey</code></button>
|
|
|
|
|
<button data-md-color-primary="blue-grey"><code>blue grey</code></button>
|
|
|
|
|
<button data-md-color-primary="black"><code>black</code></button>
|
|
|
|
|
<button data-md-color-primary="white"><code>white</code></button>
|
|
|
|
|
</div>
|
2020-07-16 22:31:39 +02:00
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
var buttons = document.querySelectorAll("button[data-md-color-primary]")
|
|
|
|
|
buttons.forEach(function(button) {
|
|
|
|
|
button.addEventListener("click", function() {
|
2020-07-17 13:08:27 +02:00
|
|
|
|
var attr = this.getAttribute("data-md-color-primary")
|
|
|
|
|
document.body.setAttribute("data-md-color-primary", attr)
|
2021-06-15 12:10:11 +02:00
|
|
|
|
var name = document.querySelector("#__code_2 code span:nth-child(7)")
|
2020-07-17 13:08:27 +02:00
|
|
|
|
name.textContent = attr.replace("-", " ")
|
2020-07-16 22:31:39 +02:00
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
[palette.primary support]: https://github.com/squidfunk/mkdocs-material/releases/tag/0.2.0
|
2020-07-16 23:05:57 +02:00
|
|
|
|
|
2020-08-26 23:21:28 +02:00
|
|
|
|
#### Accent color
|
2020-07-16 22:31:39 +02:00
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
[:octicons-tag-24: 0.2.0][palette.accent support] ·
|
|
|
|
|
:octicons-milestone-24: Default: `indigo`
|
2020-07-16 22:31:39 +02:00
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
The accent color is used to denote elements that can be interacted with, e.g.
|
2020-07-16 22:31:39 +02:00
|
|
|
|
hovered links, buttons and scrollbars. It can be changed in `mkdocs.yml` by
|
2020-07-26 14:46:09 +02:00
|
|
|
|
choosing a valid color name:
|
2020-07-16 22:31:39 +02:00
|
|
|
|
|
|
|
|
|
``` yaml
|
|
|
|
|
theme:
|
|
|
|
|
palette:
|
|
|
|
|
accent: indigo
|
|
|
|
|
```
|
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
Click on a tile to change the accent color:
|
2020-07-16 22:31:39 +02:00
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.md-typeset button[data-md-color-accent] > code {
|
2020-07-19 22:23:26 +02:00
|
|
|
|
background-color: var(--md-code-bg-color);
|
2020-07-16 22:31:39 +02:00
|
|
|
|
color: var(--md-accent-fg-color);
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
2021-02-24 18:02:09 +01:00
|
|
|
|
<div class="mdx-switch">
|
2020-07-19 22:23:26 +02:00
|
|
|
|
<button data-md-color-accent="red"><code>red</code></button>
|
|
|
|
|
<button data-md-color-accent="pink"><code>pink</code></button>
|
|
|
|
|
<button data-md-color-accent="purple"><code>purple</code></button>
|
|
|
|
|
<button data-md-color-accent="deep-purple"><code>deep purple</code></button>
|
|
|
|
|
<button data-md-color-accent="indigo"><code>indigo</code></button>
|
|
|
|
|
<button data-md-color-accent="blue"><code>blue</code></button>
|
|
|
|
|
<button data-md-color-accent="light-blue"><code>light blue</code></button>
|
|
|
|
|
<button data-md-color-accent="cyan"><code>cyan</code></button>
|
|
|
|
|
<button data-md-color-accent="teal"><code>teal</code></button>
|
|
|
|
|
<button data-md-color-accent="green"><code>green</code></button>
|
|
|
|
|
<button data-md-color-accent="light-green"><code>light green</code></button>
|
|
|
|
|
<button data-md-color-accent="lime"><code>lime</code></button>
|
|
|
|
|
<button data-md-color-accent="yellow"><code>yellow</code></button>
|
|
|
|
|
<button data-md-color-accent="amber"><code>amber</code></button>
|
|
|
|
|
<button data-md-color-accent="orange"><code>orange</code></button>
|
|
|
|
|
<button data-md-color-accent="deep-orange"><code>deep orange</code></button>
|
|
|
|
|
</div>
|
2020-07-16 22:31:39 +02:00
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
var buttons = document.querySelectorAll("button[data-md-color-accent]")
|
|
|
|
|
buttons.forEach(function(button) {
|
|
|
|
|
button.addEventListener("click", function() {
|
2020-07-17 13:08:27 +02:00
|
|
|
|
var attr = this.getAttribute("data-md-color-accent")
|
|
|
|
|
document.body.setAttribute("data-md-color-accent", attr)
|
2021-06-15 12:10:11 +02:00
|
|
|
|
var name = document.querySelector("#__code_3 code span:nth-child(7)")
|
2020-07-17 13:08:27 +02:00
|
|
|
|
name.textContent = attr.replace("-", " ")
|
2020-07-16 22:31:39 +02:00
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
[palette.accent support]: https://github.com/squidfunk/mkdocs-material/releases/tag/0.2.0
|
2020-07-16 23:05:57 +02:00
|
|
|
|
|
2020-08-26 23:21:28 +02:00
|
|
|
|
### Color palette toggle
|
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
[:octicons-tag-24: 7.1.0][palette.toggle support] ·
|
|
|
|
|
:octicons-milestone-24: Default: _none_
|
2020-08-26 23:21:28 +02:00
|
|
|
|
|
2021-04-18 16:19:39 +02:00
|
|
|
|
It's also possible to offer a list of color palettes to the user, each of which
|
2021-10-10 17:39:53 +02:00
|
|
|
|
can include a [`scheme`][palette.scheme], [`primary`][palette.primary] and
|
|
|
|
|
[`accent`][palette.accent] color each. The user can toggle between those color
|
|
|
|
|
palettes:
|
2021-04-18 16:19:39 +02:00
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
``` yaml
|
2020-08-26 23:21:28 +02:00
|
|
|
|
theme:
|
2021-10-10 17:39:53 +02:00
|
|
|
|
palette: # (1)
|
2021-04-18 16:19:39 +02:00
|
|
|
|
- scheme: default
|
2020-08-26 23:21:28 +02:00
|
|
|
|
toggle:
|
2021-02-24 18:59:12 +01:00
|
|
|
|
icon: material/toggle-switch-off-outline
|
|
|
|
|
name: Switch to dark mode
|
2021-10-10 17:39:53 +02:00
|
|
|
|
- scheme: slate # (2)
|
2020-08-26 23:21:28 +02:00
|
|
|
|
toggle:
|
2021-02-24 18:59:12 +01:00
|
|
|
|
icon: material/toggle-switch
|
|
|
|
|
name: Switch to light mode
|
2020-08-26 23:21:28 +02:00
|
|
|
|
```
|
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
1. Note that the `theme.palette` setting is now defined as a list.
|
|
|
|
|
2. With __2__ (color schemes) __x 21__ (primary colors) __x 17__ (accent color)
|
|
|
|
|
= __714__ combinations, it's impossible to ensure that all configurations
|
|
|
|
|
provide a good user experience (e.g. _yellow on light background_). Make
|
|
|
|
|
sure that the color combination of your choosing provides enough contrast
|
|
|
|
|
and tweak CSS variables where necessary.
|
|
|
|
|
|
|
|
|
|
The following properties must be set for each toggle:
|
2020-08-26 23:21:28 +02:00
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
`icon`{ #toggle-icon }
|
2020-08-26 23:21:28 +02:00
|
|
|
|
|
|
|
|
|
: :octicons-milestone-24: Default: _none_ · :octicons-alert-24: Required –
|
2021-10-31 10:07:39 +01:00
|
|
|
|
This property must point to a valid icon path referencing [any icon bundled
|
2021-10-10 17:39:53 +02:00
|
|
|
|
with the theme][custom icons], or the build will not succeed. Some popular
|
2020-08-26 23:21:28 +02:00
|
|
|
|
combinations:
|
|
|
|
|
|
|
|
|
|
* :material-toggle-switch-off-outline: + :material-toggle-switch: – `material/toggle-switch-off-outline` + `material/toggle-switch`
|
|
|
|
|
* :material-weather-sunny: + :material-weather-night: – `material/weather-sunny` + `material/weather-night`
|
|
|
|
|
* :material-eye-outline: + :material-eye: – `material/eye-outline` + `material/eye`
|
|
|
|
|
* :material-lightbulb-outline: + :material-lightbulb: – `material/lightbulb-outline` + `material/lightbulb`
|
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
`name`{ #toggle-name }
|
2020-08-26 23:21:28 +02:00
|
|
|
|
|
|
|
|
|
: :octicons-milestone-24: Default: _none_ · :octicons-alert-24: Required –
|
2021-10-31 10:07:39 +01:00
|
|
|
|
This property is used as the toggle's `title` attribute and should be set to a
|
2021-10-10 17:39:53 +02:00
|
|
|
|
discernable name to improve accessibility. It will appear on mouse hover.
|
2020-08-26 23:21:28 +02:00
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
[palette.toggle support]: https://github.com/squidfunk/mkdocs-material/releases/tag/7.1.0
|
|
|
|
|
[palette.scheme]: #color-scheme
|
|
|
|
|
[palette.primary]: #primary-color
|
|
|
|
|
[palette.accent]: #accent-color
|
|
|
|
|
[custom icons]: https://github.com/squidfunk/mkdocs-material/tree/master/material/.icons
|
2021-04-18 16:19:39 +02:00
|
|
|
|
|
|
|
|
|
### System preference
|
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
[:octicons-tag-24: 7.1.0][palette.media support] ·
|
|
|
|
|
:octicons-milestone-24: Default: _none_
|
2021-04-18 16:19:39 +02:00
|
|
|
|
|
|
|
|
|
In order to automatically set the color palette to the user's system preference,
|
2021-10-31 10:07:39 +01:00
|
|
|
|
a media query can be set as part of the `media` property next to the toggle
|
2021-04-18 16:19:39 +02:00
|
|
|
|
definition in `mkdocs.yml`:
|
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
``` yaml
|
2021-04-18 16:19:39 +02:00
|
|
|
|
theme:
|
|
|
|
|
palette:
|
2021-10-10 17:39:53 +02:00
|
|
|
|
- media: "(prefers-color-scheme: light)" # (1)
|
2021-04-18 16:19:39 +02:00
|
|
|
|
scheme: default
|
|
|
|
|
toggle:
|
|
|
|
|
icon: material/toggle-switch-off-outline
|
|
|
|
|
name: Switch to dark mode
|
2021-10-10 17:39:53 +02:00
|
|
|
|
- media: "(prefers-color-scheme: dark)" # (2)
|
2021-04-18 16:19:39 +02:00
|
|
|
|
scheme: slate
|
|
|
|
|
toggle:
|
|
|
|
|
icon: material/toggle-switch
|
|
|
|
|
name: Switch to light mode
|
|
|
|
|
```
|
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
1. This media query is __checked first__. It's also the __fallback__ when no
|
|
|
|
|
media query matches.
|
|
|
|
|
2. This media query is __checked second__. If it doesn't match, the first one
|
|
|
|
|
is automatically used.
|
|
|
|
|
|
2021-04-18 16:19:39 +02:00
|
|
|
|
When the user first visits your site, the media queries are evaluated in the
|
|
|
|
|
order of their definition. The first media query that matches selects the
|
|
|
|
|
default color palette.
|
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
[palette.media support]: https://github.com/squidfunk/mkdocs-material/releases/tag/7.1.0
|
2020-08-26 23:21:28 +02:00
|
|
|
|
|
2020-07-16 22:31:39 +02:00
|
|
|
|
## Customization
|
|
|
|
|
|
2020-07-21 18:39:27 +02:00
|
|
|
|
### Custom colors
|
2020-07-21 16:01:22 +02:00
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
Material for MkDocs implements colors using [CSS variables] (custom
|
2020-07-16 22:31:39 +02:00
|
|
|
|
properties). If you want to customize the colors beyond the palette (e.g. to
|
2021-10-10 17:39:53 +02:00
|
|
|
|
use your brand-specific colors), you can add an [additional style sheet] and
|
2020-07-23 13:17:50 +02:00
|
|
|
|
tweak the values of the CSS variables.
|
|
|
|
|
|
2021-03-13 14:30:29 +01:00
|
|
|
|
Let's say you're :fontawesome-brands-youtube:{ style="color: #EE0F0F" }
|
2020-07-24 14:30:03 +02:00
|
|
|
|
__YouTube__, and want to set the primary color to your brand's palette. Just
|
2020-07-23 13:17:50 +02:00
|
|
|
|
add:
|
2020-07-16 22:31:39 +02:00
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
=== ":octicons-file-code-16: docs/stylesheets/extra.css"
|
2020-07-16 22:31:39 +02:00
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
``` css
|
|
|
|
|
:root {
|
|
|
|
|
--md-primary-fg-color: #EE0F0F;
|
|
|
|
|
--md-primary-fg-color--light: #ECB7B7;
|
|
|
|
|
--md-primary-fg-color--dark: #90030C;
|
|
|
|
|
}
|
|
|
|
|
```
|
2020-07-23 13:17:50 +02:00
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
=== ":octicons-file-code-16: mkdocs.yml"
|
2020-07-23 13:17:50 +02:00
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
``` yaml
|
|
|
|
|
extra_css:
|
|
|
|
|
- stylesheets/extra.css
|
|
|
|
|
```
|
2020-07-23 13:17:50 +02:00
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
See the file containing the [color definitions] for a list of all CSS variables.
|
2020-07-23 13:17:50 +02:00
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
[CSS variables]: https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties
|
|
|
|
|
[color definitions]: https://github.com/squidfunk/mkdocs-material/blob/master/src/assets/stylesheets/main/_colors.scss
|
|
|
|
|
[additional style sheet]: ../customization.md#additional-css
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Custom color schemes
|
2020-07-23 13:17:50 +02:00
|
|
|
|
|
|
|
|
|
Besides overriding specific colors, you can create your own, named color scheme
|
2021-10-10 17:39:53 +02:00
|
|
|
|
by wrapping the definitions in a `[data-md-color-scheme="..."]`
|
|
|
|
|
[attribute selector], which you can then set via `mkdocs.yml` as described
|
|
|
|
|
in the [color schemes][palette.scheme] section:
|
2020-07-16 22:31:39 +02:00
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
=== ":octicons-file-code-16: docs/stylesheets/extra.css"
|
|
|
|
|
|
|
|
|
|
``` css
|
|
|
|
|
[data-md-color-scheme="youtube"] {
|
|
|
|
|
--md-primary-fg-color: #EE0F0F;
|
|
|
|
|
--md-primary-fg-color--light: #ECB7B7;
|
|
|
|
|
--md-primary-fg-color--dark: #90030C;
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
=== ":octicons-file-code-16: mkdocs.yml"
|
|
|
|
|
|
|
|
|
|
``` yaml
|
2021-10-10 19:22:13 +02:00
|
|
|
|
theme:
|
|
|
|
|
palette:
|
|
|
|
|
scheme: youtube
|
2021-10-10 17:39:53 +02:00
|
|
|
|
extra_css:
|
|
|
|
|
- stylesheets/extra.css
|
|
|
|
|
```
|
2020-07-27 14:44:47 +02:00
|
|
|
|
|
|
|
|
|
Additionally, the `slate` color scheme defines all of it's colors via `hsla`
|
|
|
|
|
color functions and deduces its colors from the `--md-hue` CSS variable. You
|
|
|
|
|
can tune the `slate` theme with:
|
|
|
|
|
|
|
|
|
|
``` css
|
|
|
|
|
[data-md-color-scheme="slate"] {
|
2021-10-10 17:39:53 +02:00
|
|
|
|
--md-hue: 210; /* (1) */
|
2020-07-27 14:44:47 +02:00
|
|
|
|
}
|
2020-07-16 22:31:39 +02:00
|
|
|
|
```
|
|
|
|
|
|
2021-10-10 17:39:53 +02:00
|
|
|
|
1. The `hue` value must be in the range of `[0, 360]`
|
|
|
|
|
|
|
|
|
|
[attribute selector]: https://www.w3.org/TR/selectors-4/#attribute-selectors
|