I'm trying to detect the operating system's natural look and feel so I style my elements close to the feel of the OS (e.g. Skeuomorph or Flat).
Currently, I am using NodeJS's 'os' module for getting OS information. On the Mac [Mavericks] I can get the value 'darwin' via os.platform()
, which according to wiki, is also what Yosemite is called.
My main aim is to detect if the OS uses a flat design (e.g. the new Windows8 or Mac's Yosemite) or the traditional skeuomorph design.
Is there are list of the platform names for the various OS's?
- OR alternatively -
Is there a easier/better method to detect if the OS uses a flat or skeuomorph design?