プレビュー
HTML
<label>
<input type="checkbox" checked />
Keep
</label>
CSS
:root {
--ink: #1c1915;
--paper: #fbf7ee;
--accent: #6b3f2a;
--accent-2: #2c3a4a;
--on-accent: #fbf7ee;
--muted: #6f675c;
--line: #cfc4b0;
--chip: #f0e9db;
}
label {
display: inline-flex;
align-items: center;
gap: 0.45rem;
color: var(--ink);
font-family: Palatino, Georgia, serif;
font-size: 1rem;
font-weight: 600;
}
input {
appearance: none;
width: 0.95rem;
height: 0.95rem;
margin: 0;
border: 2px solid var(--ink);
border-radius: 0;
background: var(--paper);
}
input:checked {
background: var(--accent);
box-shadow: inset 0 0 0 2px var(--paper);
}
Tailwind
<style>
:root {
--ink: #1c1915;
--paper: #fbf7ee;
--accent: #6b3f2a;
--accent-2: #2c3a4a;
--on-accent: #fbf7ee;
--muted: #6f675c;
--line: #cfc4b0;
--chip: #f0e9db;
}
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-[Palatino,_Georgia,_serif] text-[1rem] font-semibold">
<input class="w-[0.95rem] h-[0.95rem] m-0 [border:2px_solid_var(--ink)] rounded-[0] bg-[var(--paper)]" type="checkbox" checked />
Keep
</label>