Designing for colour blindness: how to check your UI
Around 1 in 12 men and 1 in 200 women have colour vision deficiency. Here is how the main types affect your UI, how to check designs with a simulator, and how to fix colour-only information.
The Refract Journal
Practical articles on CSS, interface design and image optimisation, written for people who build websites.
Around 1 in 12 men and 1 in 200 women have colour vision deficiency. Here is how the main types affect your UI, how to check designs with a simulator, and how to fix colour-only information.
Scroll-driven animations link CSS keyframes to scrolling instead of time. Here is how view(), scroll() and animation-range work, with copy-ready reveal and progress bar code and safe fallbacks.
WCAG asks for 4.5:1 contrast for normal text and 3:1 for large text at level AA. Here is what each rule covers, how the ratio is calculated, and the exceptions.
OKLCH lets you build colour palettes with evenly spaced shades and predictable contrast. Here is the syntax, an 11-step scale with real contrast results, and how to use it safely.
Google sets no limit on meta description length, but trims snippets to fit the screen. Aim for about 150–160 characters, lead with the key message, and here is why.
Three soft UI styles built from CSS shadows and filters. Here is how glassmorphism, neumorphism and claymorphism differ, where each works, and how to keep them accessible.
One box-shadow looks flat. Layering several soft shadows, each larger and fainter than the last, gives depth that looks like real light. Here is how, with an elevation scale you can reuse.
A favicon that won’t show is usually a cached old icon, a broken link, or Google not having fetched it yet. Here is how to check each one and fix it.
Export images at the largest width they are displayed, doubled for high-density screens. Here are typical sizes for heroes, article images and thumbnails, and how to measure your own.
Enjoying Refract Tools? ☕️
Refract is a personal project built to make design and development a little easier, with practical, intuitive tools that help you work smarter, without AI doing the work for you.
If you find the tools useful, consider buying me a coffee. Every bit of support helps me keep building, improving, and sharing more free tools with the community.
Thanks for being here! ❤️
Buy me a coffee