Skip to content

Compact Log

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

TimelinesHTMLCSSany framework
09:01Server started
09:03DB connected
09:07Cache miss ratio 12%
09:12Request timeout /api/data
09:15Retry succeeded

Copy into your project

HTML
<div class="nuda-tl-log">
  <div class="nuda-tl-log__row nuda-tl-log__row--info">
    <span class="nuda-tl-log__time">09:01</span>
    <span class="nuda-tl-log__bar"></span>
    <span class="nuda-tl-log__msg">Server started</span>
  </div>
  <div class="nuda-tl-log__row nuda-tl-log__row--info">
    <span class="nuda-tl-log__time">09:03</span>
    <span class="nuda-tl-log__bar"></span>
    <span class="nuda-tl-log__msg">DB connected</span>
  </div>
  <div class="nuda-tl-log__row nuda-tl-log__row--warn">
    <span class="nuda-tl-log__time">09:07</span>
    <span class="nuda-tl-log__bar"></span>
    <span class="nuda-tl-log__msg">Cache miss ratio 12%</span>
  </div>
  <div class="nuda-tl-log__row nuda-tl-log__row--error">
    <span class="nuda-tl-log__time">09:12</span>
    <span class="nuda-tl-log__bar"></span>
    <span class="nuda-tl-log__msg">Request timeout /api/data</span>
  </div>
  <div class="nuda-tl-log__row nuda-tl-log__row--info">
    <span class="nuda-tl-log__time">09:15</span>
    <span class="nuda-tl-log__bar"></span>
    <span class="nuda-tl-log__msg">Retry succeeded</span>
  </div>
</div>
CSS
.nuda-tl-log {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 236px;
  background: #0e0e0e;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  padding: 8px;
  font-family: monospace;
}

.nuda-tl-log__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  transition: background .1s;
}

.nuda-tl-log__row--warn {
  background: rgba(250,189,47,.05);
}

.nuda-tl-log__row--error {
  background: rgba(255,107,107,.07);
}

.nuda-tl-log__time {
  font-size: 9px;
  color: #555;
  flex-shrink: 0;
  min-width: 30px;
}

.nuda-tl-log__bar {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  background: rgba(255,255,255,.1);
}

.nuda-tl-log__row--info .nuda-tl-log__bar {
  background: #6366f1;
}

.nuda-tl-log__row--warn .nuda-tl-log__bar {
  background: #fabd2f;
}

.nuda-tl-log__row--error .nuda-tl-log__bar {
  background: #ff6b6b;
}

.nuda-tl-log__msg {
  font-size: 10px;
  color: #cfcfcf;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nuda-tl-log__row--warn .nuda-tl-log__msg {
  color: #fabd2f;
}

.nuda-tl-log__row--error .nuda-tl-log__msg {
  color: #ff6b6b;
}

How to use Compact Log

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 timelines components

← Browse all NudaUI components