Mixins / foldkit-mixins/theme

nests

function · packages/mixins/src/theme/tokens.ts:341

function nests(
  radius: string,
  inset: string,
  border?: string,
): {
  readonly '--fk-outer-radius': string
  readonly '--fk-inset': string
  readonly '--fk-control-corner': string
}

What a container that pads its children publishes for nested() and concentric(): its corner inside its border, the inset to them, and the corner a control there takes. Spread it beside the container's own radius and padding. The values are read on each child, so a container deeper in that nests again publishes its own.