Button text padding vs alignment with other buttons

Hello. I am trying to create design kit and define UI elements.
I am not sure how to deal with variable button size. It would be nice to define padding of text in the button but at the same time I need possibility to align button to other buttons which kind of contradicts definition of padding.
How should I deal with this?

Do the padding in percentages, not pixels. You should be designing screens these days in a flexible manner by using percentages and em’s or rems for text.

Hope that helps!

1 Like

You should always keep padding of 15 px between text and button and for more reference download google material kit.

Thanks a lot for help!