Border Color

The Telerik and Kendo UI Border Utilities enable you to change the border settings of an element.

Border Color

The Telerik and Kendo UI Border Color Utilities are a collection of CSS classes that enable you to control the border color of an element.

Utility ClassCSS Property
.k-border-whiteborder-color: white;
.k-border-inheritborder-color: inherit;
.k-border-currentColorborder-color: currentColor;
.k-border-transparentborder-color: transparent;
.k-border-blackborder-color: black;

Applying a Border Color

Use the k-border-{color} to apply a different border color to an element. Replace {color} with the desired color variable, for example, k-border-solid.

Coloring Individual Sides

Use the k-border-t-{color}, k-border-r-{color}, k-border-b-{color}, and k-border-l-{color} utilities to apply a different border color to one side of an element. Replace the {color} placeholder with the desired color variable, for example, use k-border-t-warning to apply the warning color to the top side.

Coloring the Left and Right Sides

Use the k-border-x-{color} utility to apply a different border color to the left and right sides of an element. Replace {color} with the desired color variable, for example, use k-border-x-warning to apply the warning color.

Coloring the Top and Bottom Sides

Use the k-border-y-{color} utility to apply a different border color to the top and bottom sides of an element. Replace {color} with the desired color variable, for example, use k-border-y-warning to apply the warning color.

Feedback