the module theme independent or in other words I want my module to look the same no matter of the installed theme that is applied to Orchard system. For example I find some problems when the user is using Bootstrap / Bootswatch theme (the styles got messy
overriding each other).
In my part display view I am trying the following approach:
var resourceManager = WorkContext.Resolve<IResourceManager>();
var requiredStyles = resourceManager.GetRequiredResources("stylesheet");
foreach (RequireSettings setting in requiredStyles)
if (setting.Name == "BootswatchStyle" || setting.Name == "CustomStyle")
and then loading all the needed resources for my module