# Can I make a theme available to specific user groups only?

**URL:** https://meta.discourse.org/t/can-i-make-a-theme-available-to-specific-user-groups-only/362653
**Category:** Development
**Tags:** horizon-theme
**Created:** [April 20, 2025, 1:53am UTC](https://meta.discourse.org/t/can-i-make-a-theme-available-to-specific-user-groups-only/362653 "2025-04-20T01:53:12Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [April 21, 2025, 12:08am UTC](https://meta.discourse.org/t/can-i-make-a-theme-available-to-specific-user-groups-only/362653/10 "2025-04-21T00:08:52Z")

</div>

It is just a CSS based solution but will work to restrict users from seeing the premium themes in the selector. Prerequisites is that the user needs to select primary group. Though there is also a TC that will add all user groups as classes.

> [@Show/hide themes for specific groups?](https://meta.discourse.org/t/show-hide-themes-for-specific-groups/115459/4):
>
> So for example if I wanted to hide a theme named “Dark Theme” from everyone _except_ those in the Staff group, I could do this:
> 
> ```plaintext
> body:not(.staff) { 
> .user-preferences .select-kit-row[data-name="Dark Theme"] {
> display: none;
> }
> }
> 
> ```
> 
> So now “Dark Theme” wouldn’t appear in the user preferences dropdown unless you’re in the staff group.
> 
> Someone could figure out a way to dig around in the web inspector and enable these themes, but I imagine most people wouldn’t even look.
> 
> * * *
> 
> All that being said, for the future I think we should definitely consider some “monetization” features that would enable an admin to easily incentivize support with themes, titles, sets of emoji… etc.

> [@CSS Classes for Current User's Groups](https://meta.discourse.org/t/css-classes-for-current-users-groups/226068):
>
> discourse2Summary CSS Classes for Current User’s Groups adds the groups that a member is a part of as CSS classes on the \<body\> tag.eyeglassesPreview [Preview on theme-creator.discourse.org](https://discourse.theme-creator.io/theme/Johani/user-groups-css-classes)hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-groups-css-classes-in-body](https://github.com/discourse/discourse-groups-css-classes-in-body)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Install this theme component Before: [image] After: [image] Discourse only adds the current us…

---

_[View the full topic](https://meta.discourse.org/t/can-i-make-a-theme-available-to-specific-user-groups-only/362653)._
