File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4
4
<meta charset =" UTF-8" >
5
5
<title >{% block title %}{{ meta .title | default }}{{ meta .title_suffix | default (' - Symfony UX' ) }}{% endblock %}</title >
6
6
<meta name =" viewport" content =" width=device-width, initial-scale=1" >
7
- <meta name =" color-scheme" content =" light dark" >
7
+ <meta name =" color-scheme" content =" dark light " >
8
8
{% block stylesheets %}
9
9
{% endblock %}
10
10
{% if meta .canonical | default %}
25
25
<meta property =" og:image:type" content =" image/png" >
26
26
{% block javascripts %}
27
27
<script >
28
- const theme = localStorage .getItem (' user-theme' ) || (window .matchMedia (' (prefers-color-scheme: dark )' ).matches ? ' dark ' : ' light ' );
29
- document .documentElement .setAttribute (' data-bs-theme' , theme === ' dark ' ? ' dark ' : ' light ' );
28
+ const theme = localStorage .getItem (' user-theme' ) || (window .matchMedia (' (prefers-color-scheme: light )' ).matches ? ' light ' : ' dark ' );
29
+ document .documentElement .setAttribute (' data-bs-theme' , theme === ' light ' ? ' light ' : ' dark ' );
30
30
</script >
31
31
{% block importmap %}
32
32
<script >
You can’t perform that action at this time.
0 commit comments