Creating Global CSS¶
Global CSS is a centralized stylesheet where you can define and manage site-wide styles and design tokens. By defining design tokens, such as colors, typography, and spacing in one place, you ensure consistency across all your pages. When you make a change to the design tokens or styles in the Global CSS, those changes are automatically reflected throughout your site. This reduces the need to make repetitive style adjustments on individual components and streamlines the design process.
- In the Experience Builder Code Editor, click the Global CSS tab.
- Define your design tokens and core styles, such as colors and fonts, using CSS.
Creating Components¶
Components are modular units of design and functionality that can be reused across multiple pages. Components can be created through React, Tailwind 4, and CSS. You can provide the settings to content creators to allow them to insert content such as text and images.
- Open the Experience Builder.
- In the left side bar, click the Library tab.
- Click Add new.
- Provide a name, such as Testimonial Block or Product Card.
- Implement the component using React, Tailwind 4, and CSS.
Add the component to the Component Library and test it by adding it to the page.
- To implement and iterate:
- Use your Design System components when building pages.
- Gather feedback and refine your Design System over time.