Web Form 2.0 Public Documentation

Color Palette

General

The Profile lets you define a set of color slots that are applied consistently to specific elements throughout the form. Set your brand colors once, and they’re automatically used wherever needed — no need to style individual components.

Color Slots

Primary

Your main brand color, used for buttons, active states, progress indicators, and other interactive highlights.

Set the primary color once, and finAPI automatically generates light and dark variants to ensure a consistent appearance across the form. If you need more control, you can override each variant individually.

grafik-20260615-100601.png

 

Text

Two text color levels are available:

  • Primary — used for headings and main body text.

  • Secondary — used for hints, labels, and supporting information.

Note: Primary and secondary text can use the same color. This creates a more uniform appearance by removing the visual distinction between text levels and can be a good choice for minimalist designs.

grafik-20260615-101402.png
Text primary in red
grafik-20260615-101309.png
Text secondary in red

Background

Two background color levels are available:

  • Default — used for the overall page background.

  • Paper — used for cards, dialogs, and other elevated surfaces.

Note: The Paper color can be set to match the Default background. When combined with disabled shadows, this creates a flat, seamless appearance without visible card boundaries and is particularly useful for embedded forms that should blend naturally into the surrounding page.

grafik-20260615-101714.png
Default background in red

 

grafik-20260615-101754.png
Paper background in red

 

Divider

This is the color of separator lines between sections.

grafik-20260615-102044.png
Divider in red

Technical Setup

Configure the light color palette under theme.palette.light in the profile. All fields are optional. If a field is not specified, the finAPI default value is used.

Note: The dark color palette follows the same structure under theme.palette.dark. See Dark Mode for details.

Fields

All paths below are relative to theme.palette.light.

Field

Description

primary.main

The main color of your brand. Applied to primary buttons, input field borders and highlighted elements.

primary.light

The lighter shade of the main color, applied to secondary elements such as secondary buttons — derived from main if not set

primary.dark

The darker shade of the main color, applied for example to hovered primary elements — derived from main if not set

text.primary

The color of the main texts, for example the headers

text.secondary

The color of the secondary texts, for example the login hints or the summaries

text.disabled

The color of the texts of disabled elements

background.default

The background color of the web form page

background.paper

The background color of elevated elements such as cards and dialogs

divider

The color of the lines separating the web form sections

The light and dark variants of the primary color are automatically generated by lightening and darkening the main color. Override these values only if the automatically generated colors do not meet your brand requirements.

Color Format

All color values must use the hexadecimal RGB format: #RRGGBB.

Example

JSON
{
  "theme": {
    "palette": {
      "light": {
        "primary": {
          "main": "#1A73E8",
          "light": "#5A9FF0",
          "dark": "#0D47A1"
        },
        "text": {
          "primary": "#212121",
          "secondary": "#757575",
          "disabled": "#9E9E9E"
        },
        "background": {
          "default": "#FFFFFF",
          "paper": "#F5F5F5"
        },
        "divider": "#E0E0E0"
      }
    }
  }
}