Skip to content
RefineUI

Sizing

Foundation layout steps, control heights, and icon dimensions.

Component dimensions alias Foundation size steps through componentSizes in @refineui/tokens. Do not hardcode control heights or icon boxes in React styles.

LayerPurpose
foundationSizesGlobal size steps (source of truth in Foundation)
componentSizesWeb Kit dimension aliases → Foundation keys
iconSizesGlyph sizes in px (xxsmall … xxlarge)
Tokenpx
xxsmall12
xsmall16
small20
medium24
large28
xlarge32
xxlarge48

Control heights (button, input) and overlay widths resolve as CSS variables such as --refineui-size-button-min-height-md and --refineui-size-dialog-max-width. Prefer component props (size="md") over reading those vars in product CSS unless you are composing a custom chrome.

import { iconSizes } from "@refineui/tokens";
import { WebIcon } from "@refineui/react";
<WebIcon name="search" size={iconSizes.small} />