Glassmorphism Checkbox
Frosted glass via backdrop-filter. Checked state fills with a translucent gradient.
Glassmorphism Checkbox the 5th of 23 designs in the 23 CSS Checkboxes collection. The design is implemented in pure CSS — no JavaScript required. Copy the HTML and CSS panels below into your project. Because the demo is pure CSS, it works in any framework or templating engine you happen to use. The design honours prefers-reduced-motion and uses real semantic markup, so it ships accessibility-ready out of the box.
Live preview
The code
<label class="cb-glass">
<input class="cb-glass__input" type="checkbox" checked />
<span class="cb-glass__box">
<svg width="12" height="9" viewBox="0 0 14 11" fill="none">
<polyline
points="1,5.5 5,9.5 13,1"
stroke="white"
stroke-width="2.2"
stroke-linecap="round"
stroke-linejoin="round"
/>
</svg>
</span>
<span>Glassmorphism checkbox</span>
</label> .cb-glass {
display: inline-flex; align-items: center;
gap: 10px; cursor: pointer; user-select: none;
}
.cb-glass__input { display: none; }
.cb-glass__box {
width: 24px; height: 24px; border-radius: 8px;
background: rgba(255,255,255,.08);
backdrop-filter: blur(8px);
border: 1px solid rgba(255,255,255,.2);
display: flex; align-items: center;
justify-content: center; color: transparent;
transition: background .3s, border-color .3s,
box-shadow .3s, color .3s;
}
.cb-glass__input:checked + .cb-glass__box {
background: rgba(124,108,255,.4);
border-color: rgba(124,108,255,.6);
color: #fff;
box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}