Skip to content

Borders

Border utilities add or remove borders on any side, colour them with the theme, set their width from 1 to 5 and fade them with border-opacity-*. Radius utilities round all corners, one side or turn an element into a circle or pill, from rounded-0 up to rounded-5.

1Add borders

border on all sides, or border-top, border-end, border-bottom and border-start for one side.

border
border-top
border-end
border-bottom
border-start

2Remove borders

border-0 removes every border, border-top-0 and friends remove one side.

border-0
border-top-0
border-end-0
border-bottom-0

3Border colours

border-{colour} uses the theme colours, including border-white and border-black.

primary
success
danger
warning
info
dark

4Subtle border colours

border-{colour}-subtle is the soft partner of bg-{colour}-subtle.

border-primary-subtle
border-success-subtle
border-secondary-subtle

5Border width

border-1 to border-5 set the thickness.

1
2
3
4
5

6Border opacity

border-opacity-10 to -100 fade the border colour without touching the content.

100
75
50
25
10

7Rounded sizes

rounded-0 to rounded-5 step the corner radius up.

0
1
2
3
4
5

8Circle and pill

rounded-circle for equal width and height, rounded-pill for long shapes.

Arjun Harlow IW rounded-pill

9Round one side

rounded-top, rounded-end, rounded-bottom and rounded-start round two corners of a side.

rounded-top-4
rounded-end-4
rounded-bottom-4
rounded-start-4

10Input group look

Pieces joined with rounded-start / rounded-end and border-end-0 read as one control.

11Divided list

border-bottom on each row except the last separates list items.

  • Cooking classesSep 7, 2026
  • Private eventsAug 2, 2026
  • Wine pairingFeb 27, 2026

12Selected option card

A thick primary border marks the chosen option; others keep the default border.

Standard
3-5 days
Express
1-2 days
Pickup
Oslo

13Avatar stack

Overlapping avatars get a white border so each edge stays visible.

Kai Carter Kenji Ashford Ivy Mensah +4

14Timeline with border-start

A left border on the list and small dots positioned on it draw a vertical timeline.

  • Order placed
    Apr 19, 2026
  • Packed
    Oct 9, 2025
  • Out for delivery
    Expected Nov 30, 2026

15Image frame

border, p-1 and rounded-3 frame an image like a thumbnail.

Five wines to pair with a summer dinner How we make our sourdough every morning

16Tab underline

border-bottom with border-3 border-primary marks the active item of a text tab bar.

17Vertical rule between items

The vr helper draws a one pixel divider inside a flex row.

4.1
361 reviews
In stock

18Mixed radius shape

rounded-5 with one corner reset by rounded-bottom-0 / rounded-start-0 shapes speech or tag tiles.

rounded-5 rounded-bottom-0
rounded-5 rounded-start-0

19Outlined feature tile

border-primary at low opacity with a matching hover-free tint creates a quiet highlight tile.

Local ingredients

Vegan, vegetarian and gluten-free dishes are marked clearly on every menu.

20Notice with top accent

border-top border-4 border-info on a card-like box.

Maintenance window
Nov 9, 2026, 14:30