Border tokens
Width
Ex. | Token name | Value | Use case | |
---|---|---|---|---|
|
1px |
1px border width; Example: Secondary CTA or Button |
|
|
|
2px |
2px border width: Example: Alert |
|
|
|
3px |
3px border width: Example: Expanded Accordion panel |
|
Radius
Ex. | Token name | Value | Use case | |
---|---|---|---|---|
|
0.0px
|
Border radius reset |
|
|
|
3px
|
3px border radius; Example: Card |
|
|
|
64px
|
Pill border radius; Example: Label |
|
Color
Theme Tokens
Strong
Responsive border-strong
color value. Typically read only - use a themable container e.g. <rh-surface>
Resolves to --rh-color-border-strong-on-light
on a themable container with a light color palette and --rh-color-border-strong-on-dark
on a themable container with a dark color palette
Ex. | Token name | Value | Use case | |
---|---|---|---|---|
|
#151515
|
Strong border color (light theme) |
|
|
|
#ffffff
|
Strong border color (dark theme) |
|
Subtle
Responsive border-subtle
color value. Typically read-only - use a themable container, e.g. <rh-surface>
. Resolves to --rh-color-border-subtle-on-light
on a themable container with a light color palette and --rh-color-border-subtle-on-dark
on a themable container with a dark color palette.
Ex. | Token name | Value | Use case | |
---|---|---|---|---|
|
#c7c7c7
|
Subtle border color (light theme) |
|
|
|
#707070
|
Subtle border color (dark theme) |
|
Interactive
Responsive border-interactive
color value. Typically read-only - use a themable container, e.g. <rh-surface>
. Resolves to --rh-color-border-interactive-on-light
on a themable container with a light color palette and --rh-color-border-interactive-on-dark
on a themable container with a dark color palette.
Ex. | Token name | Value | Use case | |
---|---|---|---|---|
|
#0066cc
|
Interactive border color (light theme) |
|
|
|
#92c5f9
|
Interactive border color (dark theme) |
|
Destructive
Responsive border-destructive
color value. Typically read-only - use a themable container, e.g. <rh-surface>
. Resolves to --rh-color-border-destructive-on-light
on a themable container with a light color palette and --rh-color-border-destructive-on-dark
on a themable container with a dark color palette.
Ex. | Token name | Value | Use case | |
---|---|---|---|---|
|
#b1380b
|
Destructive border color (light theme) |
|
|
|
#f0561d
|
Destructive border color (dark theme) |
|
Status
Danger
Responsive border-danger
color value. Typically read-only - use a themable container, e.g. <rh-surface>
. Resolves to --rh-color-border-danger-on-light
on a themable container with a light color palette and --rh-color-border-danger-on-dark
on a themable container with a dark color palette.
Ex. | Token name | Value | Use case | |
---|---|---|---|---|
|
#b1380b
|
Danger border color (light theme) |
|
|
|
#f0561d
|
Danger border color (dark theme) |
|
Caution
Responsive border-caution
color value. Typically read-only - use a themable container, e.g. <rh-surface>
. Resolves to --rh-color-border-caution-on-light
on a themable container with a light color palette and --rh-color-border-caution-on-dark
on a themable container with a dark color palette.
Ex. | Token name | Value | Use case | |
---|---|---|---|---|
|
#ca6c0f
|
Caution border color (light theme) |
|
|
|
#f5921b
|
Caution border color (dark theme) |
|
Warning
Responsive border-warning
color value. Typically read-only - use a themable container, e.g. <rh-surface>
. Resolves to --rh-color-border-warning-on-light
on a themable container with a light color palette and --rh-color-border-warning-on-dark
on a themable container with a dark color palette.
Ex. | Token name | Value | Use case | |
---|---|---|---|---|
|
#dca614
|
Warning border color (light theme) |
|
|
|
#ffcc17
|
Warning border color (dark theme) |
|
Neutral
Responsive border-neutral
color value. Typically read-only - use a themable container, e.g. <rh-surface>
. Resolves to --rh-color-border-neutral-on-light
on a themable container with a light color palette and --rh-color-border-neutral-on-dark
on a themable container with a dark color palette.
Ex. | Token name | Value | Use case | |
---|---|---|---|---|
|
#4d4d4d
|
Neutral border color (light theme) |
|
|
|
#c7c7c7
|
Neutral border color (dark theme) |
|
Info
Responsive border-info
color value. Typically read-only - use a themable container, e.g. <rh-surface>
. Resolves to --rh-color-border-info-on-light
on a themable container with a light color palette and --rh-color-border-info-on-dark
on a themable container with a dark color palette.
Ex. | Token name | Value | Use case | |
---|---|---|---|---|
|
#5e40be
|
Info border color (light theme) |
|
|
|
#b6a6e9
|
Info border color (dark theme) |
|
Success
Responsive border-success
color value. Typically read-only - use a themable container, e.g. <rh-surface>
. Resolves to --rh-color-border-success-on-light
on a themable container with a light color palette and --rh-color-border-success-on-dark
on a themable container with a dark color palette.
Ex. | Token name | Value | Use case | |
---|---|---|---|---|
|
#3d7317
|
Success border color (light theme) |
|
|
|
#87bb62
|
Success border color (dark theme) |
|
Other libraries
To learn more about our other libraries, visit the getting started page.