PrismTokenPresets extension
Builds a token set from a density, a shape and a motion preference.
Composing three orthogonal choices is more honest than deriving spacing from a colour: a brand colour says nothing about how much padding a table row wants. Use this to get a coherent look in one line, then override individual values if you need to.
PrismTokens.preset(
density: PrismDensity.compact,
shape: PrismShape.sharp,
motion: PrismMotion.brisk,
)
- on
Static Methods
-
preset(
{PrismDensity density = PrismDensity.comfortable, PrismShape shape = PrismShape.rounded, PrismMotion motion = PrismMotion.standard}) → PrismTokens -
Available on PrismTokens, provided by the PrismTokenPresets extension
Returns a token set for the givendensity,shapeandmotion.
Constants
- editorial → const PrismTokens
- Spacious density, relaxed motion. For reading-oriented apps.
- friendly → const PrismTokens
- Comfortable density, fully rounded controls. For consumer apps.
- technical → const PrismTokens
- Compact density, sharp corners, brisk motion. For developer tools.