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:
- the
language
parameter (if set) - the
lang
attribute of your<html>
element (if set) - the user’s preference
(
navigator.language
) - the user’s preferences (tries all of
navigator.languages
) - 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.
Example
Overwriting the success
color while keeping all others the default.
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.