# Custom CSS not loading

**URL:** <https://forums.rocket.chat/t/custom-css-not-loading/12974>\
**Category:** Community Support\
**Created:** [January 4, 2022, 8:48pm UTC](https://forums.rocket.chat/t/custom-css-not-loading/12974 "2022-01-04T20:48:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bruno.cavenaghi](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/bruno.cavenaghi/32/3395_2.png) [@bruno.cavenaghi](https://forums.rocket.chat/u/bruno.cavenaghi)\
**Post date:** [January 4, 2022, 8:48pm UTC](https://forums.rocket.chat/t/custom-css-not-loading/12974/1 "2022-01-04T20:48:54Z")

</div>

### Description

I made some changes in the custom css, but they’re not loading. Tried a lot of things, it looks cache but don’t know if I’m right. This is my css code so far:

```auto
/* NEW DAY FIX */

body #react-root .message.new-day {
  margin-top: 40px;
  width: 100%;
  max-width: calc(100% - 80px);
  background: transparent !important;
}

body #react-root .message.new-day:after {
  border: 0;
}

body #react-root .message.new-day:before{
  padding: 10px 40px;
  border-radius: 40px;
  background-color: rgba(0,0,0,0.2) !important;
}

/* MSG BODY */

body #react-root ul[aria-live="polite"]{
    display: inline-flex;
    flex-direction: column;
    width: 100%;

}

body #react-root .message {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 45%;
}

body #react-root .message.own {
    align-self: flex-end !important;
}

body #react-root .message .user {
  margin-bottom: 5px;
}

body #react-root .message .user .message-alias{
  display: none;
}

body #react-root .message .message-body-wrapper {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 16px 30px 16px 16px;
  border-radius: 30px;
  max-width: max-content;
}

body #react-root .message.own .message-body-wrapper {
  flex-direction: row-reverse;
  align-items: center;
  justify-content: stretch;
}

body.dark-mode .message-body-wrapper {
  background-color: rgb(54 66 86) !important;
}

body.dark-mode .message.own .message-body-wrapper {
  background-color: rgba(255,255,255,0.25) !important;
}
body #react-root .message time{
  margin-top: -5px;
  font-size: 85%;
}

body #react-root .message.own time {
  margin-bottom: -8px;
  margin-left: 8px;
/* position: absolute; */
/* bottom: 10px; */
/* right: 50px; */
}

body #react-root .message.own .thumb {
  display: none;
}

body #react-root .message .user-card-message .avatar {
  display: none;
}

body #react-root .message.own .role-tag {
  display: none;
}

body #react-root .message .thumb:not(.thumb-small) .avatar{
  
  width: 40px;
  height: 40px;
  border-radius: 40px;
  margin-right: 4px;
  
}
body #react-root .message-body-wrapper {
  margin-left: 8px
}

body #react-root .message.system.uj {
  padding-left: 10px;
}

/* MSG ACTIONS */
body #react-root .message-actions, .rc-member-list__counter {
  border-radius: 80px;
  padding: 6px 12px;
  box-shadow: 1px 5px 10px rgb(0 0 0 / 30%);
  border-width: 1px;
  top: -20px;
  right: 0;
  left: auto;
}
body #react-root .message.own .message-actions, .message.own .rc-member-list__counter {
  left: 0;
  right: auto;
}
body #react-root .message-actions__button-icon--thread {
  display: none;
}

/* MSG POPUP */
body #react-root .reply-preview__wrap.message-popup {
  top: -8px;;
}
body #react-root .reply-preview.message-popup {
  padding: 20px 20px 25px 40px !important;
  border-radius: 180px 180px 0;
}

/* MSG REACTIONS */
body #react-root .message .reactions {
  order:-1;
  margin-top: -10px;
  display: flex;
  flex-direction: row;
  margin-left: 10px;
}

body #react-root .message.own .reactions {
  flex-direction: row-reverse;
}

body.dark-mode .message .reactions>li {
  background: var(--color-dark-medium)
}
body.dark-mode .message .reactions li {
  border: 2px solid var(--color-darkest) !important;
}

body #react-root .message .reactions>li.add-reaction {
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body #react-root .message .reactions>li .reaction-emoji .emojione {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  margin: -.2ex 0.15em .2ex;
  pointer-events: none;
}

body #react-root .reactions .reaction-count{
  margin-left: 0;
  margin-right: 4px;
}

body #react-root .message .reactions>li {
  padding: 4px;
  height: 30px;
  border: 0;
  border-radius: 20px;
}

/* TEXTAREA SEND MSG */

body #react-root .rc-message-box{
  padding-bottom: 36px;
}
body #react-root .rc-message-box__container {
  border-radius: 40px;
  border-color: rgba(106, 106, 106, .1);
}

body #react-root .rc-message-box __toolbar-formatting, .rc-message-box__ toolbar-formatting-item{
  height: 36px;
}

body #react-root .rc-message-box__toolbar-formatting-icon {
  font-size: 20px;
  background-color: rgba(255,255,255,0.1);
  margin: 10px 2px;
  border-radius: 4px
}

body #react-root span[data-title="KaTeX"], span[title="KaTeX"]{
  display: none;
}

/* This CSS block is used to counter RocketChat's bug which crop the end of custom CSS. */
.dummy-entry {
  color: whitesmoke;
}

```

### Server Setup Information

SaaS hosted

---

<div class="post-metadata">

**Author:** ![durgaxd](https://avatars.discourse-cdn.com/v4/letter/d/898d66/32.png) [@durgaxd](https://forums.rocket.chat/u/durgaxd)\
**Post date:** [January 8, 2022, 12:51pm UTC](https://forums.rocket.chat/t/custom-css-not-loading/12974/2 "2022-01-08T12:51:57Z")

</div>

Cache can be causing the problem?

---

<div class="post-metadata">

**Author:** ![Saffsaff](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Saffsaff](https://forums.rocket.chat/u/Saffsaff)\
**Post date:** [February 15, 2022, 12:18pm UTC](https://forums.rocket.chat/t/custom-css-not-loading/12974/3 "2022-02-15T12:18:58Z")

</div>

Im Self hosted… tried CSS colour change just on the side bar - colour changes then reverts back immediately to default colours…

anyone have a solution?

---

<div class="post-metadata">

**Author:** ![brxshncy](https://avatars.discourse-cdn.com/v4/letter/b/ecc23a/32.png) [@brxshncy](https://forums.rocket.chat/u/brxshncy)\
**Post date:** [March 17, 2022, 11:02am UTC](https://forums.rocket.chat/t/custom-css-not-loading/12974/4 "2022-03-17T11:02:52Z")

</div>

Hello, any solution for this? this is also my issue

---

<div class="post-metadata">

**Author:** ![billynoah](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@billynoah](https://forums.rocket.chat/u/billynoah)\
**Post date:** [September 13, 2022, 5:42pm UTC](https://forums.rocket.chat/t/custom-css-not-loading/12974/5 "2022-09-13T17:42:27Z")

</div>

I am also having this issue. CSS gets saved in settings but css-theme.css does not get updated with new styles:

```auto
+----------------------------------------------------------------+
| SERVER RUNNING |
+----------------------------------------------------------------+
| |
| Rocket.Chat Version: 5.1.1 |
| NodeJS Version: 14.19.3 - x64 |
| MongoDB Version: 5.0.11 |
| MongoDB Engine: wiredTiger |
| Platform: linux |
| Process Port: 3000 |
| ReplicaSet OpLog: Enabled |
| Commit Hash: 39baddf44d |
| Commit Branch: HEAD |
| |
+----------------------------------------------------------------+
```

---

<div class="post-metadata">

**Author:** ![forzasalva](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@forzasalva](https://forums.rocket.chat/u/forzasalva)\
**Post date:** [November 27, 2024, 5:11pm UTC](https://forums.rocket.chat/t/custom-css-not-loading/12974/6 "2024-11-27T17:11:07Z")

</div>

Did you find any solution for this?

---

<div class="post-metadata">

**Author:** ![reetp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/reetp/32/5546_2.png) [@reetp](https://forums.rocket.chat/u/reetp)\
**Post date:** [November 27, 2024, 9:14pm UTC](https://forums.rocket.chat/t/custom-css-not-loading/12974/7 "2024-11-27T21:14:54Z")

</div>

Zero point in reponding to a 2 year old thread on a way out of date version…
