We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x
config.baseUnit
This base unit determines the spacing scale and ensures visual consistency across products.
Most spacing systems are built around a base unit of 4 or 8 pixels.
We have to define all spacing beforehand. For example, base unit 4:
export default { variables: { spacing: { '1x': 4, '2x': 8, '3x': 12, ..., '40x': 160 } } }
Apply the custom spacing variables:
<div class="m:1x">margin: 0.25rem</div>
Isn’t it a bit clumsy?
Introducing the new config.baseUnit:
export default { baseUnit: 4, // default }
Use the new Master CSS multiplier unit x:
This is a new feature built for spacing and dimensions in a design system.
The text was updated successfully, but these errors were encountered:
New: Multiplier unit x and config.baseUnit #316
51bf4a2
BenSeage
No branches or pull requests
Description
This base unit determines the spacing scale and ensures visual consistency across products.
Most spacing systems are built around a base unit of 4 or 8 pixels.
Current
We have to define all spacing beforehand. For example, base unit 4:
Apply the custom spacing variables:
Isn’t it a bit clumsy?
Expect
Introducing the new
config.baseUnit
:Use the new Master CSS multiplier unit
x
:This is a new feature built for spacing and dimensions in a design system.
The text was updated successfully, but these errors were encountered: