Including A Dyslexia-Pleasant Mode To A Web site

No Comments

Dyslexia is probably the most typical studying dysfunction on this planet, affecting someplace between 10–20% of the world’s inhabitants. It may trigger difficulties with studying, writing, and spelling, although the diploma of impairment varies extensively — some persons are barely affected whereas others require an excessive amount of additional assist.

Present finest practices and steering, such because the Internet Content material Accessibility Pointers (WCAG), give us a strong basis for inclusive design and already incorporate many particulars that have an effect on dyslexic readers. For instance, WCAG steering round line size and spacing match the suggestions I discovered doing my analysis. In actual fact, a few of these assets are linked within the Understanding WCAG 2.1 doc which offers prolonged commentary on the rules.

We will construct upon these foundations to supply extra centered assist for various communities, making it simpler to have interaction with our web sites on their very own phrases. On this article, we’ll take a look at methods to make an present design dyslexia-friendly.

This text builds on English-language analysis and might be generalized to cowl most European languages that use Latin and Cyrillic scripts. For different languages and scripts, you’ll find it’s good to tailor and even ignore these tips.

Font Choice
“The font for the physique copy needs to be chosen for its on-screen readability, earlier than any concern for type.”

— “How To Apply Macrotypography For A Extra Readable Internet Web page,” Nathan Ford

After I first began researching this subject, I incorrectly believed that I must restrict my font choice. Fortunately, analysis exhibits that commonplace fonts like Helvetica and Instances New Roman are simply as readable as purpose-built fonts like Dyslexie or Open Dyslexic.

What this implies to your font choice is that you simply merely have to pick out fonts with legibility in thoughts.

All proper, drawback solved, let’s go house!

Effectively, not likely. It seems there’s something particular about these purpose-built fonts.

“Plainly a minimum of for some folks with dyslexia, they’re susceptible to a phenomenon known as ‘visible crowding’ after they learn.”

Dr Jenny Thomson

Whereas examine after examine exhibits little profit from the selection of font, additionally they constantly present spacing between letters and phrases as a very powerful think about supporting a dyslexic reader. Jon Severs has written an excellent overview of those research with quotes from lots of the main researchers.

The recognition of Comedian Sans within the dyslexic group appears to be pushed by the broader spacing present in that font, spacing that has been constructed into extra fonts meant for his or her group.

As designers, we’ve the facility to increase this spacing to any font, letting us assist our readers with no main redesign. Whereas we’re at it, we are able to additional enhance issues by decreasing distractions and design decisions that may produce the visible crowding that impacts dyslexic readers.

An Present Design

The next CodePen instance exhibits a enjoyable little design with semantic and accessible markup that obtained 100% from a Lighthouse audit. It follows finest practices, tries to current a robust visible identification, has good distinction ranges, and makes use of Overpass for headings and physique, which offers a unified and legible sans serif household of typefaces:

See the Pen Dyslexia-unfriendly design by John C Barstow.

This will likely be our place to begin, which we’ll prolong to construct our dyslexia-friendly model.

Preliminary Adjustments

We wish the whole doc to work collectively to assist our dyslexic readers, so we’ll start by including a category to the physique ingredient.

<physique class=”dyslexia-mode”>

This may enable us to simply toggle our new modifications on and off by way of JavaScript and makes it simple to find the related CSS guidelines.

The British Dyslexia Affiliation printed a type information in 2018 which we are able to use as a place to begin:

“Bigger inter-letter / character spacing (typically known as monitoring) improves readability, ideally round 35% of the typical letter width.”

“Inter-word spacing needs to be a minimum of 3.5 occasions the inter-letter spacing.”

The ch unit in CSS is predicated on the advance of the 0 glyph, however in follow for proportional fonts can typically be used as an approximation of the typical character width. Should you’re utilizing a font with a very slender or large zero, it’s possible you’ll discover it’s good to regulate the numbers beneath.

We’re utilizing Overpass in our instance, which has a reasonably commonplace zero, so we are able to specific the really useful numbers instantly:

