Modal / Popup Generator
Border Radius16px
Max Width480px
Overlay Opacity0.5
Preview

Confirm Action
Are you sure you want to proceed?
Generated Code
.modal-overlay {
position: fixed;
inset: 0;
background: #00000080;
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal {
background: #1e1e2e;
border-radius: 16px;
max-width: 480px;
width: 90%;
padding: 24px;
position: relative;
animation: scaleIn 0.3s ease;
}
.modal-close {
position: absolute;
top: 12px;
right: 12px;
background: none;
border: none;
color: #999;
font-size: 20px;
cursor: pointer;
}
.modal-title {
font-size: 18px;
font-weight: 700;
margin-bottom: 12px;
}
.modal-body {
font-size: 14px;
color: #aaa;
margin-bottom: 20px;
}
.modal-actions {
display: flex;
gap: 8px;
justify-content: flex-end;
}
@keyframes scaleIn {
from { transform: scale(0.9); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}
<div class="modal-overlay">
<div class="modal">
<button class="modal-close">×</button>
<h2 class="modal-title">Confirm Action</h2>
<p class="modal-body">Are you sure you want to proceed?</p>
<div class="modal-actions">
<button>Cancel</button>
<button>Confirm</button>
</div>
</div>
</div>History
No saved modals yet.