DEV Community

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

Collapse
 
nadatanasovska profile image
Nadica Atanasovska

Love this talk! I'm curious about the options to control the contrast and text size on websites and how to go about building them?

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. 😁