Figma / How to add stroke to only one side of an object

preview_player
Показать описание
**This video is outdated: you can now add a stroke to one side by simply selecting "strokes per side" in the Stroke panel.**

No need to add lines to your designs, simply use a drop shadow without a blur to add a stroke to one side of an object.

Рекомендации по теме
Комментарии
Автор

In 39 secs you solved something I was working on for 42 mins. Thank you!!

zevachseon
Автор

Sad that it has to be done this way in such a robust tool. But the dropshadow hack is not uncommon even in live code. This is the same technique to get a thicker focus border without shifting the alignment of everything below it.

ubermac
Автор

This is cool! I was looking to do this in the stroke panel, so how does it render out for the code, a drop shadow? Are there any notes needed to be left for the dev's?

micseaton