{
CF
}
Code
Fronts
Back to CSS Dark Mode UI
Ember Pulse
Pure CSS
Edit any tab — preview updates live
CSS
HTML
Reset
Copy
.dm-ember-bg { padding: 28px; border-radius: 16px; background: #0a0a10; } .dm-ember { background: #14141c; border: 1px solid rgba(245, 158, 11, 0.15); border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; } .dm-ember__icon { position: relative; width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; } .dm-ember__core { width: 12px; height: 12px; background: #f59e0b; border-radius: 50%; box-shadow: 0 0 12px #f59e0b, 0 0 24px rgba(245, 158, 11, 0.5); z-index: 2; } .dm-ember__pulse { position: absolute; inset: 0; background: radial-gradient(circle, rgba(245, 158, 11, 0.5), transparent 70%); border-radius: 50%; animation: dm-ember-breath 2.5s ease-in-out infinite; } @keyframes dm-ember-breath { 0%, 100% { transform: scale(0.8); opacity: 0.4; } 50% { transform: scale(1.1); opacity: 0.8; } } .dm-ember__body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; } .dm-ember__body b { font: 600 12px system-ui, sans-serif; color: #f5f5f5; } .dm-ember__body span { font: 11px ui-monospace, monospace; color: #6b7080; } .dm-ember__btn { background: transparent; color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); padding: 6px 12px; border-radius: 6px; font: 600 11px system-ui, sans-serif; cursor: pointer; flex-shrink: 0; transition: background 0.18s, border-color 0.18s; } .dm-ember__btn:hover { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.55); } @media (prefers-reduced-motion: reduce) { .dm-ember__pulse { animation: none; } }
<div class="dm-ember-bg"> <div class="dm-ember"> <div class="dm-ember__icon"> <span class="dm-ember__pulse"></span> <span class="dm-ember__core"></span> </div> <div class="dm-ember__body"> <b>Build attention needed</b> <span>3 warnings · 0 errors · last run 2m ago</span> </div> <button class="dm-ember__btn">Review →</button> </div> </div>
Live preview
Ready