Mixins / foldkit-mixins/theme

nests

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

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

What a container that pads its children publishes for nested(): its corner inside its border, and the inset to them. 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.