Defines spacing and text sizes as multiples of a base unit for consistent UI design, simplifying layout scaling and customization with a default base of 16dp/16sp.
A helper library for defining spacing and textsizes as a multiple of some base unit (default 16dp/16sp).
implementation "cl.emilym.compose:units:<latest>"
CompositionLocalProvider( LocalBaseDp provides 8.dp ) { // Box is sized to 16dp by 16dp Box(Modifier.size(2.rdp)) }