How ionic 2 detects the platform and load CSS files?


I have seen that there are separate CSS files for android and ios (main,variables,components) ex:

I want to understand how it loads dynamically platform Specific file? As we need to give support for desktop browser, we are going to add new files copied from android set and save for desktop. But want to understand the logic how it loads platform specific files, so I can add a switch if its desktop browser then load desktop browser specific files.

Also on body tag ionic is adding dynamic class like ‘md’ or ‘ios’. how that logic works ??


i’d like to know too