DEV Community

Discussion on: Accessibility Matters: How to Build Apps for Everyone with Miranda Limonczenko

Collapse
 
mlimonczenko profile image
Miranda • Edited

One way of going about it:

Use HTML classes consistently to indicate certain color variations. Do not bind CSS color rules to components but to these classes.

Then, when a button is clicked for the contrast tool, you can add a class to body that allows you to change the skin easily in CSS with only a handful of CSS rules. 😁