Skip to content

Commit

Permalink
add support for 'prefers-color-scheme' save our eyes @ night
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Taran committed Aug 29, 2022
1 parent adbc25d commit a98ecd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@

{% include favicon.html %}

<link rel="stylesheet" href="{{ '/assets/css/just-the-docs-default.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/assets/css/just-the-docs-light.css' | relative_url }}" media="(prefers-color-scheme: light)">
<link rel="stylesheet" href="{{ '/assets/css/just-the-docs-dark.css' | relative_url }}" media="(prefers-color-scheme: dark)">

{% if site.ga_tracking != nil %}
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.ga_tracking }}"></script>
Expand Down

0 comments on commit a98ecd6

Please sign in to comment.