# Can I use a theme I created without allowing it to be used by others?

**URL:** https://meta.discourse.org/t/can-i-use-a-theme-i-created-without-allowing-it-to-be-used-by-others/176459
**Category:** Support
**Created:** [January 18, 2021, 3:48pm UTC](https://meta.discourse.org/t/can-i-use-a-theme-i-created-without-allowing-it-to-be-used-by-others/176459 "2021-01-18T15:48:23Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [January 19, 2021, 2:38am UTC](https://meta.discourse.org/t/can-i-use-a-theme-i-created-without-allowing-it-to-be-used-by-others/176459/4 "2021-01-19T02:38:03Z")

</div>

Admins and moderators have the `.staff` class assigned to the page body, so you could do something like this in a theme:

```scss
body.staff {
  // your admin theme's css here
}

```

A normal user could add the class `staff` to their body tag (via the browser inspector) and see the theme too, but I’m not sure why anyone would bother trying that.

For more advanced themes, if you’re using a plugin outlet or changing html with template overrides (see [Developer’s guide to Discourse Themes](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648)) you can do something like this:

```hbs
{{#if currentUser.staff}}
  <h1>hello admins and moderators!</h1>
{{/if}}

```

---

_[View the full topic](https://meta.discourse.org/t/can-i-use-a-theme-i-created-without-allowing-it-to-be-used-by-others/176459)._
