--- title: Border description: Panda's border utilities. --- Panda provides CSS properties for styling borders. ## Compound Properties The border compound property maps to the `borders` token category. | Prop | CSS Property | Token Category | | ----------------------------------- | ------------------- | -------------- | | `border` | `border` | `borders` | | `borderX` , `borderInline` | `borderInline` | `borders` | | `borderY` , `borderBlock` | `borderBlock` | `borders` | | `borderStart` , `borderInlineStart` | `borderInlineStart` | `borders` | | `borderEnd` , `borderInlineEnd` | `borderInlineEnd` | `borders` | ## Border Radius ### All sides ```jsx
// shorthand ``` ### Specific sides Use the `border{Left|Right|Top|Bottom}Radius` properties, or the shorthand equivalent to apply border radius on a specific side of an element. ```jsx // shorthand // shorthand ``` ### Specific corners Use the `border{Top|Bottom}{Left|Right}Radius` properties, or the shorthand equivalent to round a specific corner. ```jsx // shorthand ``` | Prop | CSS Property | Token Category | | ---------------------------------------- | ----------------------------------- | -------------- | | `rounded`,`borderRadius` | `border-radius` | `radii` | | `roundedTopLeft`,`borderTopLeftRadius` | `border-top-left-radius` | `radii` | | `roundedTopRight`,`borderTopRight` | `border-top-right-radius` | `radii` | | `roundedBottomRight`,`borderBottomRight` | `border-bottom-right-radius` | `radii` | | `roundedBottomLeft`,`borderBottomLeft` | `border-bottom-left-radius` | `radii` | | `roundedTop`,`borderTopRadius` | `border-top-{left+right}-radius` | `radii` | | `roundedRight`,`borderRightRadius` | `border-{top+bottom}-right-radius` | `radii` | | `roundedBottom`,`borderBottomRadius` | `border-bottom-{left+right}-radius` | `radii` | | `roundedLeft`,`borderLeftRadius` | `border-{top+bottom}-left-radius` | `radii` | ### Logical Properties Panda also provides the logical properties for border radius, which map to corresponding physical properties based on the document's writing mode. > For example, `borderStartRadius` will map to `border-left-radius` in LTR mode, and `border-right-radius` in RTL mode. ```jsx // shorthand ``` | Prop | CSS Property | Token Category | | -------------------------------------------- | --------------------------------- | -------------- | | `roundedStartStart`,`borderStartStartRadius` | `border-start-start-radius` | `radii` | | `roundedStartEnd`,`borderStartEndRadius` | `border-start-end-radius` | `radii` | | `roundedStart`,`borderStartRadius` | `border-{start+end}-start-radius` | `radii` | | `roundedEndStart`,`borderEndStartRadius` | `border-end-start-radius` | `radii` | | `roundedEndEnd`,`borderEndEndRadius` | `border-end-end-radius` | `radii` | | `roundedEnd` ,`borderEndRadius` | `border-{start+end}-end-radius` | `radii` | ## Border Width ### All sides ```jsx ``` ### Specific sides Use the `border{Left|Right|Top|Bottom}Width` properties, to apply border width on a specific side of an element. ```jsx ``` | Prop | CSS Property | | ------------------------------------ | --------------------------- | | `borderWidth` | `border-width` | | `borderTopWidth` | `border-top-width` | | `borderLeftWidth` | `border-left-width` | | `borderRightWidth` | `border-right-width` | | `borderBottomWidth` | `border-bottom-width` | | `borderXWidth` , `borderInlineWidth` | `border-{left+right}-width` | | `borderYWidth` , `borderBlockWidth` | `border-{top+bottom}-width` | ### Logical Properties Panda also provides the logical properties for border width, which map to corresponding physical properties based on the document's writing mode. > For example, `borderStartWidth` will map to `border-left-width` in LTR mode, and `border-right-width` in RTL mode. ```jsx ``` | Prop | CSS Property | | --------------------------------------------- | -------------------------- | | `borderStartWidth` , `borderInlineStartWidth` | `border-{start+end}-width` | | `borderEndWidth` , `borderInlineEndWidth` | `border-{start+end}-width` | ## Border Color The border color utilities are used to set the border color of an element. It references the `colors` token category. ### All sides ```jsx ``` ### Specific sides Use the `border{Left|Right|Top|Bottom}Color` properties to apply border color on a specific side of an element. ```jsx ``` | Prop | CSS Property | Token Category | | ------------------- | --------------------- | -------------- | | `borderColor` | `border-color` | `colors` | | `borderTopColor` | `border-top-color` | `colors` | | `borderLeftColor` | `border-left-color` | `colors` | | `borderRightColor` | `border-right-color` | `colors` | | `borderBottomColor` | `border-bottom-color` | `colors` | ### Logical Properties Panda also provides the logical properties for border color, which map to corresponding physical properties based on the document's writing mode. > For example, `borderInlineStartColor` will map to `border-left-color` in LTR mode, and `border-right-color` in RTL > mode. ```jsx ``` | Prop | CSS Property | Token Category | | --------------------------------------------- | -------------------------- | -------------- | | `borderStartColor` , `borderInlineStartColor` | `border-{start+end}-color` | `colors` | | `borderEndColor` , `borderInlineEndColor` | `border-{start+end}-color` | `colors` | | `borderXColor`, `borderInlineColor` | `border-inline-color` | `colors` | | `borderYColor`, `borderBlockColor` | `border-block-color` | `colors` | ## Full reference Generated from `@pandacss/preset-base`, so this table always matches the utilities Panda ships.