Product teams should be thinking differently about documents.Read blog post.
Anvil Logo
Products
Industries
Resources
Developers
Product News

Customize the look and feel of Anvil webforms and e-signatures with custom CSS styling

Author headshot
By Ben Ogle

Match your company's brand by styling webforms and e-signature pages. This post covers using your own CSS stylesheets to style Anvil webforms and e-signature pages.

Back to all articles
Customize the look and feel of Anvil webforms and e-signatures with custom CSS styling

Customizability is at the core of Anvil. Anvil Webforms and e-signatures embed into any application so your users stay in flow. When embedding these UIs in your product, you probably want your users to see your brand and your logo, not Anvil's. You want the user to feel like they haven't left your application. Our goal is to provide your customers with a seamless experience, instead of being bounced around in some other company's UI and rigid controls.

Anvil allows you to match your application's look and feel in Webforms and e-signature pages by specifying a custom CSS stylesheet.

For example, a default Anvil Webform will have the following look and feel:

An Anvil Webform with default styling An Anvil Webform with default styling

Say your company, Peak Healthcare, had specific guidelines for form styling. With just a bit of CSS in your custom stylesheet, you can make the webforms look exactly like your brand:

An Anvil Webform with custom styling An Anvil Webform with custom styling

The e-signature UI can be styled in the same way. By default, the step capturing a user's signature will use Anvil's styling:

Anvil e-sign with default styling Anvil e-signatures with default styling

Peak Healthcare's brand can be extended into this UI as well:

Anvil e-sign with custom styling Anvil e-signatures with custom styling

Custom stylesheets have full power to style anything on these pages. You can inject fonts, change sizes of elements, and change colors and borders to match your brand.

Here's a link to the public gist for the stylesheet used to customize the Webforms and e-signatures above.

Providing your stylesheet

Anvil will load a stylesheet from a URL your team controls. You can set styles for all of your Webforms and e-signatures by providing a stylesheet URL in your organization settings.

Edit custom stylesheet URL on your organization settings Edit the custom stylesheet URL on your organization settings

You may also want custom styles on a per-Workflow or per signature packet basis. The organization stylesheet URL can be overridden in each Workflow and each Etch Packet.

Overriding the stylesheet for a Workflow is done in the Workflow settings:

Override stylesheet URL on your organization settings Edit a Workflow's custom stylesheet URL separately from your organization

Overriding the stylesheet in an Etch Packet can be handled via the API when creating a signature packet.

createEtchPacket({
  variables: {
    signaturePageOptions: {
      style: {
        // Override the organization level stylesheet
        stylesheetURL: 'https://example.com/anvil-styles.css'
      },
    }
  }
})

Conclusion

We're striving to give you the tools to make Anvil fit your use case and blend into your app. We know controlling the experience for your users is incredibly important to product developers. Using custom CSS stylesheets described in this post is a major part of this customizability, but not the end all! You can embed styled Webforms, and styled e-signature pages into your application for a seamless experience. Custom stylesheets can be combined with custom strings on the signature pages, your custom logo, and you can handle iframe events to provide your users with custom finish screens.

Custom stylesheets is currently an enterprise feature. Please contact our sales team if you would like to enable custom stylesheets for your organization.

Sign up for a live demo

Request a 30-minute live demo today and we'll get in touch shortly. During the meeting our Sales team will help you find the right solution, including:
  • Simplifying data gathering
  • Streamlining document preparation
  • Requesting e-signatures
  • Building and scaling your business
Want to try Anvil first?Sign up for free
Want to try Anvil first?Sign up for free