Borders

Types of border

We use 3 types of border to outline elements and create dividing lines between content. We call them Graphic borders, Differentiated borders and Functional borders.

Graphic borders

Graphic border example

Use white graphic borders to create faint keylines between page elements. The graphic border suggests division in a subtle way and provides structure to a layout but doesn't take focus from the page content.

Differentiated borders

Differentiated border example

Use differentiated borders to create more clearly defined, ornamental borders to outline sections of content or pieces of functionality. Differentiated borders are more easily visible than a graphic border and draw attention to the way in which content is grouped.

Functional borders

Functional border example

Use a functional border to create a AA accessible border on any surface background colour. Functional borders are used within components to outline important interactive objects like field inputs. Don't use functional borders in a decorative way.

Border tokens

Width

Width is the line thickness of bounding elements.

Border
1px solid #635e58
ovo-core-border-width-small
Collection
-
Token set
Core
2px solid #635e58
ovo-core-border-width-medium
Collection
-
Token set
Core
4px solid #635e58
ovo-core-border-width-large
Collection
-
Token set
Core

Radius

Radius (or radii) are the rounded corners in components and other pieces of content.

Border Radius
4px
4px
ovo-core-radius-small
Collection
-
Token set
Core
8px
8px
ovo-core-radius-medium
Collection
-
Token set
Core
12px
12px
ovo-core-radius-large
Collection
-
Token set
Core
22px
22px
ovo-core-radius-max
Collection
-
Token set
-

Colour

Borders use one of the following semantic border colour tokens. When using a border in a semantically colour coded component, like around an error message for example, we use a semantic, toned colour token instead.

border
#ffffff
ovo-semantic-border-graphic
The colour of divider lines between components in the UI.
Collection
Semantic colours
Token set
-
#ebe7e3
ovo-semantic-border-differentiated
A defined border colour used within components. Also used as an inactive icon colour.
Collection
Semantic colours
Token set
-
#635e58
ovo-semantic-border-functional
High contrast border colour used to show the boundary area of interactive elements like form fields.
Collection
Semantic colours
Token set
-