Skip to content

Commit 0fe093c

Browse files
committed
force light mode so that it can work with codetorch
1 parent 3eefe40 commit 0fe093c

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

‎src/lib/themes/gui/light.js‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ const guiColors = {
66
'ui-tertiary': 'hsla(215, 50%, 90%, 1)', /* #D9E3F2 */
77

88
'ui-modal-overlay': 'var(--motion-primary-transparent)',
9-
'ui-modal-background': 'hsla(0, 100%, 100%, 1)', /* #FFFFFF */
9+
'ui-modal-background': 'hsl(0, 0.00%, 94.10%)', /*#F0F0F0 */
1010
'ui-modal-foreground': 'hsla(225, 15%, 40%, 1)', /* #575E75 */
1111
'ui-modal-header-background': 'var(--looks-secondary)',
1212
'ui-modal-header-foreground': 'hsla(0, 100%, 100%, 1)', /* #FFFFFF */
1313

14-
'ui-white': 'hsla(0, 100%, 100%, 1)', /* #FFFFFF */
14+
'ui-white': 'hsl(0, 0.00%, 94.10%)', /* #f0f0f0 */
1515
'ui-white-dim': 'hsla(0, 100%, 100%, 0.75)', /* 25% transparent version of ui-white */
1616
'ui-white-transparent': 'hsla(0, 100%, 100%, 0.25)', /* 25% transparent version of ui-white */
1717
'ui-transparent': 'hsla(0, 100%, 100%, 0)', /* 25% transparent version of ui-white */
@@ -57,27 +57,27 @@ const guiColors = {
5757

5858
'menu-bar-background': 'var(--looks-secondary)',
5959
'menu-bar-background-image': 'none',
60-
'menu-bar-foreground': '#ffffff',
60+
'menu-bar-foreground': '#f0f0f0',
6161

62-
'assets-background': '#ffffff',
62+
'assets-background': '#f0f0f0',
6363

64-
'input-background': '#ffffff',
64+
'input-background': '#f0f0f0',
6565

66-
'popover-background': '#ffffff',
66+
'popover-background': '#f0f0f0',
6767

6868
'shadow': 'hsla(0, 0%, 0%, 0.15)',
6969

7070
'badge-background': '#dbebff',
7171
'badge-border': '#b9d6ff',
7272

73-
'fullscreen-background': '#ffffff',
73+
'fullscreen-background': '#f0f0f0',
7474
'fullscreen-accent': '#e8edf1',
7575

76-
'page-background': '#ffffff',
76+
'page-background': '#f0f0f0',
7777
'page-foreground': '#000000',
7878

7979
'project-title-inactive': 'var(--ui-white-transparent)',
80-
'project-title-hover': '#ffffff7f',
80+
'project-title-hover': '#f0f0f07f',
8181

8282
'link-color': '#2255dd',
8383

‎src/lib/themes/themePersistance.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ const STORAGE_KEY = 'tw:theme';
1010
* @returns {Theme} detected theme
1111
*/
1212
const systemPreferencesTheme = () => {
13+
// @OVERRIDE if is on home page, return light theme
14+
if (window.location.pathname === "/" || window.location.pathname === "/index.html") {
15+
return Theme.light;
16+
}
1317
if (PREFERS_HIGH_CONTRAST_QUERY && PREFERS_HIGH_CONTRAST_QUERY.matches) {
1418
return Theme.highContrast;
1519
}

0 commit comments

Comments
 (0)