Skip to main content
Version: v1

Customizing the look

The styling of Friendly Captcha is done in plain CSS, and you can change it however you want. A stylesheet gets injected into the head of your HTML document when the first widget is loaded.

Dark mode​

Friendly Captcha widget finished screenshot Friendly Captcha widget finished screenshot dark mode

Friendly Captcha ships with two built-in themes, by adding the dark class to your frc-captcha element you can enable dark mode:

<!-- light mode -->
<div class="frc-captcha" data-sitekey="<your sitekey>"></div>

<!-- dark mode -->
<div class="frc-captcha dark" data-sitekey="<your sitekey>"></div>

Using your own stylesheet​

You can create your own stylesheet for the Friendly Captcha widget. The existing css file is probably a good start.

If any HTML element with id frc-style is present on the HTML document, the original styles will not be injected. So to use your own custom theme you could add the following:

 <link rel="stylesheet" id="frc-style" href="/my-custom-widget-theme.css">

Alternatively, if you are using the library approach, you can use the skipStyleInjection option to prevent a stylesheet from getting injected.