All styles
Dark UI

Blink Cursor CSS Button

Free34 lines · no JS · WCAG AAA 12.3
Open in Studio
Theme

A real <button> carrying .btn-blink-cursor — the preview is the stylesheet, not a picture of it.

States
default
hover
focus-visible
active
not declared
disabled
not declared
.btn-blink-cursor {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid #30363d;
  border-radius: 8px;
  background: #0d1117;
  color: #7ee787;
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.btn-blink-cursor::before {
  content: "$ ";
  color: #8b949e;
}
.btn-blink-cursor::after {
  content: "▍";
  margin-left: 3px;
  animation: btn-blink-cursor-blink 1.1s steps(2, start) infinite;
}
.btn-blink-cursor:hover {
  border-color: #7ee787;
}
@keyframes btn-blink-cursor-blink {
  50% {
    opacity: 0;
  }
}
.btn-blink-cursor:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
Self-contained · MIT · no build step.btn-blink-cursor
Dark UIRoundedText FXAnimated

Implementation notes

About the Blink Cursor CSS button

Blink Cursor uses controlled contrast and elevation tuned for dark product surfaces. Its rounded corners balance product-friendly softness with a clear boundary. Motion comes from a 1.1s keyframe animation. The text fx, animated details are included in the copy-paste CSS.

Usage

<button class="btn-blink-cursor">run build</button>

Pair it with the CSS tab above — the class is self-contained.

Before shipping: keep the semantic button element, verify contrast on your actual background and add a visible:focus-visible state. If you retain motion, include a prefers-reduced-motion override.
Built with
HTML + plain CSS
Shape
Rounded
Exports
CSS, Tailwind, React
License
MIT · commercial use
Complete the look

Build the interface around this button

We matched its palette, surface, geometry and motion to a complete UI system — like composing an outfit, not browsing unrelated parts.

Style DNA · v1
How matching works →
Pro preview
Modal92% match

Midnight System Decision Modal

Midnight System kit

Dark UI characterblue palette
Unlock with Pro →
Free sample
Input92% match

Midnight System Smart Input

Midnight System kit

Dark UI characterblue palette
Pro preview
Toggle92% match

Midnight System Preference Toggle

Midnight System kit

Dark UI characterblue palette
Unlock with Pro →
Pro preview
Card92% match

Midnight System Feature Card

Midnight System kit

Dark UI characterblue palette
Unlock with Pro →
Pro preview
Dropdown92% match

Midnight System Action Menu

Midnight System kit

Dark UI characterblue palette
Unlock with Pro →
Pro preview
Form92% match

Midnight System Signup Form

Midnight System kit

Dark UI characterblue palette
Unlock with Pro →
Get the complete Midnight System kit
Six coordinated component types, commercial license and future kit updates.
Explore Pro · $39

More styles that match

Carbon Weave

Dark Elevated

Dark Ghost Line

Smoke Glass

Spinner State

Dark Success Soft

Two optional extras load only if you allow them. Every button, preview and line of code works exactly the same either way. What each one does