Keycloak custom theme issue on k8s

I am using k8s to run my keycloak. I want to apply custom theme for keycloak. I followed the official documentation on how to do that. I opened the shell of my running pod then created a /providers directory inside /opt/jboss/keycloak. Then I copied the jar folder that is my custom theme inside this providers folder but it does not work.
But when I just overwrite the login or any other folder within the base directory, the changes are made but the whole CSS is disturbed. I get a big custom logo that fills the entire screen.
Help is much appreciated