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 createCss from sdk on canvas always

Oleg Isonen2c2aa8647c45
diff --git a/app/canvas/wrapper-component/use-css.tsx b/app/canvas/wrapper-component/use-css.tsx
index ff98082c8b..ead89f0f37 100644
--- a/app/canvas/wrapper-component/use-css.tsx
+++ b/app/canvas/wrapper-component/use-css.tsx
@@ -1,8 +1,7 @@
import { useMemo } from "react";
-import { type Instance } from "@webstudio-is/sdk";
+import { type Instance, css as createCss, type CSS } from "@webstudio-is/sdk";
import { useDragData, useSelectedInstance } from "~/canvas/nano-values";
import { primitives } from "~/shared/component";
-import { css as createCss, type CSS } from "~/shared/design-system";
// @todo this doesn't work with the node at the top edge of the iframe, tag gets hidden.
const componentTagStyle = {