# How do I customize the resources(CSS,JS etc.) in the themes

**URL:** <https://forum.keycloak.org/t/how-do-i-customize-the-resources-css-js-etc-in-the-themes/14642>\
**Category:** Extending the server\
**Created:** [March 29, 2022, 12:08pm UTC](https://forum.keycloak.org/t/how-do-i-customize-the-resources-css-js-etc-in-the-themes/14642 "2022-03-29T12:08:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![John1](https://avatars.discourse-cdn.com/v4/letter/j/e9bcb4/32.png) [@John1](https://forum.keycloak.org/u/John1)\
**Post date:** [March 29, 2022, 12:08pm UTC](https://forum.keycloak.org/t/how-do-i-customize-the-resources-css-js-etc-in-the-themes/14642/1 "2022-03-29T12:08:21Z")

</div>

Hi,  
I need help on how to customize the Login and the Registration page.  
I have created a new theme by extending it from Base Theme.  
I flowed the Docs step by step still I am unable to change the appearance by modifying CSS And JS  
Now I am unable to distinguish which major classes are used to change the appearance of the pages.  
It would be a great help if someone can help me out

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![rmoqpd5t](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/rmoqpd5t/32/2208_2.png) [@rmoqpd5t](https://forum.keycloak.org/u/rmoqpd5t)\
**Post date:** [March 30, 2022, 2:08am UTC](https://forum.keycloak.org/t/how-do-i-customize-the-resources-css-js-etc-in-the-themes/14642/2 "2022-03-30T02:08:38Z")

</div>

Have you disabled caching? Otherwise you have to stop and start the service in order to see your changes. You might have to stop and start the service anyway in order to see CSS changes. Some time ago there was an issue logged in JIRA about CSS remaining cached despite these settings, I’m not sure it’s current status.

```auto
<theme>
    <staticMaxAge>-1</staticMaxAge>
    <cacheThemes>false</cacheThemes>
    <cacheTemplates>false</cacheTemplates>
    ...
</theme>

```

Also, ensure you’ve set the theme in the realm and/or client.

---

<div class="post-metadata">

**Author:** ![John1](https://avatars.discourse-cdn.com/v4/letter/j/e9bcb4/32.png) [@John1](https://forum.keycloak.org/u/John1)\
**Post date:** [March 30, 2022, 5:07am UTC](https://forum.keycloak.org/t/how-do-i-customize-the-resources-css-js-etc-in-the-themes/14642/3 "2022-03-30T05:07:43Z")

</div>

Yes, I have disabled the caching. I also have restarted the services just to be sure.  
and I also have set the theme in both realm and client. Although I can see the changes done in the Registration page(Custom attribute).  
Yet the changes regarding the CSS were not reflected.  
Just to be extra sure I even tried to do exactly as said in the Docs

 ![style](https://global.discourse-cdn.com/free1/uploads/keycloak/original/2X/7/7e7921a9fa3b42d21f4499a3cd13c30ac493f9c7.png)  
This was also not reflected.

---

<div class="post-metadata">

**Author:** ![mbonn](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/mbonn/32/5755_2.png) [@mbonn](https://forum.keycloak.org/u/mbonn)\
**Post date:** [March 30, 2022, 6:04am UTC](https://forum.keycloak.org/t/how-do-i-customize-the-resources-css-js-etc-in-the-themes/14642/4 "2022-03-30T06:04:18Z")

</div>

Static files like css, images, js, … are also cached in `.../standalone/tmp/kc-gzip-cache/...`. And of course, in your browser.
