How to in Webflow
- Define Design Tokens: Open the Design Tokens panel. Create tokens for core colors (color-primary, color-background), typography (font-size-base, font-weight-regular), and spacing (space-sm, space-lg). Use a consistent naming convention across colors, typography, and spacing.
- Create Theme Tokens: Add tokens for light and dark themes. Define semantic tokens like color-background and color-text for each theme. Group them under theme names (theme-light, theme-dark) and test in both modes.
- Establish Style Selectors: In the Styles area, create global classes (e.g., btn-primary, card-content) and set default tag styles for common elements (h1, p, a). Ensure selectors reference tokens for colors and spacing.
- Build Reusable Components: Create components such as Nav, Hero, Card, Button, and Footer. For each, set default properties and connect to tokens and selectors so updates propagate automatically.
- Define Component Properties: For each component, add properties (props) like variant, size, and alignment. Document how changing a property affects multiple instances.
- Assemble Page Templates: Combine components and tokens into reusable page templates (e.g., Home, Blog, Contact). Ensure templates rely on tokens so site-wide changes propagate.
- Set Up Shared Libraries: Publish components, tokens, and templates to the Shared Library. Add this library to all sites in the Workspace for quick access.
- Document Naming Conventions: Name patterns: Classes (btn-primary, card-content), Variables (color-primary, spacing-lg), Components (Nav-Topbar, Hero-Default). Use this everywhere.
- Implement Theming and Responsiveness: Link tokens to breakpoints and responsive styles. Define how tokens adjust at tablet and mobile sizes; test across screen sizes.
- Publish a Style Guide: Create a dedicated style guide page or design-system site. Explain tokens, selectors, components, patterns, and usage guidelines.
- Governance and Ownership: Assign owners for tokens and components. Establish review cadences and a change-log to track updates.
- Ongoing Maintenance and Audits: Schedule regular audits to ensure consistency. Reconcile drift by updating tokens, selectors, and components across templates.