Add custom classes or theme a custom form
You can add classes in #attributes:

$form['submit'] = array(
     '#type' =&gt; 'submit',
     '#value' =&gt; $this-&gt;t('Go'),
     '#attributes' =&gt; ['class' =&gt; ['button']],
);