Skip to content

Consent Renewal Notice

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

Cookie & ConsentHTMLCSSany framework

Your privacy choices expire soon

Your saved cookie preferences expire in 12 days.

Copy into your project

HTML
<div class="nuda-ck2-renewal" role="region" aria-label="Cookie consent renewal">
  <div class="nuda-ck2-renewal__icon" aria-hidden="true">
    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"
         stroke-linecap="round" stroke-linejoin="round" width="16" height="16">
      <path d="M21 12a9 9 0 1 1-3-6.7" />
      <path d="M21 3v6h-6" />
    </svg>
  </div>
  <div class="nuda-ck2-renewal__body">
    <p class="nuda-ck2-renewal__title">Your privacy choices expire soon</p>
    <p class="nuda-ck2-renewal__desc">Your saved cookie preferences expire in 12 days.</p>
  </div>
  <div class="nuda-ck2-renewal__actions">
    <button type="button" class="nuda-ck2-renewal__btn nuda-ck2-renewal__btn--keep">Keep current settings</button>
    <button type="button" class="nuda-ck2-renewal__btn nuda-ck2-renewal__btn--update">Update settings</button>
  </div>
</div>
CSS
.nuda-ck2-renewal {
  width: 310px;
  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-ck2renewalIn .45s cubic-bezier(.16,1,.3,1) both;
}

.nuda-ck2-renewal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(228,255,84,.1);
  color: #e4ff54;
  margin-bottom: .6rem;
}

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

.nuda-ck2-renewal__desc {
  color: #777;
  font-size: .7rem;
  line-height: 1.5;
  margin: 0 0 .9rem;
}

.nuda-ck2-renewal__actions {
  display: flex;
  gap: .5rem;
}

.nuda-ck2-renewal__btn {
  flex: 1;
  min-height: 44px;
  border-radius: 9px;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s,transform .15s;
}

.nuda-ck2-renewal__btn:hover {
  opacity: .85;
}

.nuda-ck2-renewal__btn:active {
  transform: scale(.97);
}

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

.nuda-ck2-renewal__btn--keep {
  background: rgba(255,255,255,.08);
  color: #cfcfcf;
  border: 1px solid rgba(255,255,255,.14);
}

.nuda-ck2-renewal__btn--update {
  background: #e4ff54;
  color: #0a0a0a;
  border: 1px solid transparent;
}

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

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

How to use Consent Renewal Notice

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