border-gray: Tailwind CSS Border Color class

The border-gray-* classes apply a gray border of varying intensity.


Interactive Border Color Playground

Try each class live and inspect the CSS output.

Utility class
border-gray
CSS output
border-color: rgb(107 114 128);

border-gray

The border-gray-* classes apply a gray border of varying intensity.

Example Code

HTML
1<div class="grid grid-cols-4 p-2 space-y-2 rounded-t-md">
2 <div class="text-gray-500 border-2 rounded-md border-gray-50 text-center w-24 p-4 font-bold">
3 border-gray-50
4</div>
5 <div class=" text-gray-500 border-2 rounded-md border-gray-100 text-center w-24 p-4 font-bold">
6 border-gray-100
7</div>
8<div class=" text-gray-500 border-2 rounded-md border-gray-200 text-center w-24 p-4 font-bold">
9 border-gray-200
10</div>
11<div class=" text-gray-500 border-2 rounded-md border-gray-300 text-center w-24 p-4 font-bold">
12 border-gray-300
13</div>
14<div class=" text-gray-500 border-2 rounded-md border-gray-400 text-center w-24 p-4 font-bold">
15 border-gray-400
16</div>
17<div class=" text-gray-500 border-2 rounded-md border-gray-500 text-center w-24 p-4 font-bold">
18 border-gray-500
19</div>
20<div class=" text-gray-500 border-2 rounded-md border-gray-600 text-center w-24 p-4 font-bold">
21 border-gray-600
22</div>
23<div class=" text-gray-500 border-2 rounded-md border-gray-700 text-center w-24 p-4 font-bold">
24 border-gray-700
25</div>
26<div class=" text-gray-500 border-2 rounded-md border-gray-800 text-center w-24 p-4 font-bold">
27 border-gray-800
28</div>
29<div class=" text-gray-500 border-2 rounded-md border-gray-900 text-center w-24 p-4 font-bold">
30 border-gray-900
31</div>
32<div class="text-gray-500 border border-gray-950 p-4 rounded-md text-center w-24 font-bold">
33 bg-blue-950
34</div>
35</div>

Preview

border-gray-50

border-gray-100

border-gray-200

border-gray-300

border-gray-400

border-gray-500

border-gray-600

border-gray-700

border-gray-800

border-gray-900

bg-gray-950

How to Use

Add the Border-gray class directly to your HTML element:

HTML
1<div class="Border-gray">
2 <!-- Your content here -->
3</div>

Responsive Usage

Use Tailwind's responsive prefixes to apply Border-gray at specific breakpoints:

HTML
1<div class="sm:Border-gray md:Border-gray lg:Border-gray">
2 Responsive element
3</div>
  • sm:Border-gray — applies from 640px and up
  • md:Border-gray — applies from 768px and up
  • lg:Border-gray — applies from 1024px and up

Customization

You can extend or override this utility in your tailwind.config.js. See the Tailwind CSS documentation for details on customizing your theme.

Windframe is an AI visual editor for rapidly building stunning web UIs & websites

Start building stunning web UIs & websites!

Build from scratch or select prebuilt tailwind templates