border-slate: Tailwind CSS Border Color class

The rounded class applies small rounded corners to an element.


Border-slate

The border-slate-* classes apply a slate border of varying intensity on an element.

Example Code

html
<div class="grid grid-cols-4 p-2 space-y-2 rounded-t-md">
<div class="text-gray-500 border-2 rounded-md border-slate-50 text-center w-24 p-4 font-bold">
border-slate-50
</div>
<div class=" text-gray-500 border-2 rounded-md border-slate-100 text-center w-24 p-4 font-bold">
border-slate-100
</div>
<div class=" text-gray-500 border-2 rounded-md border-slate-200 text-center w-24 p-4 font-bold">
border-slate-200
</div>
<div class=" text-gray-500 border-2 rounded-md border-slate-300 text-center w-24 p-4 font-bold">
border-slate-300
</div>
<div class=" text-gray-500 border-2 rounded-md border-slate-400 text-center w-24 p-4 font-bold">
border-slate-400
</div>
<div class=" text-gray-500 border-2 rounded-md border-slate-500 text-center w-24 p-4 font-bold">
border-slate-500
</div>
<div class=" text-gray-500 border-2 rounded-md border-slate-600 text-center w-24 p-4 font-bold">
border-slate-600
</div>
<div class=" text-gray-500 border-2 rounded-md border-slate-700 text-center w-24 p-4 font-bold">
border-slate-700
</div>
<div class=" text-gray-500 border-2 rounded-md border-slate-800 text-center w-24 p-4 font-bold">
border-slate-800
</div>
<div class=" text-gray-500 border-2 rounded-md border-slate-900 text-center w-24 p-4 font-bold">
border-slate-900
</div>
<div class="text-gray-500 border border-slate-950 p-4 rounded-md text-center w-24 font-bold">
bg-slate-950
</div>
</div>

Preview

border-slate-50

border-slate-100

border-slate-200

border-slate-300

border-slate-400

border-slate-500

border-slate-600

border-slate-700

border-slate-800

border-slate-900

bg-slate-950

How to Use

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

html
<div class="Border-slate">
<!-- Your content here -->
</div>

Responsive Usage

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

html
<div class="sm:Border-slate md:Border-slate lg:Border-slate">
Responsive element
</div>
  • sm:Border-slate — applies from 640px and up
  • md:Border-slate — applies from 768px and up
  • lg:Border-slate — 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