Overview
Control border color with semantic utilities. Border colors work together with border width, style, and radius utilities to create complete border styling.Border Color Utilities
| Class | Color | Hex | CSS | Usage |
|---|---|---|---|---|
.border-white | White | #ffffff | border-color: #ffffff; | White borders |
.border-black | Black | #000000 | border-color: #000000; | Black borders |
.border-gray | Gray | #6b7280 | border-color: #6b7280; | Standard borders |
.border-gray-light | Light Gray | #e5e7eb | border-color: #e5e7eb; | Subtle borders |
.border-blue | Blue | #3b82f6 | border-color: #3b82f6; | Primary borders |
Examples
Common Patterns
Form Field States
Accent Borders
Button with Border
Border Combinations
Complete Border Styling
Subtle Border
Best Practices
- Use semantic colors: Match border colors to their purpose
- Maintain consistency: Use the same border colors for similar elements
- Consider contrast: Ensure borders are visible against their backgrounds
- Combine with width: Use thicker borders with darker colors for emphasis

