# Descriptive classes in body

**URL:** <https://meta.discourse.org/t/descriptive-classes-in-body/34188>\
**Category:** Feature\
**Created:** [2015年十月6日 14:52 UTC](https://meta.discourse.org/t/descriptive-classes-in-body/34188 "2015-10-06T14:52:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Un3qual](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/un3qual/32/116194_2.png) [@Un3qual](https://meta.discourse.org/u/Un3qual)\
**Post date:** [2015年十月6日 14:52 UTC](https://meta.discourse.org/t/descriptive-classes-in-body/34188/1 "2015-10-06T14:52:16Z")

</div>

Having classes that describe the context of the page in the body tag would be very useful. For example: `<body class="logged-in category-featues admin-user locked-topic"></body>` That way we could have custom “themes” for each category, group, and logged in/out users

---

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2015年十月6日 16:36 UTC](https://meta.discourse.org/t/descriptive-classes-in-body/34188/2 "2015-10-06T16:36:54Z")

</div>

`logged-in` and `anonymous-user` would be very useful. It would also be great to know what page we are on `login`, `about` etc.

---

<div class="post-metadata">

**Author:** ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)\
**Post date:** [2025年十二月4日 11:37 UTC](https://meta.discourse.org/t/descriptive-classes-in-body/34188/3 "2025-12-04T11:37:02Z")

</div>


