Micro icon square
Micro icon square: a CSS button. Copy the rules, or the prompt that rebuilds it.
CSS
.btn-197 {
width: 22px;
height: 22px;
display: inline-grid;
place-items: center;
color: #6b7280;
background: transparent;
border: 0;
border-radius: 5px;
cursor: pointer;
transition: background .12s,color .12s
}
.btn-197:hover {
background: #f3f4f6;
color: #111827
}
.btn-197:focus-visible {
outline: 2px solid #111827;
outline-offset: 1px
}
.btn-197:active {
background: #e5e7eb
}
HTML
<button class="btn-197" aria-label="Close"><svg width="10" height="10" viewBox="0 0 10 10" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"><path d="M1 1l8 8M9 1l-8 8"/></svg></button>Prompt
A 22px ghost icon button with a 10px inline x icon in grey #6b7280, 5px radius, no background or border. Hover tints #f3f4f6 with a darker icon; active #e5e7eb. Focus 2px dark outline offset 1px. For dismissing toasts, tags and dialogs.