Skip to main content
/
/
/
Border

Border

Default border

.bf-border applies a bifrost default 1px solid border with --bfc-base-c-dimmed color.

bf-border

Single edge border

You can also apply a bifrost default border to a single edge at a time.

bf-border-top
bf-border-left & bf-border-right

Border radius

.bf-radius applies a bifrost default border-radius: 12px

bf-radius

More radius values

ClassApplies
.bf-radius-xsborder-radius: 4px
.bf-radius-sborder-radius: 8px
.bf-radius or .bf-radius-mborder-radius: 12px
.bf-radius-lborder-radius: 16px
.bf-radius-xlborder-radius: 24px
.bf-radius-fullborder-radius: 9999px
xs
s
m
l
xl
full

Combinations

Border and radius

You can use both .bf-radius-* and .bf-border together:

xs
s
m
l
xl
full

Shadow and radius

.bf-shadow applies a default bifrost drop shadow

xs
s
m
l
xl
full

CSS variables

VariableValue
--bf-border1px solid var(--bfc-base-c-dimmed)
--bf-radius-none0px
--bf-radius-xs4px
--bf-radius-s8px
--bf-radius or --bf-radius-m12px
--bf-radius-l16px
--bf-radius-xl24px
--bf-radius-full9999px

Can be used in a CSS file:

CSS
.my-selector {
  border-top: var(--bf-border);
  border-bottom-left-radius: var(--bf-radius);
}

Or inline HTML style:

Useful when you don't want border-radius on all corners.