Custom Radio Button CSS Generator

Generate custom CSS radio button styles with live preview.

5.6Kuses
7.7/10(302)
22px
2px
10px

CSS Code

.radio-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.radio-wrapper input {
  display: none;
}

.radio-custom {
  width: 22px;
  height: 22px;
  border: 2px solid #555;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.radio-wrapper input:checked + .radio-custom {
  border-color: #6366f1;
}

.radio-custom::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6366f1;
  transform: scale(0);
  transition: transform 0.2s;
}

.radio-wrapper input:checked + .radio-custom::after {
  transform: scale(1);
}

Recommended Products

Ad

Affiliate Disclosure: As an Amazon Associate, ToolBird earns from qualifying purchases. Links above are affiliate links — if you buy through them, we may earn a small commission at no extra cost to you.

Disclaimer: This tool is provided as-is for informational and educational purposes only.

ToolBird Assistant

Find the right tool instantly

Hey! I'm ToolBird Assistant. Tell me what you need and I'll find the right tool for you.