Particle is the most basic unit of measurement, using pixels to tie to the design grid which is in pixels as well.
Depending on the context, most of the values will be using conversion to rem with the rem() function.
rem()
ct-particle() function can be used to base element measurements off the particle.
ct-particle()
For spacing, use ct-spacing() function instead.
ct-spacing()
Spacing (such as margin or padding) can be applied using the ct-spacing() function.
Spacing size is defined in $ct-spacing variable and defaults to ct-particle()
$ct-spacing
div { padding: ct-spacing(1) ct-spacing(2); margin-bottom: ct-spacing(2); }
Last updated 1 year ago
Was this helpful?