Skip to content

Instantly share code, notes, and snippets.

@Myndex
Myndex / WCAG2vsAPCA_someLightReading.md
Last active March 23, 2023 09:59
WCAG 2 vs APCA • A Contrast in Applied Maths

WCAG 2 vs APCA Contrast Shootout

A Response to Comments Regarding APCA vs WCAG2/1.4.3

We have on occasion heard the comment "APCA produces less contrast" — this is not true, though I see how some might come to that conclusion, it does not consider the totality of the new guidelines.

APCA does not produce contrast. APCA does nothing to the colors, it only predicts how a human will perceive them, and their effect on readability. And yes, if you try to compare APCA to the WCAG2 math it might appear that APCA allows lower contrast in some specific cases where one color is white or very bright, but across the entire range, APCA clearly, consistently, and correctly predicts contrast, while WCAG2 more often than not allows lower contrasts to pass that have even been shown to be unreadable, even with normal vision.

Here's an example a user brought to my attention recently:

@Hotell
Hotell / cra-2-ts-css-modules-guide.md
Last active March 25, 2022 16:07
typed css-modules - CRA 2.0

CRA 2.x + TS setup:

This will give you complete intellisense and type safety within your app and CSS modules

typesafe-css-modules

🚨 NOTE

  • refactoring className from ts file wont update your css/scss className, to change class names you have to change it within your .module.scss file
@cmgiven
cmgiven / .block
Created August 13, 2016 14:41
Bouncing Logo
license: mit
@dln
dln / zmq_rep.py
Created June 28, 2011 14:17
ZeroMQ echo server (REP) for testing.
#!/usr/bin/env python
import sys
import zmq
ctx = zmq.Context()
poll = zmq.Poller()
addrs = {}