How to create reusable global styles in Webflow?
Reusable global styles keep your project consistent and maintainable. Instead of styling every element individually, you define styles once and apply them everywhere. Webflow offers several mechanisms for this, each suited to different use cases.
Classes: the primary method
Classes are the foundation of reusable styling in Webflow. When you create a class and style it, any element assigned that class inherits all its properties — across every page in your project.
To create a reusable class:
- Select any element on the canvas
- In the Style panel, type a class name in the field at the top
- Style the element as needed
- Now any element you assign this class to will receive the same styles
Changes to the class propagate globally. Update button-primary's background color once, and every button using that class updates automatically.
Using combo classes for variations
Combo classes extend a base class with overrides. This keeps your core styles reusable while allowing variations:
- Assign a base class to an element (e.g.,
button) - Click the plus icon next to the class name
- Add a second class (e.g.,
large) - Style the overrides — only elements with both
buttonandlargeget these additional properties
This pattern scales well: one base class plus targeted combo classes for different contexts.
Tag selectors for universal base styles
For styles that should apply to all elements of a type, use tag selectors:
- Select an element (e.g., a heading)
- In the Style panel, click the dropdown where the class name appears
- Choose the HTML tag (e.g.,
H1,All H1 Tags) - Any property set here applies to every
h1element on the site
Tag selectors are ideal for base typography, default link colors, or universal paragraph spacing.
Global swatches for colors and typography
Webflow's Global Swatches and Typography panels let you define reusable design tokens:
- Color swatches — create named colors in the Style panel's color picker. Update a swatch, and every element using it updates site-wide.
- Typography presets — save font combinations as presets and apply them from the typography section of the Style panel.
These aren't classes — they're reusable values. Swatches and presets give you centralized control over your color palette and type system without touching individual classes.
Best practices for global styles
- Name classes by purpose, not appearance.
card-featuredis better thancard-blue-border— the design may change but the purpose stays the same.
- Establish a class naming convention. Consistent naming (BEM, utility-based, or a custom system) makes classes easier to find and understand.
- Avoid overloading single classes. If a class has too many properties, break it into a base class with combo classes for variations.
- Use tag selectors sparingly. They're powerful but can create unexpected side effects if you later add elements that inherit them unintentionally.
- Leverage swatches for your entire color palette. Centralized colors make rebranding or theme adjustments a one-step process.
Want to skip the build?
Browse 60+ premium templates and launch your site in days, not weeks.