I want to change the color of a radio button and a checkbox that have Materialize css styles. I want to change the green color to another color. I add the code:
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<label>
<input type="checkbox" />
<span>Red</span>
</label>
<label>
<input name="group1" type="radio" checked />
<span>Red</span>
</label>
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
</body>
</html>
For this you must take into account:
materialize
should go at the top between the tags<head></head>
!important
at the end of each property to give more specificity to the modified stylesThe styles for each case are commented.