Dashed mono tag

CSS tag labels with a dashed border and uppercase monospace text. Variants with a status dot, a spec box and a dark fill.

Each tag is an inline-flex span with a 1px dashed border, a 0.625rem monospace font, wide letter-spacing and text-transform: uppercase. The status dot is a 5px round ::before element, so it needs no extra markup. The other variants are modifier classes (--dot, --box, --dark) that change only padding, border color or background. Hover darkens the border and text with a 0.2s transition, and there is no script.

Open preview
snippet.html16 lines
<div class="dtg">
  <span class="dtg__tag">Who it's for</span>
  <span class="dtg__tag dtg__tag--dot">How it works</span>
  <span class="dtg__tag dtg__tag--box">LL-2026 / v1.0</span>
  <span class="dtg__tag dtg__tag--dark">The process</span>
</div>

<style>
  .dtg { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; background: #f2f2f1; border-radius: 8px; }
  .dtg__tag { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.6rem; border: 1px dashed #9a9a96; color: #555; font: 0.625rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.14em; text-transform: uppercase; transition: border-color 0.2s, color 0.2s; }
  .dtg__tag:hover { border-color: #111; color: #111; }
  .dtg__tag--dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #1fb89f; }
  .dtg__tag--box { padding: 0.55rem 0.8rem; border-color: #c4c4c0; letter-spacing: 0.08em; color: #8a8a86; }
  .dtg__tag--dark { background: #0f1a33; border-color: rgba(255,255,255,0.5); color: #cfe0f5; }
  .dtg__tag--dark:hover { border-color: #fff; color: #fff; }
</style>

Kind
Component
Category
Badge
Added
6 Nov 2026
Canvas
Centered
File
snippet.html
Size
16 lines · 1.1 KB
Inspired by
www.replay.ai
  • light
  • mono
  • label

One file: HTML, a style block and, when needed, a small script. Paste it anywhere. Nothing to install.