How to change the font of form

  1. Overview
  2. Building and Editing
  3. How to change the font of form

The form element contains a standard font. If you want to change the font you can do that through code injection.

Below you will find an example code for changing the font for the fields and the submit button:

<style>
  @import url('https://fonts.googleapis.com/css2?family=Oswald&display=swap');
  form input[type="submit"] {
    font-family: 'Oswald', sans-serif;
  }
  form input[type="text"] {
    font-family: 'Oswald', sans-serif;
  }
</style>

Was this article helpful?