A tiny Adminer extension for parsing and displaying colors where there are colors found.
If the cell's content matches either of the regexes down below, a small circle will appear next to the value. This way it should be pretty obvious what the color looks like without having to perform expensive decoding using brain-mathematics and having to imagine the color just using the brain.
Currently Colorfields extension supports HEX and RGB(a) formats:
- HEX:
^#?([0-9a-fA-F]{3}){1,2}$
- RGB(a):
^rgba?\((\d+),(\d+),(\d+)(,(\d+))?\)$
Here you go, you rascal you: