Date Range Selector
A copy-paste calendars & date pickers component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Calendars & Date PickersHTMLCSSany framework
June 2025
123456789101112131415161718192021222324252627282930
Copy into your project
HTML
<div class="nuda-range">
<div class="nuda-range__head">June 2025</div>
<div class="nuda-range__grid">
<!-- mark .is-start, .is-end, .in-range as needed -->
<span class="nuda-range__day is-start">10</span>
<span class="nuda-range__day in-range">11</span>
<!-- ... -->
<span class="nuda-range__day is-end">19</span>
</div>
</div>CSS
.nuda-range {
padding: 14px;
background: rgba(255,255,255,.02);
border: 1px solid rgba(255,255,255,.06);
border-radius: 14px;
width: 100%;
max-width: 260px;
}
.nuda-range__head {
color: #fafafa;
font-size: 12px;
font-weight: 600;
text-align: center;
margin-bottom: 10px;
}
.nuda-range__grid {
display: grid;
grid-template-columns: repeat(7,1fr);
gap: 0;
}
.nuda-range__day {
position: relative;
display: flex;
align-items: center;
justify-content: center;
height: 30px;
color: #a0a0a8;
font-size: 11px;
cursor: pointer;
transition: color .2s;
}
.nuda-range__day:hover {
color: #fafafa;
}
.nuda-range__day.in-range {
background: rgba(228,255,84,.08);
color: #fafafa;
}
.nuda-range__day.is-start,.nuda-range__day.is-end {
background: #e4ff54;
color: #09090b;
font-weight: 600;
border-radius: 7px;
z-index: 1;
animation: _rangeBounce .4s cubic-bezier(.16,1,.3,1);
}
.nuda-range__day.is-start {
box-shadow: 8px 0 rgba(228,255,84,.08);
}
.nuda-range__day.is-end {
box-shadow: -8px 0 rgba(228,255,84,.08);
}
@keyframes _rangeBounce {
0% {
transform: scale(.7);
}
60% {
transform: scale(1.12);
}
100% {
transform: scale(1);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-range__day {
animation: none;
}
}
How to use Date Range Selector
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.