Different theme for admin backend?

Hi! I’ve added quite a bit of customisation to my instance, but those edits seems to be bugging my admin back-end.

Is there a way (except by adding body:not(.admin-interface) too all my css elements) to simply have a vanilla instance for the admin interface?

It might be worth it to spend a little bit of time to make sure your CSS selectors are not too broad (which would cause the issue you’re seeing in the admin interface)

However, if you simply don’t want any custom CSS to apply to the admin, you can actually use something similar to what you described.

Discourse supports SCSS which means that you only need to add body:not(.admin-interface) once to your theme. You don’t need to add it to every rule.

Something like this

body:not(.admin-interface) {

// all the CSS rules from your theme go here


Amazing! Just what I was looking for. Thanks :smiley:


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.