Use space values to set padding, margin, width and height to UI elements:
element =
div
[ css
[ marginTop space8
, padding space2
, width space32
]
]
Use fluid and size values to set width, height, maxWidth and maxHeight of layout blocks:
view =
div
[ css
[ displayFlex
, flexWrap wrap
, maxHeight size3XL
, width (fluid 2 3)
]
]rem 0.25rem 0.5rem 0.75rem 1rem 1.25rem 1.5rem 2rem 2.5rem 3rem 4rem 5rem 6rem 8rem 10rem 12rem 14rem 16Return a portion of 100%
fluid 2 3 is equivalent to pct (100 * (2/3)) (33.33333%)
el
[ css
[ height (fluid 2 3)
, width (fluid 1 2)
]
]
[]rem 20rem 24rem 28rem 32rem 36rem 42rem 48rem 56rem 64rem 72pct 100