# Theme CSS Not Working

**URL:** https://meta.discourse.org/t/theme-css-not-working/187652
**Category:** Support
**Created:** [April 21, 2021, 4:45pm UTC](https://meta.discourse.org/t/theme-css-not-working/187652 "2021-04-21T16:45:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![cris.navarroza](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cris.navarroza/32/212437_2.png) [@cris.navarroza](https://meta.discourse.org/u/cris.navarroza)
#### Post date: [April 21, 2021, 4:45pm UTC](https://meta.discourse.org/t/theme-css-not-working/187652/1 "2021-04-21T16:45:11Z")

</div>

Can someone help me understand why my CSS from theme under common.scss are not working on pages like /u/activate-account or 404 page?

I was trying to change the background of the div as mentioned on this thread [Include assets (e.g. images, fonts) in themes and components](https://meta.discourse.org/t/include-images-and-fonts-in-themes-and-components/62459)

But the css is now working for these pages…

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 21, 2021, 11:12pm UTC](https://meta.discourse.org/t/theme-css-not-working/187652/2 "2021-04-21T23:12:59Z")

</div>

You’ll need to provide more hints. If you can link to your site, that might help. If you can link to a repo with your theme in it, that might help.

---

<div class="post-metadata">

### Author: ![cris.navarroza](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cris.navarroza/32/212437_2.png) [@cris.navarroza](https://meta.discourse.org/u/cris.navarroza)
#### Post date: [April 22, 2021, 1:03pm UTC](https://meta.discourse.org/t/theme-css-not-working/187652/3 "2021-04-22T13:03:18Z")

</div>

It seems that there are pages that can’t detect CSS under common.scss and even initialize.js. What I usually do is to place the code under footer.html or header.html but adding the codes there are very limited compared to creating an enter js script or sass script where you can use variables. Some of the pages were /u/activate-account/{token}, 404 page.

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [April 22, 2021, 2:02pm UTC](https://meta.discourse.org/t/theme-css-not-working/187652/4 "2021-04-22T14:02:38Z")

</div>

Is this on your local or on a production site? Locally, I see this theme CSS on `/u/activate-account/{token}` (but only after a refresh), I tried with this:

```plaintext
#simple-container {
    border: 3px solid red;
}

```

---

<div class="post-metadata">

### Author: ![cris.navarroza](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cris.navarroza/32/212437_2.png) [@cris.navarroza](https://meta.discourse.org/u/cris.navarroza)
#### Post date: [April 22, 2021, 2:44pm UTC](https://meta.discourse.org/t/theme-css-not-working/187652/5 "2021-04-22T14:44:03Z")

</div>

Both in local and in production, the CSS that I add under common.scss(theme) is not working.
