# Custom css inside a post / adding custom classes

**URL:** <https://meta.discourse.org/t/custom-css-inside-a-post-adding-custom-classes/143072>\
**Category:** Development\
**Created:** [March 2, 2020, 11:55am UTC](https://meta.discourse.org/t/custom-css-inside-a-post-adding-custom-classes/143072 "2020-03-02T11:55:09Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![RichardC](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richardc/32/216860_2.png) [@RichardC](https://meta.discourse.org/u/RichardC)\
**Post date:** [April 16, 2021, 9:18pm UTC](https://meta.discourse.org/t/custom-css-inside-a-post-adding-custom-classes/143072/8 "2021-04-16T21:18:48Z")

</div>

@david I put your exact div into a topic, and added this css to a theme component

```plaintext
div[data-theme-bot] {
  color: red;
}

```

The inspector shows `div data-theme-bot` (surrounded by \< \>) but the computed color is `var(--primary) html`

Do I need to add additional selectors, or change an Admin Setting? Thanks.

---

_[View the full topic](https://meta.discourse.org/t/custom-css-inside-a-post-adding-custom-classes/143072)._
