How to assign different border styles in Sketch?
How to assign different border styles in Sketch?
Question
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.
2014/12/29
Accepted Answer
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:
2014/12/31