diff --git a/packages/builder/index.html b/packages/builder/index.html
index 6148cbec58..d6f19a2d43 100644
--- a/packages/builder/index.html
+++ b/packages/builder/index.html
@@ -1,12 +1,12 @@
-
+
Budibase Builder
-
+
\ No newline at end of file
diff --git a/packages/builder/src/builderStore/store/theme.js b/packages/builder/src/builderStore/store/theme.js
index 1ff326e173..90f0b556db 100644
--- a/packages/builder/src/builderStore/store/theme.js
+++ b/packages/builder/src/builderStore/store/theme.js
@@ -4,18 +4,10 @@ export const getThemeStore = () => {
const themeElement = document.documentElement
const initialValue = {
darkMode: true,
- hue: 208,
- saturation: 9,
- lightness: 16,
}
const store = localStorageStore("bb-theme", initialValue)
- // Sets a CSS variable on the root document element
- function setCSSVariable(prop, value) {
- themeElement.style.setProperty(prop, value)
- }
-
// Resets the custom theme to the default dark theme.
// The reset option is only available when dark theme is on, which is why it
// sets dark mode to true here
@@ -28,10 +20,8 @@ export const getThemeStore = () => {
// Update theme when store changes
store.subscribe(theme => {
- themeElement.classList[theme.darkMode ? "add" : "remove"]("dark")
- setCSSVariable("--theme-hue", Math.round(theme.hue))
- setCSSVariable("--theme-saturation", `${Math.round(theme.saturation)}%`)
- setCSSVariable("--theme-brightness", `${Math.round(theme.lightness)}%`)
+ themeElement.classList.toggle("spectrum--darkest", theme.darkMode)
+ themeElement.classList.toggle("spectrum--lightest", !theme.darkMode)
})
return store
diff --git a/packages/builder/src/components/common/NavItem.svelte b/packages/builder/src/components/common/NavItem.svelte
index 0f000d7ca8..27094216ed 100644
--- a/packages/builder/src/components/common/NavItem.svelte
+++ b/packages/builder/src/components/common/NavItem.svelte
@@ -45,27 +45,26 @@
diff --git a/packages/builder/src/components/start/AppCard.svelte b/packages/builder/src/components/start/AppCard.svelte
index fb13c4cee0..1eca39b5bc 100644
--- a/packages/builder/src/components/start/AppCard.svelte
+++ b/packages/builder/src/components/start/AppCard.svelte
@@ -44,7 +44,7 @@
diff --git a/packages/builder/src/pages/builder/_layout.svelte b/packages/builder/src/pages/builder/_layout.svelte
index 22e3a81c7c..8367b0ee53 100644
--- a/packages/builder/src/pages/builder/_layout.svelte
+++ b/packages/builder/src/pages/builder/_layout.svelte
@@ -52,7 +52,6 @@
grid-template-columns: 260px 1fr;
height: 100%;
width: 100%;
- background: var(--grey-1);
}
.main {