Ready

Borders

Borders act as visual boundaries of elements, organize the layout, and guide the user's attention.

Ready

Borders

Borders act as visual boundaries of elements, organize the layout, and guide the user's attention.

Ready

Borders

Borders act as visual boundaries of elements, organize the layout, and guide the user's attention.

Styles

Styles

Styles

.

border-cloud-grey

Use as a strong border color

--cloud-grey

.

border-mercury-grey

Use as default border color

--mercury-grey

.

border-fog-grey

Use as a subtle border color

--fog-grey

Variants

Variants

Variants

Sides

  1. border-solid All

  2. border-t-solid Top

  3. border-b-solid Bottom

  4. border-l-solid Left

  5. border-r-solid Right

  6. border-y-solid Top and bottom

  7. border-x-solid Left and right

Radius

  1. b-radius-none 0px

  2. b-radius-noneRight

  3. b-radius-noneLeft

  4. b-radius-sm 4px

  5. b-radius-md 8px

  6. b-radius-lg 12px

  7. b-radius-xl 20px

  8. b-radius-circle 50%

Best Practices

Best Practices

Best Practices

1. Use sparingly

Overusing borders can create visual clutter and detract from the content. Use them sparingly to group related elements, define clear hierarchy, and guide users' attention. ¹

2. Thinkness

Thick borders can overwhelm the interface. Subtle lines provide definition without being overbearing. ²

3. Purposeful placement

Every border should have a clear purpose. Don't add them simply for decoration.

4. Border radius

Rounded corners can soften the look of borders and add a touch of personality. Experiment with different levels of curvature to find the right balance for your design. ³

b-radius-none

border-radius: 0px

b-radius-none

border-radius: 0px

b-radius-none

border-radius: 0px

b-radius-noneRight

border-top-right-radius: 0px; border- bottom-right-radius: 0px;

b-radius-noneRight

border-top-right-radius: 0px; border- bottom-right-radius: 0px;

b-radius-noneRight

border-top-right-radius: 0px; border- bottom-right-radius: 0px;

b-radius-noneLeft

border-top-left-radius: 0px; border-bottom-left-radius: 0px;

b-radius-noneLeft

border-top-left-radius: 0px; border-bottom-left-radius: 0px;

b-radius-noneLeft

border-top-left-radius: 0px; border-bottom-left-radius: 0px;

b-radius-sm

border-radius: 4px

b-radius-sm

border-radius: 4px

b-radius-sm

border-radius: 4px

b-radius-md

border-radius: 8px

b-radius-md

border-radius: 8px

b-radius-md

border-radius: 8px

b-radius-lg

border-radius: 12px

b-radius-lg

border-radius: 12px

b-radius-lg

border-radius: 12px

b-radius-xl

border-radius: 20px

b-radius-xl

border-radius: 20px

b-radius-xl

border-radius: 20px

b-radius-circle

border-radius: 50%

b-radius-circle

border-radius: 50%

b-radius-circle

border-radius: 50%

border-{color}

border-width: 1px

border-{color}

border-width: 1px

border-{color}

border-width: 1px

border-t-{color}

border-top-width: 1px

border-t-{color}

border-top-width: 1px

border-t-{color}

border-top-width: 1px

border-b-{color}

border-bottom-width: 1px

border-b-{color}

border-bottom-width: 1px

border-b-{color}

border-bottom-width: 1px

border-l-{color}

border-left-width: 1px

border-l-{color}

border-left-width: 1px

border-l-{color}

border-left-width: 1px

border-r-{color}

border-right-width: 1px

border-r-{color}

border-right-width: 1px

border-r-{color}

border-right-width: 1px

border-y-{color}

border-top-width: 1px; border-bottom-width: 1px

border-y-{color}

border-top-width: 1px; border-bottom-width: 1px

border-y-{color}

border-top-width: 1px; border-bottom-width: 1px

border-x-{color}

border-left-width: 1px; border-right-width: 1px

border-x-{color}

border-left-width: 1px; border-right-width: 1px

border-x-{color}

border-left-width: 1px; border-right-width: 1px

Need more guidance?

Suggest an addition or an edit.

Need more guidance?

Suggest an addition or an edit.

Need more guidance?

Suggest an addition or an edit.

© 2025 Basis Technologies
© 2025 Basis Technologies
© 2025 Basis Technologies