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 #D3DAE6 |
border.thick | border.thick | Value 2px solid #D3DAE6 |
border.editable | border.editable | Value 2px dotted #D3DAE6 |
Color
EUI only has one base color it uses for all borders (or calculated borders).
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 |