feat: add auto theme mode
This commit is contained in:
parent
ab2d732ec5
commit
50640d0590
6 changed files with 39 additions and 15 deletions
|
@ -1,7 +1,10 @@
|
|||
<script type="module" src="/assets/scripts/components/theme-toggle.js?v={% appVersion %}" crossorigin="anonymous"></script>
|
||||
<span class="client-side">
|
||||
<theme-toggle>
|
||||
<button aria-label="Light and dark theme toggle" class="theme-toggle">
|
||||
<theme-toggle mode="control">
|
||||
<button aria-label="Auto, light, dark theme control" class="theme-toggle">
|
||||
<span class="auto">
|
||||
{% tablericon "sun-moon" %}
|
||||
</span>
|
||||
<span class="light">
|
||||
{% tablericon "sun" %}
|
||||
</span>
|
||||
|
|
Reference in a new issue