Getting system colours


Does anyone know of a somewhat reliable way to get system colours or theme in a cross-platform way?

I know Electron has the systemPreferences module, but it can only get (some?) colours on Win and Mac.

There are some CSS attributes:

Firefox makes a half decent success of accurately detecting the theme on linux. Chrome on the other hand is completely lame at getting the colours right.