Skip to content
Discussion options

You must be logged in to vote

Solution:

overrides/partials/palette.html

<!-- Color palette toggle -->
<form class="md-header__option" data-md-component="palette">
  {% for option in config.theme.palette %}
    {% set scheme  = option.scheme  | d("default", true) %}
    {% set primary = option.primary | d("indigo", true) %}
    {% set accent  = option.accent  | d("indigo", true) %}
    <input
      class="md-option"
      data-md-color-media="{{ option.media }}"
      data-md-color-scheme="{{ scheme | replace(' ', '-') }}"
      data-md-color-primary="{{ primary | replace(' ', '-') }}"
      data-md-color-accent="{{ accent | replace(' ', '-') }}"
      {% if option.toggle %}
        aria-label="{{ option.toggle.name }}"…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dragomano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant