fix(styles): add themes global rules processing (closes #4829)