From 1ca6b890a6ef3e8debb615a8887b4e8ca186efaa Mon Sep 17 00:00:00 2001 From: Eric Doughty-Papassideris Date: Thu, 7 Mar 2024 19:35:32 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Frontend=20-=20avoid=20FOUC=20on?= =?UTF-8?q?=20load=20in=20dark-mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tdrive/frontend/public/index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tdrive/frontend/public/index.html b/tdrive/frontend/public/index.html index 799f5a26..defcec71 100644 --- a/tdrive/frontend/public/index.html +++ b/tdrive/frontend/public/index.html @@ -24,6 +24,12 @@ background: #FFFFFF; } + @media (prefers-color-scheme: dark) { + body, #root { + background: #2e3440; /* From tdrive/frontend/public/index.html - var(--nord0); */ + } + } + #root { z-index: 0; }