From 44acba00be199ba45ed8eee8997be658e92f66aa Mon Sep 17 00:00:00 2001 From: Pk11 Date: Sun, 20 Jun 2021 05:20:09 -0500 Subject: [PATCH] Default to preferred color scheme (#102) * Default to preferred color scheme * Fallback to dark theme when no preferred color --- docs/assets/css/main.css | 3 +++ index.html | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/assets/css/main.css b/docs/assets/css/main.css index 75dd4b133..83b9b59e5 100644 --- a/docs/assets/css/main.css +++ b/docs/assets/css/main.css @@ -1,3 +1,6 @@ +@import url("dark.css"); +@import url("light.css") (prefers-color-scheme: light); + .markdown-section iframe[src*="buttons.github.io"] { margin: 0; } diff --git a/index.html b/index.html index 516cbdf05..ca0eb6b45 100644 --- a/index.html +++ b/index.html @@ -10,11 +10,11 @@ - - + +