Preview
HTML
<button type="button" popovertarget="tip">Open tip</button>
<aside id="tip" popover>
<p>Native popover, no script.</p>
</aside>
CSS
:root {
--ink: #241c16;
--paper: #fffaf1;
--accent: #d4552b;
--accent-2: #4338ca;
--on-accent: #fff;
--muted: #6a6156;
--line: #d7ccb8;
--chip: #efe6d6;
}
button {
padding: 0.7rem 1.1rem;
border: 0;
border-radius: 999px;
background: var(--ink);
color: var(--on-accent);
font: inherit;
}
aside {
display: block;
position: static;
inset: auto;
margin: 0.75rem 0 0;
padding: 1rem 1.1rem;
border: 1px solid var(--line);
border-radius: 1rem;
background: var(--paper);
}