Why Nostr? What is Njump?
2025-04-05 06:10:51

Kartik Agaram on Nostr: Automatically selecting colors with sufficient contrast. Here's a test build of my ...

Automatically selecting colors with sufficient contrast.

Here's a test build of my hypertext browser where every "page load" picks a random background. The foreground and link colors adapt to preserve a minimum contrast (WCAG AAA level).

Colors in my markup language are no longer rgb.

Background colors are strings of the form 'hue:intensity:lightness', e.g. 'red:5:4'

Foreground colors can contain just 'hue' or 'hue:intensity'. Missing fields get filled in to maintain contrast.

Author Public Key
npub1a7z9gd5tk2erqjvgu7rr4lnpn07mx5fvwq05ktnrwlkd98yqj8xsrdtenc