UI
UI elements are standalone components made up of one or more classes and elements.
DOM element
The DOM element is a flexible element that can be turned into anything and can be used in components to allow you to override classes and its HTML tag, or to overcome some limitations of Webflow's elements. Add into your page, then Unlink Instance to start modifying it.
Spacer
The Spacer element is a custom div element with a style attribute so that you add custom spacing without creating a new class. Useful when you have a specific amount of space only once and would prefer not to make a new class. Avoid relying on this too much.
Icons
These are useful wether you are adding icons as images or as SVGs inside embeds. When adding as HTML embed, change the SVG's height and width properties to 100%, and the fill/stroke to currentColorĀ (if you needed)
width: 1remĀ (16px)
height: same
width: 1.5remĀ (24px)
height: same
width: 2remĀ (32px)
height: same
Form
Form elements. For the label you can use text classes or create a new one.
Components
Commonly used components
A typical card
the outline-card class is used as a wrapper, while the inner card is the actual card and can be completely custom.
Inside outline-card, place an empty div with the gradient class for the hover effect. Next to that div you can put a new div for the actual class. Use inner cards radius variable for the radius, make it relative to be above the gradient, and set height to 100%
This only exists here to avoid deleting the "cc-open" class when cleaning unused styles
Used for pro-tips in blog articles