Border
The border properties are used to control the component border style and width. See available border styles.
Example
.element {
border: var(--dwc-border-width) var(--dwc-border-style) red;
}
Variables
Variable | Default Value |
---|---|
--dwc-border-width | 1px |
--dwc-border-style | solid |
Border radius
Border radius variables define how rounded the corners of a component are. All values are defined in em
, so they scale with the font size.
EM Unit
em
is a relative unit that scales with the font size of the parent.
Example
.element {
border-radius: var(--dwc-border-radius-m);
}
Variables
Variable | Default Value | Example |
---|---|---|
--dwc-border-radius-2xs | 0.071em | |
--dwc-border-radius-xs | 0.125em | |
--dwc-border-radius-s | 0.25em | |
--dwc-border-radius-m | 0.375em | |
--dwc-border-radius-l | 0.5em | |
--dwc-border-radius-xl | 0.75em | |
--dwc-border-radius-2xl | 1em | |
--dwc-border-radius-round | 50% | |
--dwc-border-radius-pill | 9999px | |
--dwc-border-radius | var(--dwc-border-radius-s) |