Skip to content

Customization

Captcha.party has several customization options you can pass to pcaptcha.render.

Language

Captcha.party supports multiple languages for its widgets.

The widget will try languages in the following order until it finds one that is supported:

  1. the language parameter (if set)
  2. the lang attribute of your <html> element (if set)
  3. the user’s preference (navigator.language)
  4. the user’s preferences (tries all of navigator.languages)
  5. English

Supported languages

The following languages are currently supported:

en (English), de (German, Deutsch)

Contributing

Support for additional languages can be added easily, so if you would like to translate Captcha.party into your native language check out our Github repository.

Theme

The Captcha.party widget supports both light and dark themes and defaults to user preference.

If your UI controls light/dark mode itself or only has one of them forced at all times, then you can use the theme parameter.

The following values are valid: auto (default), light and dark.

If you are an Enterprise customer, you can use the custom colors parameter to fully customize all colors.

Custom Colors

Available only on Enterprise plan

The Captcha.party widget supports a colors parameter that can be used to override colors of the widget.

To use custom colors, set the colors parameter to an object where the keys are color names and the values are the corresponding CSS colors.

Available colors

These are the default colors used. As you can see, text and background depend on the theme.

const colors = {
text: light ? "#000000" : "#ffffff",
background: light ? "#ffffff" : "#000000",
accent: "#9ca3af",
success: "#22c55e",
fail: "#ef4444",
attention: "#fbbf24",
};

Example

Overwriting the success color while keeping all others the default.

pcaptcha.render({
sitekey: "...",
colors: {
success: "#C026D3", // our brand color
},
});

Custom domain

Available only on Enterprise plan

With a custom domain you can serve Captcha.party from a domain of your choosing instead of only regional domains.

Please contact your CSM with the domain and region you want to use and also to negotiate additional costs which may incur due to this setup.

You will be given a hostname that you must create a CNAME record to. Please followup to your CSM once you have created the record so we can finalize the process.