Corner cookie card in Tailwind CSS
A floating card in the bottom-left corner, discreet yet always visible.
Here is an excerpt of this component's code in Tailwind CSS. The full code is free for members, ready to copy into your project.
This component also comes in
The code in Tailwind CSS
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Carte de cookies en coin d'écran</title>
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4.3.3"></script>
<style type="text/tailwindcss">
@custom-variant dark {
@media (prefers-color-scheme: dark) {
&:where(:root:not([data-theme="light"]), :root:not([data-theme="light"]) *) {
@slot;Free component: copy it freely, including for commercial projects.
Other cookie banners components in Tailwind CSS
Cookie banners components in Tailwind CSS
A rounded dark bar floating at the bottom of the screen, text on the left and buttons on the right on large screens.
- Tailwind
- React
- CSS
- WordPress

An understated banner with square corners and a thick rule, suited to local authorities, firms and public institutions.
- Tailwind
- React
- CSS
- WordPress

A banner at the top of the page, in the document flow, that never hides content.
- Tailwind
- React
- CSS
- WordPress

A full-width banner pinned to the bottom of the screen, with refuse, customize and accept on the same level.
- Tailwind
- React
- CSS
- WordPress