Borders

border-color to Tailwind

Becomes border-* with a palette name; the same prefix carries width and style, so the suffix disambiguates.

The 3 mappings below are read straight out of Tailwind v4.3.3, not maintained by hand, so this is what the converter will actually produce for border-color.

border-color values and their classes

CSSTailwind
border-color: currentcolor;border-current
border-color: inherit;border-inherit
border-color: transparent;border-transparent

Colours

Colour values are not a fixed list — the converter matches yours against the Tailwind palette and picks the nearest name, so any of the palette's shades works the same way. A few worked examples:

CSSTailwind
border-color: #fff;border-white
border-color: #000;border-black
border-color: oklch(96.8% 0.007 247.896);border-slate-100
border-color: oklch(55.4% 0.046 257.417);border-slate-500
border-color: oklch(20.8% 0.042 265.755);border-slate-900
border-color: oklch(63.7% 0.237 25.331);border-red-500
border-color: oklch(69.6% 0.17 162.48);border-emerald-500
border-color: oklch(68.5% 0.169 237.323);border-sky-500

Values that are not on the scale

Anything without a named class is written as an arbitrary value in square brackets. The converter falls back to this rather than rounding your CSS to the nearest class, because silently changing a value is worse than an ugly class name.

border-[your value]

Other borders properties

Converting a whole stylesheet?

Paste it into the converter and get every rule at once, shorthands expanded, media queries turned into breakpoint variants, and the parts that have no Tailwind equivalent flagged rather than dropped.

Open the converter