CSS Checkbox Generator

CSS Checkbox Generator

CSS Checkbox Generator

Create beautiful, customizable CSS checkboxes with real-time preview and code generation. Perfect for your web projects!

Customize Your Checkbox

Small Medium Large
Fast Normal Slow
Sharp Rounded Pill

Preview

Generated Code

/* CSS Checkbox Code */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-input:checked ~ .checkbox-custom {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-custom::after {
    content: "";
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.checkbox-input:checked ~ .checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}

CSS Checkbox Generator © 2023 | Made with ❤️ for developers

Scroll to Top