Skip to content

Consent Receipt Summary

A copy-paste cookie & consent component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Cookie & ConsentHTMLCSSany framework

Consent saved

Sep 7, 2026 · ID a83f-21c9

  • NecessaryAlways on
  • AnalyticsAllowed
  • MarketingDenied

Copy into your project

HTML
<div class="nuda-ck2-receipt" role="region" aria-label="Consent receipt">
  <div class="nuda-ck2-receipt__head">
    <span class="nuda-ck2-receipt__check" aria-hidden="true">
      <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2"
           stroke-linecap="round" stroke-linejoin="round" width="13" height="13">
        <path d="M20 6 9 17l-5-5" />
      </svg>
    </span>
    <div>
      <p class="nuda-ck2-receipt__title">Consent saved</p>
      <p class="nuda-ck2-receipt__meta">Sep 7, 2026 &middot; ID a83f-21c9</p>
    </div>
  </div>
  <ul class="nuda-ck2-receipt__list">
    <li class="nuda-ck2-receipt__row">
      <span>Necessary</span>
      <span class="nuda-ck2-receipt__status nuda-ck2-receipt__status--on">Always on</span>
    </li>
    <li class="nuda-ck2-receipt__row">
      <span>Analytics</span>
      <span class="nuda-ck2-receipt__status nuda-ck2-receipt__status--on">Allowed</span>
    </li>
    <li class="nuda-ck2-receipt__row">
      <span>Marketing</span>
      <span class="nuda-ck2-receipt__status nuda-ck2-receipt__status--off">Denied</span>
    </li>
  </ul>
  <button type="button" class="nuda-ck2-receipt__manage">Manage preferences</button>
</div>
CSS
.nuda-ck2-receipt {
  width: 284px;
  box-sizing: border-box;
  background: #141414;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
  animation: _nuda-ck2receiptIn .45s cubic-bezier(.16,1,.3,1) both;
}

.nuda-ck2-receipt__head {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .75rem;
}

.nuda-ck2-receipt__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(228,255,84,.12);
  color: #e4ff54;
  flex-shrink: 0;
}

.nuda-ck2-receipt__title {
  color: #fafafa;
  font-size: .8rem;
  font-weight: 700;
  margin: 0;
}

.nuda-ck2-receipt__meta {
  color: #555;
  font-size: .63rem;
  margin: .1rem 0 0;
}

.nuda-ck2-receipt__list {
  list-style: none;
  margin: 0 0 .8rem;
  padding: .3rem 0;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.nuda-ck2-receipt__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .4rem 0;
  color: #cfcfcf;
  font-size: .71rem;
}

.nuda-ck2-receipt__status {
  font-size: .63rem;
  font-weight: 600;
}

.nuda-ck2-receipt__status--on {
  color: #e4ff54;
}

.nuda-ck2-receipt__status--off {
  color: #777;
}

.nuda-ck2-receipt__manage {
  width: 100%;
  min-height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #cfcfcf;
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s,color .15s;
}

.nuda-ck2-receipt__manage:hover {
  color: #fafafa;
  border-color: rgba(255,255,255,.24);
}

.nuda-ck2-receipt__manage:focus-visible {
  outline: 2px solid #e4ff54;
  outline-offset: 2px;
}

@keyframes _nuda-ck2receiptIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-ck2-receipt {
    animation: none !important;
  }
}

How to use Consent Receipt Summary

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More cookie & consent components

← Browse all NudaUI components