Borders in different size and colour

I have an Accordion component and would like it to have a border of 1px solid lightblue on all sides, and a thicker border-left of 4px solid darkblue.

How can I achieve this in Figma?
How can I set different thicknesses and different colours on the borders of an object?

1 Like

The feature allows me to specify the border thickness for a specific edge, which is great.

In my case I need to specify 2 border properties:

  1. The thick 4px on the left
  2. The thin 1px all around
    And I need them to be in different colours.

This is the intended result (currently achieved with grouping, but I would like to keep the component only one object instead of adding a layer only for a border)

Got it. You’d have to create two frames. One frame with the full border and white fill, and one frame with the side stroke and no fill. Move the full bordered frame into the other frame so that it layers properly.

Cool.

I guess there is no way to achieve this by styling ONE element.

Seems like applying different styles to the border of the same element is impossible in Figma.

1 Like

It would be great to be able to style border separately like you can in CSS. e.g.
border-top-color: black;
border-right-color: gray;
border-bottom-color: pink;
border-left-color: gray;
border-top-width: 2px;
border-right-width: 2px;
border-bottom-width: 4px;
border-left-width: 2px;

Figma. On the ball as usual.