Plugin CSS takes priority over theme CSS?

Hmm yes, you’re right. We load core, then themes, then plugins

https://github.com/discourse/discourse/blob/master/app/views/common/_discourse_stylesheet.html.erb#L11-L17

I think core → plugins → themes would be a better order, and would match the pre-plugin-debundling behaviour. What do you think @awesomerobot @Johani @jordan-vidrine?

@WorldIsMine a workaround is to increase the specificity of theme’s CSS.

10 Likes