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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
Add preview.js to match the theme
Andrey Okonetchnikov6e8cfab7e5ea
diff --git a/.storybook/preview.js b/.storybook/preview.jsindex 48afd568ae..23bef6ff2e 100644--- a/.storybook/preview.js+++ b/.storybook/preview.js@@ -1,3 +1,26 @@+import React from "react";+import { globalCss, darkTheme } from "../app/shared/design-system";++const globalStyles = globalCss({+ body: {+ margin: "0",+ background: darkTheme.colors.background.value,+ color: darkTheme.colors.text.value,+ fontFamily: "$sans",+ },+});++export const decorators = [+ (Story) => {+ globalStyles();+ return (+ <div className={darkTheme}>+ <Story />+ </div>+ );+ },+];+export const parameters = {actions: { argTypesRegex: "^on[A-Z].*" },controls: {@@ -6,4 +29,4 @@ export const parameters = {date: /Date$/,},},-}\ No newline at end of file+};