Borders
The border tokens contain both individual border property values and full shorthand border properties.
Types
euiTheme.border[type]
token
These common border types string together the base properties of color, width and style to form common full border
properties.
Sample | Token | Value |
---|---|---|
border.thin | border.thin | Value 1px solid #E3E8F2 |
border.thick | border.thick | Value 2px solid #E3E8F2 |
border.editable | border.editable | Value 2px dotted #E3E8F2 |
Color
EUI has one main base color it uses for almost all borders (or calculated borders).
Only form specific borders use the euiTheme.colors.borderBasePlain
color token instead.
euiTheme.border.color
token
Color for all borders; Default is colors.lightShade
You can apply this color directly to any border-color
property.
Width
euiTheme.border.width[size]
token
These basic properties make up the border thickness which can be used individually or in conjunction withborder.color
.
Sample | Token | Value |
---|---|---|
border.width.thin | border.width.thin | Value 1px |
border.width.thick | border.width.thick | Value 2px |
Radius
euiTheme.border.radius[size]
token
These basic properties make up the corner radii which can be used individually.
Sample | Token | Value |
---|---|---|
border.radius.small | border.radius.small | Value 4px |
border.radius.medium | border.radius.medium | Value 6px |