docs/ai_builder/features/design_systems.md
Design Systems give Reflex Build reusable visual guidelines for every app in a project. Define colors, typography, spacing, component styles, and other brand rules once, then let the agent apply them as it creates and updates your apps.
import reflex as rx
rx.image(
src="https://web.reflex-assets.dev/docs-preview/ai-builder/platform/design_systems.webp",
alt="Saved and example design systems in Reflex Build",
class_name="rounded-md h-auto mb-4",
border=f"0.81px solid {rx.color('slate', 5)}",
)
You can access Design Systems in two places:
Design systems belong to the project, so every app in that project can reuse them.
From Design Systems in the project sidebar, select Create new. Enter a name and provide at least one source for the design:
You can combine written guidelines with a website or uploaded file. Select Generate to create and save the design system. The new design system becomes active automatically.
For example:
Use a warm, editorial style with cream backgrounds, dark green text,
serif headings, compact navigation, and orange accents for primary actions.
Keep cards flat with thin borders and use generous spacing between sections.
Reflex accepts one reference file up to 20 MB in any of these formats:
The Examples section includes ready-made design systems such as Minimal, Modern, Material, Carbon, Neobrutalism, and Glassmorphism. Select Add Style on an example to add it to the project and make it active.
Examples are useful as a starting point. After adding one, edit its saved Markdown instructions to match your brand more closely.
Enable Auto-enable next to a saved design system to make it active for subsequent Reflex Build requests in the project. You can also select or create a design system from the new-app prompt box before generating an app.
Only one design system can be active at a time. Activating, creating, or adding another design system automatically deactivates the current one. Turn off the active design system if you want to build without design-system guidance.
The active design system also guides later updates to the project's apps. You can still provide page-specific requirements in your prompt:
Use the active design system, but make this checkout page more compact
and reserve the accent color for the final purchase action.
From Design Systems in the project sidebar, open the menu next to a saved design system.
Editing the Markdown is useful when you need exact tokens or component rules:
## Buttons
- Primary buttons use `#0F62FE` with white text.
- Use a 4 px corner radius.
- Button labels use 14 px semibold text.
- Destructive actions use `#DA1E28`.
Marketing Site or Internal Admin Tools.