Preview
HTML
<dialog open>
<h2>Saved locally</h2>
<p>This native dialog is visible without JavaScript.</p>
<form method="dialog">
<button type="submit">Close</button>
</form>
</dialog>
CSS
:root {
--ink: #241c16;
--paper: #fffaf1;
--accent: #d4552b;
--accent-2: #4338ca;
--on-accent: #fff;
--muted: #6a6156;
--line: #d7ccb8;
--chip: #efe6d6;
}
dialog {
position: static;
max-width: 24rem;
padding: 1.4rem 1.5rem;
border: 0;
border-radius: 1.2rem;
box-shadow: 0 1.5rem 4rem rgb(from var(--ink) r g b / 18%);
background: var(--paper);
color: var(--ink);
}
dialog h2 {
margin: 0 0 0.4rem;
font-size: 1.35rem;
}
dialog p {
margin: 0 0 1rem;
}
dialog button {
padding: 0.55rem 0.9rem;
border: 0;
border-radius: 999px;
background: var(--ink);
color: var(--on-accent);
font: inherit;
}