Skip to content

24-Hour Military Clock

A copy-paste watch faces & clocks component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Watch Faces & ClocksHTMLCSSany framework

Copy into your project

HTML
<div class="nuda-mil" role="img" aria-label="2030 hours zulu">
  <div class="nuda-mil__head">
    <span class="nuda-mil__led"></span>
    <span>2030 ZULU</span>
  </div>
  <div class="nuda-mil__time">20:30:14</div>
  <div class="nuda-mil__row">
    <span>SEC <em>14</em></span>
    <span>DAY <em>132</em></span>
    <span>UTC+0</span>
  </div>
</div>
CSS
/* 24-Hour Military Clock
   Monochrome amber-green readout with a status LED.
   Customize: --accent for branch/theme. */

.nuda-mil {
  --bg: #0c0c10;
  --accent: #6ee7b7;
  --ink: #fafafa;
  display: inline-block;
  width: 240px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  color: var(--ink);
  font-family: ui-monospace, Menlo, monospace;
}

.nuda-mil__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #a0a0a8;
}

.nuda-mil__led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: nuda-mil-blink 1.4s ease-in-out infinite;
}

.nuda-mil__time {
  margin-top: 6px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(110, 231, 183, 0.25);
}

.nuda-mil__row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 10px;
  letter-spacing: 1px;
  color: #63636e;
}

.nuda-mil__row em {
  font-style: normal;
  color: var(--ink);
  margin-left: 4px;
}

@keyframes nuda-mil-blink {
  50% { opacity: 0.3; }
}

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

How to use 24-Hour Military Clock

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 watch faces & clocks components

← Browse all NudaUI components