Skip to main content

Border Color

Utilities for controlling the color of an element's borders.

CSS Property:border-color
Classes:15

Border Color Classes

ClassCSS
border-inheritborder-color: inherit;
border-currentborder-color: currentColor;
border-transparentborder-color: transparent;
border-blackborder-color: #000;
border-whiteborder-color: #fff;
border-slate-200border-color: #e2e8f0;
border-slate-300border-color: #cbd5e1;
border-gray-200border-color: #e5e7eb;
border-gray-300border-color: #d1d5db;
border-red-500border-color: #ef4444;
border-orange-500border-color: #f97316;
border-green-500border-color: #22c55e;
border-blue-500border-color: #3b82f6;
border-indigo-500border-color: #6366f1;
border-purple-500border-color: #a855f7;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

[border-color:value]

Responsive Variants

Apply border color utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:border-inherit
768px+md:md:border-inherit
1024px+lg:lg:border-inherit
1280px+xl:xl:border-inherit
1536px+2xl:2xl:border-inherit