Border
Border
Go to top
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
| Class | Applies |
|---|---|
.bf-radius-xs | border-radius: 4px |
.bf-radius-s | border-radius: 8px |
.bf-radius or .bf-radius-m | border-radius: 12px |
.bf-radius-l | border-radius: 16px |
.bf-radius-xl | border-radius: 24px |
.bf-radius-full | border-radius: 9999px |
Combinations
Border and radius
You can use both .bf-radius-* and .bf-border together:
Shadow and radius
.bf-shadow applies a default bifrost drop shadow
CSS variables
| Variable | Value |
|---|---|
--bf-border | 1px solid var(--bfc-base-c-dimmed) |
--bf-radius-none | 0px |
--bf-radius-xs | 4px |
--bf-radius-s | 8px |
--bf-radius or --bf-radius-m | 12px |
--bf-radius-l | 16px |
--bf-radius-xl | 24px |
--bf-radius-full | 9999px |
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.