Tailwind CSS v1.0 is here! Learn more →

Border Style

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

Work in progress!

More detailed documentation is coming soon, but in the meantime here's a quick class reference.

Class reference

Class Properties
.border-solid border-style: solid;
.border-dashed border-style: dashed;
.border-dotted border-style: dotted;
.border-none border-style: none;

Customizing

Responsive and State Variants

By default, only responsive variants are generated for border style utilities.

You can control which variants are generated for the border style utilities by modifying the borderStyle property in the modules section of your Tailwind config file.

For example, this config will also generate hover and focus variants:

{
// ...
modules: {
    // ...
-   borderStyle: ['responsive'],
+   borderStyle: ['responsive', 'hover', 'focus', 'active', 'group-hover'],
}
}

Disabling

If you don't plan to use the border style utilities in your project, you can disable them entirely by setting the borderStyle property to false in the modules section of your config file:

{
// ...
modules: {
    // ...
-   borderStyle: ['responsive'],
+   borderStyle: false,
}
}