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.

use new dark-theme api

Sultan1a704e7c97bf
diff --git a/apps/designer/app/designer/features/breadcrumbs/breadcrumbs.tsx b/apps/designer/app/designer/features/breadcrumbs/breadcrumbs.tsx
index d8ce35c7fb..16e4fb1dd2 100644
--- a/apps/designer/app/designer/features/breadcrumbs/breadcrumbs.tsx
+++ b/apps/designer/app/designer/features/breadcrumbs/breadcrumbs.tsx
@@ -53,7 +53,7 @@ export const Breadcrumbs = ({ publish }: BreadcrumbsProps) => {
height: "$5",
background: "$loContrast",
padding: "$2",
- [`${darkTheme.selector}:root &`]: {
+ "[data-theme=dark] &": {
boxShadow: "inset 0 1px 0 0 $colors$gray7",
},
}}
diff --git a/apps/designer/app/designer/features/topbar/topbar.tsx b/apps/designer/app/designer/features/topbar/topbar.tsx
index 3be0785981..5712a2f21c 100644
--- a/apps/designer/app/designer/features/topbar/topbar.tsx
+++ b/apps/designer/app/designer/features/topbar/topbar.tsx
@@ -24,7 +24,7 @@ export const Topbar = ({ config, css, project, publish }: TopbarProps) => {
css={{
bc: "$loContrast",
height: "$sizes$7",
- [`${darkTheme.selector}:root &`]: {
+ "[data-theme=dark] &": {
boxShadow: "inset 0 -1px 0 0 $colors$gray7",
},
// @todo: uhh, setting this on any focused child element? lets see what's the use case and why its necessary to override vs. not having it in the first place