From 363998a2af06e01b2ce39df9bbeb2dcf1fe356b3 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 6 Sep 2021 16:23:12 +0100 Subject: [PATCH] Fix button theming and add nav text theming --- .../design/AppPreview/ThemeEditor.svelte | 13 +++++-- .../src/components/CustomThemeWrapper.svelte | 2 +- .../client/src/components/app/Layout.svelte | 36 +++++++++++++++---- packages/client/src/stores/theme.js | 1 + 4 files changed, 43 insertions(+), 9 deletions(-) diff --git a/packages/builder/src/components/design/AppPreview/ThemeEditor.svelte b/packages/builder/src/components/design/AppPreview/ThemeEditor.svelte index 6f7cf567de..36bbde2905 100644 --- a/packages/builder/src/components/design/AppPreview/ThemeEditor.svelte +++ b/packages/builder/src/components/design/AppPreview/ThemeEditor.svelte @@ -19,6 +19,7 @@ primaryColorHover: "var(--spectrum-global-color-blue-500)", buttonBorderRadius: "16px", navBackground: "var(--spectrum-global-color-gray-100)", + navTextColor: "var(--spectrum-global-color-gray-800)", } const buttonBorderRadiusOptions = [ @@ -93,7 +94,7 @@ />
- +
+
+ + +
@@ -114,7 +123,7 @@ flex-direction: row; justify-content: space-between; align-items: center; - padding-bottom: var(--spectrum-global-dimension-static-size-100); + padding-bottom: var(--spectrum-global-dimension-static-size-200); border-bottom: var(--border-light); } .setting:last-child { diff --git a/packages/client/src/components/CustomThemeWrapper.svelte b/packages/client/src/components/CustomThemeWrapper.svelte index 75574264cd..39a4842f22 100644 --- a/packages/client/src/components/CustomThemeWrapper.svelte +++ b/packages/client/src/components/CustomThemeWrapper.svelte @@ -16,7 +16,7 @@ /* Buttons */ --spectrum-semantic-cta-color-background-default: var(--primaryColor); --spectrum-semantic-cta-color-background-hover: var(--primaryColorHover); - --spectrum-alias-item-rounded-border-radius-m: var(--buttonBorderRadius); + --spectrum-button-primary-m-border-radius: var(--buttonBorderRadius); /* Loading spinners */ --spectrum-progresscircle-medium-track-fill-color: var(--primaryColor); diff --git a/packages/client/src/components/app/Layout.svelte b/packages/client/src/components/app/Layout.svelte index afa1fd5221..7f120556bd 100644 --- a/packages/client/src/components/app/Layout.svelte +++ b/packages/client/src/components/app/Layout.svelte @@ -1,6 +1,7 @@