# Customized CSS based on user role/groups

**URL:** <https://meta.discourse.org/t/customized-css-based-on-user-role-groups/281766>\
**Category:** Development\
**Tags:** css\
**Created:** [October 10, 2023, 2:20pm UTC](https://meta.discourse.org/t/customized-css-based-on-user-role-groups/281766 "2023-10-10T14:20:43Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)\
**Post date:** [October 10, 2023, 2:32pm UTC](https://meta.discourse.org/t/customized-css-based-on-user-role-groups/281766/4 "2023-10-10T14:32:57Z")

</div>

> [@RBoy](#):
>
> I want this to show up for the Admins group and Moderators group.

For admins and moderators a `staff` class is added to the document body by default. So if that’s all you need, you can just use `body.staff` out-of-the-box.

---

_[View the full topic](https://meta.discourse.org/t/customized-css-based-on-user-role-groups/281766)._
