This repository has been archived on 2025-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
coryd.dev-eleventy/src/_includes/partials/nav/theme-toggle.liquid
2024-04-16 08:43:38 -07:00

15 lines
No EOL
426 B
Text

<script type="module" src="/assets/scripts/components/theme-toggle.js"></script>
<span class="client-side">
<theme-toggle>
<button
class="theme-toggle"
aria-label="Toggle site theme">
<span class="light">
{% tablericon "sun" "Toggle light theme" %}
</span>
<span class="dark">
{% tablericon "moon" "Toggle dark theme" %}
</span>
</button>
</theme-toggle>
</span>