Verdocs - Developer Documentation

Styling

Styling Web components is easy, which is one of their main advantages. Simply inspect any element to identify the classes identifying it, and include CSS in your application to override the default styles provided.

Learn By Doing

In most cases, you do not need to read any documentation or memorize lists of class names or patterns. Every Verdocs component has Verdocs-prefixed classnames to prevent conflicts with other components in host applications.

For example, suppose you want to change the color of the header/toolbar shown when viewing an Envelope from our default of dark-blue (#33354C) to one of your brand colors:

Envelope Toolbar before modification

If you inspect the header you can see the classname or ID that controls this color. In this case an ID was applied because some applications may choose to move the toolbar entirely (such as to make it float):

Envelope Toolbar inspected

Changing the background to a new color such as (#1b7591) is as simple as including the following CSS anywhere in your application:

#verdocs-view-header {
  background-color: #1b7591 !important;
}

Be sure to set a higher specificity to ensure your overrides take effect, either via the !important operator or with additional ID/class specifiers, such as #my-view #verdocs-view-header ....

When you are done, you should see the following:

Envelope Toolbar after modification

CSS Variables

Class and ID rules can reach anything, but the handful of things most apps want to change (the brand color, fonts, corner radius, and field styling) are also exposed as CSS variables, so one rule restyles every component at once. These are the same variables a brand's published styles set, which is how the hosted signing page picks up your brand. Set them on :root so every component sees them:

:root {
  --verdocs-primary-color: #654dcb;
  --verdocs-primary-font: Georgia, serif;
  --verdocs-button-radius: 999px;
  --verdocs-field-background: #8dc63f1a;
}
VariableWhat it controls
--verdocs-primary-colorPrimary buttons, dialog OK buttons, and other accents.
--verdocs-primary-color-hoverHover state for the same.
--verdocs-primary-fontThe font stack used across the components.
--verdocs-body-colorBody text color.
--verdocs-link-colorLink color.
--verdocs-button-radiusCorner radius on buttons.
--verdocs-button-secondary-color, --verdocs-button-secondary-border, --verdocs-button-secondary-hover-bgSecondary buttons.
--verdocs-button-disabled-color, --verdocs-button-disabled-bgDisabled buttons.
--verdocs-field-background, --verdocs-field-border, --verdocs-field-radius, --verdocs-field-text-colorSigning fields.
--verdocs-required-field-borderBorder color on required fields. Takes a bare color, not a full border.
--verdocs-checkbox-colorCheckbox and radio fill.
--verdocs-dialog-radius, --verdocs-dialog-title-color, --verdocs-dialog-title-weight, --verdocs-dialog-content-colorDialogs such as the disclosure and completion prompts.

Anything not in this list is still one inspect-and-override away with the approach above.

On this page