Skip to content

Corner Card

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

Cookie & ConsentHTMLCSSany framework
Cookies

This site uses cookies to personalise content and analyse traffic.

Copy into your project

HTML
<div class="nuda-ck-corner">
  <div class="nuda-ck-corner__header">
    <svg class="nuda-ck-corner__logo" viewBox="0 0 24 24" fill="currentColor" width="18" height="18">
      <circle cx="9" cy="7" r="2" />
      <circle cx="15" cy="11" r="1.5" />
      <circle cx="8" cy="15" r="1.5" />
      <circle cx="17" cy="16" r="1" />
      <circle cx="12" cy="4" r="1" />
      <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" />
    </svg>
    <span class="nuda-ck-corner__title">Cookies</span>
  </div>
  <p class="nuda-ck-corner__body">
    This site uses cookies to personalise content and analyse traffic.
  </p>
  <div class="nuda-ck-corner__btns">
    <button class="nuda-ck-corner__btn nuda-ck-corner__btn--accept">Accept all</button>
    <button class="nuda-ck-corner__btn nuda-ck-corner__btn--manage">Manage</button>
  </div>
</div>
CSS
.nuda-ck-corner {
  background: #141414;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  width: 220px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  animation: _nuda-ckcornerIn .45s cubic-bezier(.16,1,.3,1) both;
}

.nuda-ck-corner__header {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .6rem;
}

.nuda-ck-corner__logo {
  color: #e4ff54;
  flex-shrink: 0;
}

.nuda-ck-corner__title {
  color: #fafafa;
  font-size: .85rem;
  font-weight: 700;
}

.nuda-ck-corner__body {
  color: #777;
  font-size: .72rem;
  line-height: 1.5;
  margin: 0 0 .85rem;
}

.nuda-ck-corner__btns {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.nuda-ck-corner__btn {
  border: none;
  border-radius: 8px;
  padding: .45rem 0;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: opacity .15s;
}

.nuda-ck-corner__btn:hover {
  opacity: .85;
}

.nuda-ck-corner__btn--accept {
  background: #e4ff54;
  color: #0a0a0a;
}

.nuda-ck-corner__btn--manage {
  background: rgba(255,255,255,.06);
  color: #cfcfcf;
  border: 1px solid rgba(255,255,255,.1);
}

@keyframes _nuda-ckcornerIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-ck-corner {
    animation: none;
  }
}

How to use Corner Card

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