# How to create a theme which only administrators can use?

**URL:** https://meta.discourse.org/t/how-to-create-a-theme-which-only-administrators-can-use/268500
**Category:** Development
**Created:** [June 15, 2023, 5:46pm UTC](https://meta.discourse.org/t/how-to-create-a-theme-which-only-administrators-can-use/268500 "2023-06-15T17:46:11Z")
**Posts on this page:** 1
**Showing post:** 16

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [June 16, 2023, 1:10pm UTC](https://meta.discourse.org/t/how-to-create-a-theme-which-only-administrators-can-use/268500/16 "2023-06-16T13:10:37Z")

</div>

> [@david](#):
>
> Discourse automatically adds group-based classes to the `<body>` so it should be possible to skip the JS and do something like

I don’t have other group-specific class than `staff` as an admin on my test instance (last Discourse version):

`<body class="chat-enabled staff has-sidebar-page navigation-topics docked"`

As far as I can see, neither in `<html>` nor any other tag.

On meta, we use [CSS Classes for Current User's Groups](https://meta.discourse.org/t/css-classes-for-current-users-groups/226068), which could also be used in daniela’s case. 🙂

---

_[View the full topic](https://meta.discourse.org/t/how-to-create-a-theme-which-only-administrators-can-use/268500)._
