Mobile app version of vmapp.org
Login or Join
Megan533

: How to assign different border styles in Sketch? I needed to assign different border styles for a shape, let's say rectangle. For example, I want to make a #666 1px top border and #333 2px

@Megan533

Posted in: #Borders #SketchApp

I needed to assign different border styles for a shape, let's say rectangle. For example, I want to make a #666 1px top border and #333 2px bottom border like we do in CSS.

{
border-top: 1px solid #666 ;
border-bottom: 2px solid #333;
}


Anyone knows a practical way to do this?
Any help would be appreciated.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Megan533

1 Comments

Sorted by latest first Latest Oldest Best

 

@LarsenBagley460

You can fake the different border styles with shadows.

For the example you posted, you can add two shadows with the following settings:



Here's what you will get in Sketch:

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme