Skip to content

Commit

Permalink
fix: system dark mode support
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav committed Jun 8, 2023
1 parent 0d0af5c commit 3c6fe43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unfold/templates/unfold/layouts/skeleton.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{% capture as actions_items silent %}{% block actions-items %}{% endblock %}{% endcapture %}

<!DOCTYPE html>
<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" dir="{{ LANGUAGE_BIDI|yesno:"rtl,ltr,auto" }}" x-data="{ adminTheme: $persist('auto').as('adminTheme') }" x-bind:class="adminTheme && adminTheme" x-cloak>
<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" dir="{{ LANGUAGE_BIDI|yesno:"rtl,ltr,auto" }}" x-data="{ adminTheme: $persist('auto').as('adminTheme') }" x-bind:class="{'dark': adminTheme === 'dark' || (adminTheme === 'auto' && window.matchMedia('(prefers-color-scheme: dark)').matches)}" x-cloak>

<head>
<title>{% block title %}{% endblock %}</title>
Expand Down

0 comments on commit 3c6fe43

Please sign in to comment.