diff --git a/material/base.html b/material/base.html index c81ecded0..becd67559 100644 --- a/material/base.html +++ b/material/base.html @@ -81,10 +81,10 @@ {% if not palette is mapping %} {% set palette = palette | first %} {% endif %} - {% set scheme = palette.scheme | replace(" ", "-") | lower %} - {% set primary = palette.primary | replace(" ", "-") | lower %} - {% set accent = palette.accent | replace(" ", "-") | lower %} - + {% set scheme = palette.scheme | d("default", true) %} + {% set primary = palette.primary | d("indigo", true) %} + {% set accent = palette.accent | d("indigo", true) %} + {% else %} {% endif %} diff --git a/material/partials/header.html b/material/partials/header.html index 63708b2bd..f36776d86 100644 --- a/material/partials/header.html +++ b/material/partials/header.html @@ -34,9 +34,10 @@ {% if not config.theme.palette is mapping %}
{% for option in config.theme.palette %} - {% set primary = option.primary | replace(" ", "-") | lower %} - {% set accent = option.accent | replace(" ", "-") | lower %} - + {% set scheme = option.scheme | d("default", true) %} + {% set primary = option.primary | d("indigo", true) %} + {% set accent = option.accent | d("indigo", true) %} + {% if option.toggle %}