Border widths. Extra keys allowed.
Semantic colors. Keys become the valid values of the color prop.
OptionalcomponentsPer-component defaults, e.g. { Button: { radius: 'square' } }. Applied when a prop is omitted,
before the global defaults. Each value must be a key of its group.
Values used when a component prop is omitted. Each must be a key of its group.
Density for Table. A key of density.
Color used for invalid fields. A key of colors.
Elevation of popovers, menus and listboxes. A key of shadows.
Gap for Stack and Inline. A key of spacing.
Text style for helper and error text below form controls. A key of typography.styles.
Text style for form labels and legends. A key of typography.styles.
Width of Dialog and Drawer. A key of modalSizes.
Padding for Card. A key of spacing.
A key of radii, or 'size' to use the radius named like the control's size
(a lg button gets radii.lg). Components without a size use defaults.size.
Variant for low-emphasis components such as Badge and Alert. A key of variants.
Text style for Text. A key of typography.styles.
Table densities. Keys become the valid values of the density prop.
Keyboard focus indicator, shared by every focusable component.
Widths of Dialog and Drawer, e.g. { sm: '24rem', md: '32rem', full: '100vw' }.
Keys become the valid values of their size prop. Separate from sizes, which sets control heights.
Transition timing. Extra keys allowed.
Standard transitions, e.g. opening a popover.
Easing function.
Short transitions, e.g. hover.
Neutral colors for backgrounds, text and borders. Extra keys allowed.
Border radii. Keys become the valid values of the radius prop. Name them after your
sizes (sm, md, lg …) so controls can match their size, plus exceptions such as
square and rounded. size is reserved.
Box shadows.
Control size scale. Keys become the valid values of the size prop.
Spacing scale, e.g. for gap and padding.
Font files, font families, named text styles and heading levels.
Font stacks, e.g. { sans: 'Inter, system-ui, sans-serif' }.
OptionalfontFaces?: readonly FontFaceToken[]Font files to load. Reference their family names in families.
Text style for each heading level, used by Heading. Each must be a key of styles.
Named text styles. Keys become the valid text style names.
Style recipes. Keys become the valid values of the variant prop.
Stacking order of floating layers. Extra keys allowed.
The structure every yarcl config must satisfy.
Open groups (
colors,sizes,radii,variants,spacing,shadows,density,modalSizes,typography) take any keys; those keys become the valid prop values. Groups with required keys (neutrals,zIndex,motion,borders) must include the keys the library depends on, and accept any extra keys, which are emitted as CSS variables for the consumer's own styles.