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.

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

Color

Light Mode

Dark Mode

  1. charcoal-grey

  2. slate-grey

  3. smoke-grey

  4. graphite-grey

  5. concrete-grey

  6. cloud-grey

  7. fog-grey

  8. powder-blue

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

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. Thin and light borders

Dark, 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. ³

Tokens

Name

Value

Name

Value

Name

Value

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

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-r-{color}

border-right-width: 1px

border-r-{color}

border-right-width: 1px

border-r-{color}

border-right-width: 1px

border-l-{color}

border-left-width: 1px

border-l-{color}

border-left-width: 1px

border-l-{color}

border-left-width: 1px

border-b-{color}

border-bottom-width: 1px

border-b-{color}

border-bottom-width: 1px

border-b-{color}

border-bottom-width: 1px

border-t-{color}

border-top-width: 1px

border-t-{color}

border-top-width: 1px

border-t-{color}

border-top-width: 1px

border-{color}

border-width: 1px

border-{color}

border-width: 1px

border-{color}

border-width: 1px

border-powder-blue

--powder-blue

border-powder-blue

--powder-blue

border-powder-blue

--powder-blue

border-fog-grey

--fog-grey

border-fog-grey

--fog-grey

border-fog-grey

--fog-grey

border-cloud-grey

--cloud-grey

border-cloud-grey

--cloud-grey

border-cloud-grey

--cloud-grey

border-concrete-grey

--concrete-grey

border-concrete-grey

--concrete-grey

border-concrete-grey

--concrete-grey

border-graphite-grey

--graphite-grey

border-graphite-grey

--graphite-grey

border-graphite-grey

--graphite-grey

border-smoke-grey

--smoke-grey

border-smoke-grey

--smoke-grey

border-smoke-grey

--smoke-grey

border-slate-grey

--slate-grey

border-slate-grey

--slate-grey

border-slate-grey

--slate-grey

border-charcoal-grey

--charcoal-grey

border-charcoal-grey

--charcoal-grey

border-charcoal-grey

--charcoal-grey

b-radius-circle

border-radius: 50%

b-radius-circle

border-radius: 50%

b-radius-circle

border-radius: 50%

b-radius-xl

border-radius: 20px

b-radius-xl

border-radius: 20px

b-radius-xl

border-radius: 20px

b-radius-lg

border-radius: 12px

b-radius-lg

border-radius: 12px

b-radius-lg

border-radius: 12px

b-radius-md

border-radius: 8px

b-radius-md

border-radius: 8px

b-radius-md

border-radius: 8px

b-radius-sm

border-radius: 4px

b-radius-sm

border-radius: 4px

b-radius-sm

border-radius: 4px

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-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-none

border-radius: 0px

b-radius-none

border-radius: 0px

b-radius-none

border-radius: 0px

© 2024 Basis Technologies
© 2024 Basis Technologies
© 2024 Basis Technologies