Skip to content

Mini Calendar

A copy-paste calendars & date pickers component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Calendars & Date PickersHTMLCSSany framework
June 2025
SMTWTFS

Copy into your project

HTML
<div class="nuda-mini-cal">
  <div class="nuda-mini-cal__head">
    <button aria-label="Previous month">‹</button>
    <span>June 2025</span>
    <button aria-label="Next month">›</button>
  </div>
  <div class="nuda-mini-cal__grid">
    <span class="nuda-mini-cal__dow">S</span>
    <span class="nuda-mini-cal__dow">M</span>
    <!-- ...rest of dow + day buttons -->
  </div>
</div>
CSS
.nuda-mini-cal {
  padding: 14px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  width: 100%;
  max-width: 260px;
  animation: _calIn .55s cubic-bezier(.16,1,.3,1) both;
}

.nuda-mini-cal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #fafafa;
  font-size: 12px;
  font-weight: 600;
}

.nuda-mini-cal__head button {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #fafafa;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: background .2s,transform .2s;
}

.nuda-mini-cal__head button:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}

.nuda-mini-cal__grid {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 2px;
}

.nuda-mini-cal__dow {
  text-align: center;
  color: #63636e;
  font-size: 10px;
  padding: 2px 0;
}

.nuda-mini-cal__day {
  position: relative;
  background: transparent;
  border: 0;
  color: #a0a0a8;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
  transition: background .2s,color .2s,transform .15s;
}

.nuda-mini-cal__day:hover {
  background: rgba(255,255,255,.06);
  color: #fafafa;
  transform: scale(1.05);
}

.nuda-mini-cal__day.is-active {
  background: #e4ff54;
  color: #09090b;
  font-weight: 600;
  animation: _dayPop .35s cubic-bezier(.16,1,.3,1);
}

.nuda-mini-cal__day.has-event::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background: #e4ff54;
  border-radius: 50%;
}

.nuda-mini-cal__day.is-active.has-event::after {
  background: #09090b;
}

@keyframes _calIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes _dayPop {
  0% {
    transform: scale(.8);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-mini-cal,.nuda-mini-cal__day.is-active {
    animation: none;
  }
}

How to use Mini Calendar

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 calendars & date pickers components

← Browse all NudaUI components