.dyslexia-mode {
letter-spacing: 0.35ch;
word-spacing: 1.225ch; /* 3.5x letter-spacing */

Trendy browsers default to enabling a font’s frequent ligatures, and older browsers will achieve this if you happen to use the unofficial text-rendering: optimizeLegibility property. For many of us, this improves legibility because it merges close-set characters right into a single glyph. For instance, ‘f’ and ‘i’ are sometimes merged to create ‘fi’.

Dyslexic readers, then again, could battle to acknowledge the ligature as two letters, particularly as we’ve elevated the spacing, making ligatures stand out much more than ordinary. Whereas some browsers could robotically disable ligatures on account of the elevated letter spacing, for constant conduct we must always explicitly disable them ourselves by way of CSS:

.dyslexia-mode {
letter-spacing: 0.35ch;
word-spacing: 1.225ch; /* 3.5x letter-spacing */
font-variant-ligatures: none; /* explicitly disable ligatures */

Line Spacing

The WCAG tips recommend a minimal line peak of 1.5, with a paragraph setting a minimum of 1.5 occasions bigger than the road spacing.

Following this steering is already fairly useful to your dyslexic readers, however that minimal worth is predicated on the usual phrase spacing. Since we’re rising the phrase spacing, we must always improve the road peak proportionally.

I discover a line-height of two.0 works fairly properly. It’s a bit of greater than the BDA steering of 1.5x the phrase spacing, unitless as urged by MDN documentation, and simple to sync as much as a design’s vertical rhythm.

To realize the really useful quantity of paragraph spacing, on this instance we apply a prime margin on our p components. In a bigger undertaking, you may need to use Heydon Pickering’s well-known owl selector, particularly if in case you have nested content material.

Following the WCAG suggestion, that prime margin needs to be a minimal of 3em to get the specified paragraph spacing. After suggestions from my dyslexic reader, I elevated this to three.5em which was extra comfy for them.

As with all inclusive design, suggestions from actual customers is essential to making sure the perfect outcomes.

Whereas we may apply these settings to our whole web page, I favor to focus on them to the principle content material space, particularly when modifying an present design. Web site headers, footers, and navigation have a tendency to not have paragraph content material and might be significantly delicate to vertical whitespace modifications.

.dyslexia-mode essential {
line-height: 2.0;

.dyslexia-mode essential p {
margin-top: 3.5em;

Different Typographic Adjustments

At this level, we’ve made the large-scale modifications that may have the most important affect on a dyslexic reader. Now we are able to flip our ideas to the smaller touches that assist refine a design.

The additional whitespace we’ve launched will make many fonts seem lighter, thinner, or decrease distinction, so we are able to improve the font weight or regulate the colour to compensate.

.dyslexia-mode {
font-weight: 600; /* demi-bold */

This in flip could make daring (at a font-weight of 700) more durable to differentiate. You can make it a heavier daring by rising the font-weight or distinguishing it in another approach like altering the scale or colour. For my design, I selected to go away it on the identical weight, however make it darker than the common textual content.

.dyslexia-mode robust {
colour: #000;

Now is an efficient time to make use of your developer instruments to test your distinction. For dyslexic readers, you must goal for a distinction ratio of a minimum of 4.5:1, which corresponds to the WCAG 2.1 minimal distinction tips.

Why the minimal tips? Effectively, there are two points to contemplate. One is that at very excessive distinction ratios some dyslexic readers will see their textual content blurring or swirling. This is named the “blur impact”. This is without doubt one of the causes that the BDA type information we referenced earlier recommends avoiding pure black textual content or pure white backgrounds.

The second consideration is that many dyslexic readers discover bigger font sizes extra readable. Analysis suggests a base measurement of 18pt, which meets the WCAG definition of large-scale textual content and due to this fact a distinction ratio of 4.5:1 will nonetheless meet the improved distinction tips.

Which reminds us, we must always bump up that base font measurement!

.dyslexia-mode {
font-size: 150%; /* assuming 16px base measurement, convert to 18pt */

Responsive designs are inclined to scale properly with browser zoom settings, so a unique technique right here could possibly be to go away your font measurement untouched and recommend that your readers improve the web page zoom of their browser.

Following the WCAG tips implies that our design doesn’t use justified textual content, so we don’t need to make an adjustment. As a result of justification can alter the spacing between letters and phrases, if in case you have used it, you must make sure you disable it in a dyslexia-friendly mode.

Cut back Muddle

The additional whitespace we’ve been including makes it simpler to concentrate on letters and phrases. That means that we might be much more useful by decreasing the quantity of complicated, cluttered, or doubtlessly distracting issues in our design.

Greatest practices in net design have a tendency to emphasise progressive enhancement and mobile-first design, which helps preserve web page weights down and makes net pages resilient. These practices naturally result in a minimal default state with fewer decorations and distractions (as a result of these would overwhelm a small display). We will protect this minimal state in our dyslexia-friendly mode.

For the background, this implies defaulting to a strong colour and utilizing the :not pseudo-class in our enhancements to keep away from making use of them to our new mode.

We will use related constructs to keep away from the creation of ornamental borders and shadows, leaving solely these which are functionally needed.

@media(min-width:700px) { / solely apply on wider screens… /
physique:not(.dyslexia-mode) essential { / …if not in our pleasant mode! /
background-image: url(;

Within the present design, we intentionally make the heading seem like an imperfectly utilized printed label by rotating it barely. That is meant to evoke a playful or humanistic contact, and we regularly see designs undertake little touches like these for related causes.

Nonetheless, this label-like look is a main instance of an ornamental ingredient that produces visible crowding. So despite the fact that it really works properly in a cellular context, we’re going to have to take away this contact to supply a greater expertise for our dyslexic readers.

.dyslexia-mode h2 {
border: none; border-bottom: skinny gray strong; / simply protecting the underside border for this ingredient, to retain some separation /
max-width: 100%; / commonplace width /
rework: none; / don’t rotate /
background-color: inherit; / We not seem like a label, so we do not require our personal background /
margin-bottom: 1em; padding-left:0; / some spacing changes /

Zebra striping has lengthy been used when displaying tabular information, however analysis by Jessica Enders exhibits that the advantages usually are not essentially as clear as I believed, and I didn’t discover any dyslexia-specific analysis on the topic.

What I did discover was a request from my dyslexic reader to implement zebra striping for tables and lists! As soon as once more, actual person suggestions is invaluable.

I selected to limit this to the principle content material, to keep away from having to revisit the design of the location navigation. We don’t even have any tables in our instance, however the CSS modifications can be fairly related.

.dyslexia-mode essential li:nth-of-type(odd) {
background-color: palegoldenrod;

Toggling Our New Mode

Now that we’ve a dyslexia-friendly design, we have to resolve whether or not to make it the default, or one thing that’s chosen by the person.

When retrofitting an present website, as on this instance, we’ll in all probability go for a mode, to cut back the affect of modifications on present customers.

In constructing a brand new website or refreshing a design, we must always think about which modifications we are able to make the default, for the advantage of all customers. As with all different design work, you’re balancing the wants of a number of audiences, branding constraints, and tensions with different design objectives akin to evoking particular moods or protecting sure data “above the fold”.

Switching between modes is completed by toggling the category on the physique ingredient. Right here we do it with a toggle button and a few JavaScript, utilizing localStorage to persist the change throughout visits and pages. This could possibly be set and saved as a part of a person profile.

// toggle dyslexia assist
const isPressed = window.localStorage.getItem(‘dyslexic’) === ‘true’;
if(isPressed) {
// set the button to pressed if applicable
const toggle = doc.getElementById(‘dyslexia-toggle’);
if(isPressed) {
toggle.setAttribute(‘aria-pressed’, ‘true’);
// toggle dyslexia assist
toggle.addEventListener(‘click on’, (e) => {
let pressed = e.goal.getAttribute(‘aria-pressed’) === ‘true’;
e.goal.setAttribute(‘aria-pressed’, String(!pressed));
window.localStorage.setItem(‘dyslexic’, String(!pressed));

See the Pen Dyslexia-friendly mode added by John C Barstow.


The separation of content material and presentation that CSS provides us all the time turns out to be useful when we have to adapt designs to higher serve completely different communities.

Constructing on the strong foundations of a design that embraces accessibility tips, we’ve realized to increase our design to enhance the expertise for dyslexic readers. There are different audiences that would profit from this type of centered design work, and I hope this evokes you to hunt them out and share your expertise.

This design was examined with a small and probably unrepresentative pattern measurement. Should you or somebody you understand has dyslexia, your suggestions within the feedback beneath about what does or doesn’t work can be very welcome and useful!

Extra References

Shorter Traces Facilitate Studying in These Who Wrestle,” Matthew H. Schneps, Jenny M. Thomson, Gerhard Sonnert, Marc Pomplun, Chen Chen, Amanda Heffner-Wong
A Comparative Research Of Dyslexia Type Guides In
Bettering Readability For Individuals With Dyslexia
” (PDF)
Further-Massive Letter Spacing Improves Studying In Dyslexia,” Marco Zorzi, Chiara Barbiero, Andrea Facoetti, Isabella Lonciari, Marco Carrozzi, Marcella Montico, Laura Bravar, Florence George, Catherine Pech-Georgel, and Johannes C. Ziegler

    About Marketing Solution Australia

    We are a digital marketing company with a focus on helping our customers achieve great results across several key areas.

    Request a free quote

    We offer professional SEO services that help websites increase their organic search score drastically in order to compete for the highest rankings even when it comes to highly competitive keywords.

    Subscribe to our newsletter!

    More from our blog

    See all posts

    Leave a Comment