Borders
Tailwind CSS Borders
Use responsive borders utilities with TW elements. A tutorial how to style the border and border-radius of an element.
Basic examples
Use border utilities to add or remove an element’s borders. Choose from all borders or one at a time.
Additive
Additive classes are used to add borders.
Subtractive
Subtractive classes are used to remove borders.
Color
Change the border color using utilities built on our theme colors.
Border width
      Use the .border-0, .border,
      .border-2, .border-4, or
      .border-8 classes to set the border width.
    
Border radius
Add classes to an element to easily round its corners.
Sizes
        Use classes like .rounded, .rounded-lg, or
        rounded-2xl to apply different border radius sizes to an
        element.