Zazz Design Framework
baseUtilities

Borders

Border color, edge selection, border style, and composable border-radius utilities.

Border utilities handle border lines, styles, and per-corner border radius.

Borders

Edges

ClassResult
border1px solid on all sides
border-t, border-r, border-b, border-l1px solid on that edge
border-noneRemoves all borders
border-t-none, border-r-none, border-b-none, border-l-noneRemoves that edge

Color

Color classes update --_border-color (default: --border):

ClassRole
border-primary, border-secondary, border-tertiaryBrand roles
border-muted, border-fadedDim / fade
border-info, border-success, border-warning, border-destructiveStatus roles

Style

ClassDeclaration
border-dashedborder-style: dashed
border-dottedborder-style: dotted
border-doubleborder-style: double
<div class="border border-dashed border-muted rounded-md p-md">Dashed, muted border.</div>

Border radius

Uses the radius scale (--radius-xs to --radius-full, scaled by --radius-multiplier):

All corners

ClassValue
rounded-00
rounded-xsvar(--radius-xs)
rounded-smvar(--radius-sm)
rounded-mdvar(--radius-md)
rounded-lgvar(--radius-lg)
rounded-xlvar(--radius-xl)
rounded-fullvar(--radius-full)

Edges and corners

ScopeClasses
Top / bottom edgerounded-t-*, rounded-b-*
Left / right edgerounded-l-*, rounded-r-*
Single cornerrounded-tl-*, rounded-tr-*, rounded-br-*, rounded-bl-*

Composition variables

Radius utilities set four @property-registered variables with inherits: false:

@property --_radius-top-left {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0;
}

:where(.rounded-b-0) {
  --_radius-bottom-left: 0px;
  --_radius-bottom-right: 0px;
}
<!-- keep top corners rounded, flatten bottom edge -->
<div class="rounded-lg rounded-b-0">...</div>
VariableSyntaxInitialManaged by
--_radius-top-left<length-percentage>0rounded-*, rounded-t-*, rounded-l-*, rounded-tl-*
--_radius-top-right<length-percentage>0rounded-*, rounded-t-*, rounded-r-*, rounded-tr-*
--_radius-bottom-right<length-percentage>0rounded-*, rounded-b-*, rounded-r-*, rounded-br-*
--_radius-bottom-left<length-percentage>0rounded-*, rounded-b-*, rounded-l-*, rounded-bl-*

On this page