Modern Checkbox Documentation
A comprehensive collection of beautiful, accessible, and customizable checkbox and radio button styles for modern web applications.
Installation
Get started with our checkbox library in just a few simple steps.
Step 1: Include CSS Files
Add the following CSS files to your HTML <head> section:
<!-- Bootstrap 5 (Optional) -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Checkbox Styles -->
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/toggleswitch.css">
<link rel="stylesheet" href="css/Update.css">
Step 2: Add HTML Markup
Use the following HTML structure for your checkboxes:
<div class="checkbox-3d">
<input type="checkbox" id="myCheckbox" checked>
<label class="checkbox-3d-label" for="myCheckbox">
<div class="checkbox-3d-box"></div>
Enable 3D Effects
</label>
</div>
Quick Start Guide
Here are some quick examples to get you started immediately:
Basic Checkbox
<div class="form-check">
<input class="form-check-input" type="checkbox" id="quickCheck1" checked>
<label class="form-check-label" for="quickCheck1">
Default checkbox style
</label>
</div>
Toggle Switch
Checkbox Styles Popular
Our library includes multiple checkbox styles for different use cases:
Available Styles
| Style Name | Class Name | Features |
|---|---|---|
| 3D Neumorphic | checkbox-3d |
Shadow effects, pressed states |
| Neon Glow | neon-checkbox |
Glowing animations, pulse effect |
| Flip Card | flip-checkbox |
3D rotation, dual faces |
| Animated SVG | normal_chebox_svg |
SVG paths, smooth animations |
| Tooltip Style | tooltip_chebox_button |
Hover tooltips, 4 positions |
Advanced Styles New
Explore our cutting-edge checkbox and radio button designs:
Color Customization
Easily customize colors using CSS variables:
:root {
--primary-color: #4F46E5;
--success-color: #10B981;
--danger-color: #EF4444;
--warning-color: #F59E0B;
--info-color: #3B82F6;
}
Size Variations
Available size classes:
| Size | Class | Dimensions |
|---|---|---|
| Small | toggleSwitch-sm |
20px × 20px |
| Medium | toggleSwitch-md |
28px × 28px |
| Large | toggleSwitch-lg |
40px × 40px |
Best Practices
1. Always Use Labels
Ensure every checkbox/radio has an associated <label> for accessibility.
2. Unique IDs
Use unique IDs for each form element to prevent conflicts.
3. Keyboard Navigation
All our styles support keyboard navigation out of the box.
4. Color Contrast
Maintain WCAG 2.1 AA contrast ratios for text and interactive elements.
Frequently Asked Questions
Do I need JavaScript?
No! Most of our styles are pure CSS. JavaScript is only needed for copy buttons and advanced features.
Is it compatible with Bootstrap?
Yes! Works with Bootstrap 3, 4, and 5.
Can I use this commercially?
Please check the license file included with your purchase.
How do I customize colors?
Override the CSS variables in your own stylesheet or modify the source files directly.