Custom checkboxes used to mean hiding the real input and drawing a fake one.
:root { accent-color: #0b6bcb; }
input[type="range"] { accent-color: #c2410c; }
accent-color tells the browser which color to use for the checked or active part of native controls: checkboxes, radio buttons, range sliders and progress bars. The control stays accessible and keeps its keyboard behaviour. The browser also picks a readable color for the tick inside a checkbox. It does not change other parts like the unchecked border or select menus, so for those you still need appearance: none and your own styling.
Further reading: MDN: accent-color