Mixins / foldkit-mixins/theme
role
function · packages/mixins/src/theme/tokens.ts:391
function role(
name: FluidRole,
options: {
readonly fluid: true
},
): {
readonly fontSize: string
readonly lineHeight: string
}
function role(name: Role): {
readonly fontSize: string
readonly lineHeight: string
}Text in role: its size and leading on the size ladder, read on the
element like ladder, so a compact region's text steps down with its
controls. A display, title or subtitle may also grow with
{ fluid: true }, its leading growing with its size.