Skip to content

Divide Color

Use divide-{color}-{shade} to set the color of dividers added by divide-x / divide-y.

Use utilities like divide-indigo-500 and divide-lime-100 to control the border color between child elements:

Style('grid grid-cols-3 divide-x-4 divide-indigo-500', children: [
Text('01'),
Text('02'),
Text('03'),
])

When divide-{color} is unset, dividers default to gray-200 (#E5E7EB).

divide-{color}-{shade} accepts the full Tailwind color palette, with shades 50, 100, 200, …, 950, plus the named values inherit, current, transparent, black, white. Common examples:

ClassColor
divide-gray-200Default divider gray
divide-indigo-500Brand indigo
divide-blue-500Blue
divide-red-500Red
divide-green-500Green
divide-{color}/<N>Color with <N>% opacity (e.g. divide-indigo-500/50)

Pair with divide-width to control the line thickness.