Countdown Ring
A copy-paste watch faces & clocks component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Watch Faces & ClocksHTMLCSSany framework
05DAYS LEFT
Copy into your project
HTML
<div class="nuda-cd" role="img" aria-label="Countdown 5 days">
<svg class="nuda-cd__svg" viewBox="0 0 120 120">
<defs>
<linearGradient id="nuda-cd-grad" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#e4ff54" />
<stop offset="100%" stop-color="#9d6dff" />
</linearGradient>
</defs>
<circle cx="60" cy="60" r="50" class="nuda-cd__track" />
<circle cx="60" cy="60" r="50" class="nuda-cd__bar" />
</svg>
<div class="nuda-cd__inner">
<span class="nuda-cd__num">05</span>
<span class="nuda-cd__unit">DAYS LEFT</span>
</div>
</div>CSS
/* Countdown Ring
SVG circle with gradient stroke that draws on mount.
Set stroke-dashoffset via JS each tick for live updates. */
.nuda-cd {
position: relative;
width: 150px;
height: 150px;
display: inline-grid;
place-items: center;
}
.nuda-cd__svg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
transform: rotate(-90deg);
}
.nuda-cd__track {
fill: none;
stroke: rgba(255, 255, 255, 0.06);
stroke-width: 8;
}
.nuda-cd__bar {
fill: none;
stroke: url(#nuda-cd-grad);
stroke-width: 8;
stroke-linecap: round;
stroke-dasharray: 314.15; /* 2 * PI * 50 */
stroke-dashoffset: 314.15;
animation: nuda-cd-draw 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.nuda-cd__inner {
display: flex;
flex-direction: column;
align-items: center;
z-index: 1;
}
.nuda-cd__num {
font: 700 44px system-ui;
color: #fafafa;
line-height: 1;
letter-spacing: -2px;
}
.nuda-cd__unit {
font: 500 10px system-ui;
color: #a0a0a8;
letter-spacing: 2px;
margin-top: 4px;
}
@keyframes nuda-cd-draw {
to { stroke-dashoffset: 78; }
}
@media (prefers-reduced-motion: reduce) {
.nuda-cd__bar { animation: none; stroke-dashoffset: 78; }
}How to use Countdown Ring
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.