Check out our Theming documentation!
Borders colors
These are colors assigned to any border element.
Some examples of border colors can be:
- The color of the border of the Card
- The color of the dividers inside a Table
- The color of the border of a Text Field
- The color of the border of an Alert
Identifying a border color
Border colors will always have border at the start of their name.
Edges & dividers
We have 2 types of border colors: edges and dividers.
Our border types
Edges
Edges are the borders that surround an element, like:
Dividers
Dividers are borders that can be found inside an element. As the name suggests, its purpose is to divide content. Some examples of dividers can be:
- A border inside a Button
- Borders that divide cells inside a Table
- A border that divides sections; could be in a single form or a large body of text.
Border color palette
Container colors
Edges
As the name suggests, edge colors are meant to be used for the edges of containers.
And since elevated surfaces can be interactive and have states, edge colors also have states.
Surface/edge color pairing
We highly recommend pairing the surface edge color according to the current surface background color, for example, if a card is using background/container/elevated/hover the edge of the surface should use border/container/edges/hover to match.
Read more about surface background colors here.
Our edges can have different states.
Dividers
Divider colors are meant to be used for borders inside containers.
Interactive colors
Contrary to the background and foreground interactive colors, interactive borders do not possess states.
Primary
Secondary
Tertiary
Danger
High-contrast
High-contrast edges are used on high-contrast surfaces. We also offer states for them.
AI Features
We have a designated border gradient for surfaces that display AI features, we strongly recommend pairing this border with an AI background gradient.
Form colors
Text-based inputs
We use the following border colors to display states in text-based inputs.
Text-based input borders have states.
System colors
Feedback
Feedback border colors are meant to be paired with feedback background colors.
Border system colors.
Focus outline
Focus outlines are a huge part of web accessibility, Spark has a specific color designated for focus outlines.