---
name: visual-border
description: Border width, color, style, and border radius
---
# Border
Utilities for border width, color, style, and radius.
## Usage
### Border width
```html
1px all sides
2px
No border
Per side
Horizontal
Vertical
```
### Border color
```html
Gray border
Blue
With opacity
```
### Border style
```html
Solid (default)
Dashed
Dotted
Double
None
```
### Border radius
```html
Small (default)
2px
6px
8px
12px
16px
Pill/circle
0
Per corner
Logical (start/end)
```
### Divide (between children)
```html
```
### Ring (focus outline)
```html
```
### Outline
Separate from border; used for focus states. In v4: `outline` = 1px; `outline-2`, `outline-4` for width. Use `outline-offset-2` for offset.
```html
```
v4: `outline-none` = `outline-style: none`; `outline-hidden` = invisible but shows in forced-colors mode.
## Key Points
- Width: `border`, `border-{0,2,4,8}`, `border-{t,r,b,l,x,y}`
- Color: `border-{color}`, opacity modifier
- Radius: `rounded-{size}`, `rounded-full`, `rounded-{t,r,b,l,s,e}-*`, logical `rounded-s-*`, `rounded-e-*`
- Divide: `divide-{x,y}`, `divide-{color}` for borders between flex/grid children
- Ring: `ring`, `ring-{n}`, `ring-{color}`, `ring-offset-{n}` (v4 default ring = 1px; use `ring-3` for 3px)
- Outline: `outline`, `outline-{n}`, `outline-{color}`, `outline-offset-{n}`, `outline-hidden`, `outline-none`