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:
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):
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:
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;
}| Variable | What it controls |
|---|---|
--verdocs-primary-color | Primary buttons, dialog OK buttons, and other accents. |
--verdocs-primary-color-hover | Hover state for the same. |
--verdocs-primary-font | The font stack used across the components. |
--verdocs-body-color | Body text color. |
--verdocs-link-color | Link color. |
--verdocs-button-radius | Corner radius on buttons. |
--verdocs-button-secondary-color, --verdocs-button-secondary-border, --verdocs-button-secondary-hover-bg | Secondary buttons. |
--verdocs-button-disabled-color, --verdocs-button-disabled-bg | Disabled buttons. |
--verdocs-field-background, --verdocs-field-border, --verdocs-field-radius, --verdocs-field-text-color | Signing fields. |
--verdocs-required-field-border | Border color on required fields. Takes a bare color, not a full border. |
--verdocs-checkbox-color | Checkbox and radio fill. |
--verdocs-dialog-radius, --verdocs-dialog-title-color, --verdocs-dialog-title-weight, --verdocs-dialog-content-color | Dialogs such as the disclosure and completion prompts. |
Anything not in this list is still one inspect-and-override away with the approach above.
Web SDK
The Verdocs Web SDK provides both native Web Components and IFRAMEs that seamlessly integrate into any modern framework that supports Web Components, including Vue, Angular, React, Svelte, etc.
Components
Browse and explore all available UI components in one place. This page embeds our Storybook, giving you a hands-on look at component behavior, states, and usage to help you build and customize your interface more easily.