Skip to content

Border

TIP

Some border colors vary between light and dark modes. Use the color mode switcher in the site header to check the border colors in the different modes. Using design tokens rather than raw hex codes will ensure you're automatically using the right color for the chosen mode.

Border width

exampleTokenPX
border-width-040.4px
border-width-11px
border-width-22px

Border colors

Color tokens applied to borders on form items and buttons

ColorTokenReference
border-color-baseDefault for interactive elements, dialogs, menus
border-base-color-hoverWhen interactive elements on hover
border-color-subtleDividers and thumbnail borders
border-color-accentDisabled form item borders
border-color-focus
border-color-info``
border-color-success``
border-color-warning``
border-color-error``

Border radius

RadiusTokenPX (rem)
border-radius-44px (0.25rem)
border-radius-84px (5rem)
border-radius-164px (1rem)
border-radius-204px (1.25rem)
border-radius-2424px (1.5rem)
border-radius-3232px (2rem)

Border style

StyleTokenValue
border-style-basevar(--border-width-04) solid var(--border-color-base)
border-style-accentvar(--border-width-1) solid var(--border-color-accent)
border-style-focusvar(--border-width-2) solid var(--border-color-accent)
border-style-activevar(--border-width-1) solid var(--border-color-accent)
border-style-errorvar(--border-width-1) solid var(--border-color-error)
border-style-successvar(--border-width-1) solid var(--border-color-success)