You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data-size fallback: omitting data-size defaults to md everywhere. Only heading (h1–h6, or via a wrapping hgroup) defaults by element: h1→2xl, h2→xl, h3→lg, h4/h5/h6→md.
padding-block, wherever a component consumes a box-height, is derived as calc((var(--{size}-box-height) - var(--{size}-line-height)) / 2) — this centers the line box inside the scale's box-height regardless of component. How box-height itself is applied differs by component's native sizing behavior:
checkbox, radio: label is box-height, input is line-height.
textarea: height: auto; resize: vertical(grows with content). box-height is only ever read to derive padding-block
disclosure(summary): height: auto(grows with content). Same rule as textarea.
heading: padding-block: 0
padding-inline, component has of its own (an icon, a stepper button, a dropdown arrow) is a component-local decision, so hardcoded in rem, not unified across components.
width is left unset (auto / content-driven) everywhere. Nothing hardcodes a fixed width or 100%; give an element a width via the surrounding markup (a wrapping style/class) when one is needed.