VOOZH about

URL: https://www.geeksforgeeks.org/css/tailwind-css-border-color/

⇱ Tailwind CSS Border Color - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Tailwind CSS Border Color

Last Updated : 23 Jul, 2025

This class accepts more than one value in tailwind CSS in which all the properties are covered in class form. It is the alternative to the CSS border-color property. This class is used to specify the border color of an element. 

Border Color classes:

  • border-transparent: The border color will be transparent.
  • border-current:  The border will color depend on the parent element color.
  • border-black: The border color will be black.
  • border-white: The border color will be white.
  • border-gray-50: The border color will be gray.
  • border-red-50: The border color will be red.
  • border-blue-50: The border color will be blue.
  • border-indigo-50: The border color will be indigo.
  • border-purple-50: The border color will be purple.
  • border-green-50: The border color will be green.
  • border-yellow-50: The border color will be yellow.
  • border-pink-50: The border color will be pink.

Note: The color’s values can be changeable according to your need from 50-900, the span should be 100, after the 100.

Syntax:

<element class="border-{color}">...</element>

Example:

Output:

👁 Image
Comment