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
fix: Suggest to generate custom styles when requested (#2458)
Giuseppec069ff0d188d
diff --git a/packages/ai/src/chains/operations/edit-styles.ts b/packages/ai/src/chains/operations/edit-styles.tsindex 7ce077a5e9..e3e84842b2 100644--- a/packages/ai/src/chains/operations/edit-styles.ts+++ b/packages/ai/src/chains/operations/edit-styles.ts@@ -14,7 +14,7 @@ export const aiOperation = z.object({className: z.string().describe(- "A list of Tailwind CSS classes to add or override existing styles"+ "A list of Tailwind CSS classes to add or override existing styles. Always use the square brackets notation eg. mb-[10px] instead of mb-10"),});export type aiOperation = z.infer<typeof aiOperation>;diff --git a/packages/ai/src/chains/template-generator/__generated__/template-generator.system.prompt.ts b/packages/ai/src/chains/template-generator/__generated__/template-generator.system.prompt.tsindex e85aa7367f..a1feaa07e7 100644--- a/packages/ai/src/chains/template-generator/__generated__/template-generator.system.prompt.ts+++ b/packages/ai/src/chains/template-generator/__generated__/template-generator.system.prompt.ts@@ -18,7 +18,7 @@ Follow the rules below:- Don't use JSX Fragments- Don't use JSX comments- Don't use CSS grid for layout, use flexbox instead-- Only use valid Tailwind CSS classes+- Only use valid Tailwind CSS classes. Always use the square brackets notation eg. mb-[10px] instead of mb-10- Don't add round corners and shadow to top-level containers- Don't add any props to components- For images leave the \`src\` prop empty and add a good on-topic description as \`alt\` attribute for screen readers. Additionally set a \`width\` and \`height\` props for the image sizediff --git a/packages/ai/src/chains/template-generator/template-generator.system.prompt.md b/packages/ai/src/chains/template-generator/template-generator.system.prompt.mdindex 7e26aebab9..15285cde89 100644--- a/packages/ai/src/chains/template-generator/template-generator.system.prompt.md+++ b/packages/ai/src/chains/template-generator/template-generator.system.prompt.md@@ -18,7 +18,7 @@ Follow the rules below:- Don't use JSX Fragments- Don't use JSX comments- Don't use CSS grid for layout, use flexbox instead-- Only use valid Tailwind CSS classes+- Only use valid Tailwind CSS classes. Always use the square brackets notation eg. mb-[10px] instead of mb-10- Don't add round corners and shadow to top-level containers- Don't add any props to components- For images leave the `src` prop empty and add a good on-topic description as `alt` attribute for screen readers. Additionally set a `width` and `height` props for the image size