Preview
HTML
<label>
<input type="checkbox" checked />
Keep
</label>
CSS
:root {
--ink: #3d2a32;
--paper: #fff7f8;
--accent: #c45c7a;
--accent-2: #7a8fbf;
--on-accent: #ffffff;
--muted: #8a6f78;
--line: #f0d4dc;
--chip: #ffe8ee;
}
label {
display: inline-flex;
align-items: center;
gap: 0.45rem;
color: var(--ink);
font-family: system-ui, sans-serif;
font-size: 0.95rem;
font-weight: 600;
}
input {
appearance: none;
width: 0.95rem;
height: 0.95rem;
margin: 0;
border: 2px solid var(--ink);
border-radius: 0.25rem;
background: var(--paper);
}
input:checked {
background: var(--accent);
box-shadow: inset 0 0 0 2px var(--paper);
}
Tailwind
<style>
:root {
--ink: #3d2a32;
--paper: #fff7f8;
--accent: #c45c7a;
--accent-2: #7a8fbf;
--on-accent: #ffffff;
--muted: #8a6f78;
--line: #f0d4dc;
--chip: #ffe8ee;
}
input {
appearance: none;
}
input:checked {
background: var(--accent);
box-shadow: inset 0 0 0 2px var(--paper);
}
</style>
<label class="inline-flex items-center gap-[0.45rem] text-[var(--ink)] font-[system-ui,_sans-serif] text-[0.95rem] font-semibold">
<input class="w-[0.95rem] h-[0.95rem] m-0 [border:2px_solid_var(--ink)] rounded-[0.25rem] bg-[var(--paper)]" type="checkbox" checked />
Keep
</label>