Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Fix panel color (#1324)

Roman Pominovd8af510c0c10
diff --git a/apps/builder/app/builder/builder.tsx b/apps/builder/app/builder/builder.tsx
index d3825fb8d8..e1fd61cbc1 100644
--- a/apps/builder/app/builder/builder.tsx
+++ b/apps/builder/app/builder/builder.tsx
@@ -116,7 +116,7 @@ const SidePanel = ({
fg: 0,
// Left sidebar tabs won't be able to pop out to the right if we set overflowX to auto.
//overflowY: "auto",
- bc: theme.colors.loContrast,
+ bc: theme.colors.backgroundPanel,
height: "100%",
...css,
"&:last-of-type": {
diff --git a/apps/builder/app/builder/features/sidebar-left/panels/pages/pages.tsx b/apps/builder/app/builder/features/sidebar-left/panels/pages/pages.tsx
index e43ee7436b..f4486a67bc 100644
--- a/apps/builder/app/builder/features/sidebar-left/panels/pages/pages.tsx
+++ b/apps/builder/app/builder/features/sidebar-left/panels/pages/pages.tsx
@@ -186,7 +186,7 @@ const PagesPanel = ({
// z-index needed for page settings animation
zIndex: 1,
flexGrow: 1,
- background: theme.colors.loContrast,
+ background: theme.colors.backgroundPanel,
}}
direction="column"
>
diff --git a/apps/builder/app/builder/features/sidebar-left/panels/pages/settings-panel.tsx b/apps/builder/app/builder/features/sidebar-left/panels/pages/settings-panel.tsx
index d8ceca63fb..93120a5ade 100644
--- a/apps/builder/app/builder/features/sidebar-left/panels/pages/settings-panel.tsx
+++ b/apps/builder/app/builder/features/sidebar-left/panels/pages/settings-panel.tsx
@@ -65,7 +65,7 @@ export const SettingsPanel = ({
css={{
flexGrow: 1,
width: theme.spacing[35],
- background: theme.colors.loContrast,
+ background: theme.colors.backgroundPanel,
borderRight: `1px solid ${theme.colors.slate7}`,
position: "relative",
}}
diff --git a/apps/builder/app/builder/features/workspace/canvas-tools/text-toolbar/text-toolbar.tsx b/apps/builder/app/builder/features/workspace/canvas-tools/text-toolbar/text-toolbar.tsx
index 95845235df..ca9847c170 100644
--- a/apps/builder/app/builder/features/workspace/canvas-tools/text-toolbar/text-toolbar.tsx
+++ b/apps/builder/app/builder/features/workspace/canvas-tools/text-toolbar/text-toolbar.tsx
@@ -94,7 +94,7 @@ const Toolbar = ({ state, onToggle }: ToolbarProps) => {
top: 0,
left: 0,
pointerEvents: "auto",
- background: theme.colors.loContrast,
+ background: theme.colors.backgroundPanel,
padding: theme.spacing[3],
borderRadius: theme.borderRadius[6],
border: `1px solid ${theme.colors.slate8}`,
diff --git a/apps/builder/app/shared/share-project/share-project.tsx b/apps/builder/app/shared/share-project/share-project.tsx
index 256fad26bc..c9f82bd893 100644
--- a/apps/builder/app/shared/share-project/share-project.tsx
+++ b/apps/builder/app/shared/share-project/share-project.tsx
@@ -150,7 +150,7 @@ const itemStyle = css({
gap: theme.spacing[3],
py: theme.spacing[5],
px: theme.spacing[9],
- backgroundColor: theme.colors.background,
+ backgroundColor: theme.colors.backgroundPanel,
});
type Relation = "viewers" | "editors" | "builders";
diff --git a/packages/design-system/src/components/sidebar-tabs.tsx b/packages/design-system/src/components/sidebar-tabs.tsx
index 0dec59ccc9..9fa2dc5087 100644
--- a/packages/design-system/src/components/sidebar-tabs.tsx
+++ b/packages/design-system/src/components/sidebar-tabs.tsx
@@ -71,7 +71,7 @@ export const SidebarTabsContent = styled(TabsPrimitive.Content, {
top: 0,
left: "100%",
height: "100%",
- bc: theme.colors.loContrast,
+ bc: theme.colors.backgroundPanel,
outline: "none",
'&[data-state="active"]': {
borderRight: `1px solid ${theme.colors.slate7}`,
diff --git a/packages/design-system/src/components/text-field.tsx b/packages/design-system/src/components/text-field.tsx
index 26de996356..422f20c57c 100644
--- a/packages/design-system/src/components/text-field.tsx
+++ b/packages/design-system/src/components/text-field.tsx
@@ -144,7 +144,7 @@ export const TextFieldContainer = styled("div", {
display: "flex",
flexWrap: "wrap",
alignItems: "center",
- backgroundColor: theme.colors.loContrast,
+ backgroundColor: theme.colors.backgroundControls,
boxShadow: `inset 0 0 0 1px ${theme.colors.slate7}`,
color: theme.colors.hiContrast,
fontVariantNumeric: "tabular-nums",
@@ -180,7 +180,7 @@ export const TextFieldContainer = styled("div", {
},
},
"&:focus": {
- backgroundColor: theme.colors.loContrast,
+ backgroundColor: theme.colors.backgroundControls,
boxShadow: `inset 0px 0px 0px 1px ${theme.colors.blue10}, 0px 0px 0px 1px ${theme.colors.blue10}`,
},
"&:disabled": {
diff --git a/packages/design-system/src/components/toast.tsx b/packages/design-system/src/components/toast.tsx
index 2eba1d6596..564e4abe85 100644
--- a/packages/design-system/src/components/toast.tsx
+++ b/packages/design-system/src/components/toast.tsx
@@ -54,7 +54,7 @@ const StyledToast = styled(ToastPrimitive.Root, {
color: theme.colors.hiContrast,
fontWeight: 500,
fontSize: theme.deprecatedFontSize[3],
- background: theme.colors.loContrast,
+ background: theme.colors.backgroundPanel,
"@media (prefers-reduced-motion: no-preference)": {
'&[data-state="open"]': {
diff --git a/packages/design-system/src/components/toggle-group.tsx b/packages/design-system/src/components/toggle-group.tsx
index 2056c26e55..de0bcfd606 100644
--- a/packages/design-system/src/components/toggle-group.tsx
+++ b/packages/design-system/src/components/toggle-group.tsx
@@ -7,12 +7,13 @@ export const ToggleGroup = styled(ToggleGroupPrimitive.Root, {
borderRadius: theme.spacing[3],
boxShadow: `0 0 0 ${theme.spacing[1]} ${theme.colors.slate7}`,
padding: 2,
+ backgroundColor: theme.colors.backgroundControls,
});
export const ToggleGroupItem = styled(ToggleGroupPrimitive.Item, {
// all: "unset", // @note weird bug, this somehow gets into weird specifity issues with how styles are inserted
border: "none",
- backgroundColor: theme.colors.loContrast,
+ backgroundColor: theme.colors.backgroundControls,
color: theme.colors.hiContrast,
display: "flex",
whiteSpace: "nowrap",