Preview:
//Uses Process,...

function isMacDarkMode: Boolean;
var s:ansistring;
begin
  RunCommand('/usr/bin/defaults',['read','-g','AppleInterfaceStyle'],s);
  Result:=(pos('Dark',s)>0);
end; 
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter