Spacing
spacing
design tokens are applied in padding
and margin
properties. They are used to create a consistent spacing within and between components.
Name | Value |
---|---|
spacing-0 | 0 Foo Bar |
spacing-12 | 2px Foo Bar |
spacing-25 | 4px Foo Bar |
spacing-30 | 5px Foo Bar |
spacing-35 | 6px Foo Bar |
spacing-50 | 8px Foo Bar |
spacing-75 | 12px Foo Bar |
spacing-100 | 16px Foo Bar |
spacing-125 | 20px Foo Bar |
spacing-150 | 24px Foo Bar |
spacing-200 | 32px Foo Bar |
spacing-250 | 40px Foo Bar |
spacing-300 | 48px Foo Bar |
spacing-400 | 64px Foo Bar |
spacing-half | 50% Foo Bar |
spacing-full | 100% Foo Bar |
spacing-horizontal-button | 12px - 1px |
spacing-horizontal-button-icon-only | 6px - 1px |
spacing-horizontal-button-large | 16px - 1px |
spacing-horizontal-input-text-two-end-icons | calc( 8px * 2 + 1em ) |
spacing-start-typeahead-search-figure | 12px Foo Bar |
spacing-start-typeahead-search-icon | calc( 12px + ( 40px - 20px ) / 2 ) |
spacing-typeahead-search-focus-addition | calc( ( 12px + 40px ) - ( 20px + 8px ) ) Foo Bar |
Deprecated token aliases
WARNING
The tokens below are not available in Codex. There are only available as deprecated aliases in WikimediaUI Base.
Name | Value |
---|---|
padding-base deprecated | 4px 12px Foo Bar |
padding-horizontal-base deprecated | 12px Foo Bar |
padding-horizontal-input-text deprecated | 8px Foo Bar |
padding-vertical-base deprecated | 4px Foo Bar |
padding-input-text deprecated | 4px 8px Foo Bar |