1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-29 07:43:17 +01:00
mkdocs-material/material/templates/partials/javascripts/palette.html

5 lines
763 B
HTML
Raw Normal View History

{#-
This file was automatically generated - do not edit
-#}
2024-08-26 10:57:35 +02:00
<script>var palette=__md_get("__palette");if(palette&&palette.color){if("(prefers-color-scheme)"===palette.color.media){var media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent")}for(var[key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>