From c444c88f655b0bdd6e5c3600c58910f6e87f81eb Mon Sep 17 00:00:00 2001 From: bajpai244 Date: Thu, 7 Oct 2021 23:38:02 +0530 Subject: [PATCH] feat: force light mode on website Currently, the website forces dark mode if in localStorage `theme-ui-color-mode` is set to dark. This, PR will force light mode and will remove these inconsistencies. --- lib/theme.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/theme.js b/lib/theme.js index 392f4dad..b371c1f7 100644 --- a/lib/theme.js +++ b/lib/theme.js @@ -13,4 +13,8 @@ theme.layout.copy.maxWidth = [null, null, 'copyPlus'] theme.text.title.fontSize = [5, 6] +/**Disable dark mode */ +theme.useColorSchemeMediaQuery = false +theme.colors.modes = {} + export default theme