CSS Spacing Variables

The spacing variables, defined within the :root CSS selector, ensure consistent spacing throughout your CSS stylesheets.

VariableDescriptionDefault Value
--S0Base size, often used for spacing and rhythm0px
--S1Smallest size, used for subtle spacingclamp(3px, 3px + 0vi, 3px)
--S2Extra small size, used for minimal spacingclamp(5px, 4.6522px + 0.1087vi, 6px)
--S3Small size, used for general spacingclamp(8px, 7.6522px + 0.1087vi, 9px)
--S4Medium size, used for moderate spacingclamp(10px, 9.3043px + 0.2174vi, 12px)
--S5Large size, used for significant spacingclamp(15px, 13.9565px + 0.3261vi, 18px)
--S6Extra large size, used for major spacingclamp(20px, 18.6087px + 0.4348vi, 24px)
--S7Very large size, used for large sectionsclamp(30px, 27.913px + 0.6522vi, 36px)
--S8Extra very large size, used for major sectionsclamp(40px, 37.2174px + 0.8696vi, 48px)
--S9Largest size, used for hero sectionsclamp(50px, 46.5217px + 1.087vi, 60px)