Skip to content

Tip for dark mode and size #200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
a-smily opened this issue Apr 1, 2025 · 0 comments
Open

Tip for dark mode and size #200

a-smily opened this issue Apr 1, 2025 · 0 comments

Comments

@a-smily
Copy link

a-smily commented Apr 1, 2025

Hello, I'm using the package with Laravel and Tailwind and have been experimenting with toggle dark mode and the size of the recaptcha. Maybe this will help someone...
I added a div container around it with the classes "invert" for dark mode and "scale" for the size.
It worked quite well for me and looks something like this:

<div class=":scale-75 md:scale-100 origin-top-left dark:invert">

{!! Anhskohbo\NoCaptcha\Facades\NoCaptcha::renderJs(LaravelLocalization::getCurrentLocale()) !!}
{!! Anhskohbo\NoCaptcha\Facades\NoCaptcha::display() !!} {{-- ['data-size' => 'compact'] --}}

</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant