lukin / keywind

Keywind is a component-based Keycloak Login Theme built with Tailwind CSS
Apache License 2.0
737 stars 261 forks source link

Card background colour doesnt update #68

Closed joehill1810 closed 9 months ago

joehill1810 commented 9 months ago

Please tell me if I'm not doing something right, but I'm trying to update the main card colour from white (bg-white) to a different colour (emerald in this case), but doing this just makes the card invisible.

Screenshot 2023-10-08 at 14 01 21 Screenshot 2023-10-08 at 13 58 53
paulwer commented 9 months ago

have you issued the build command after changing this and before deployment? it sounds like, the used tailwind is not available within production packed css.

Build - Readme.md ## Build When you're ready to deploy your own theme, run the build command to generate a static production build. ```bash pnpm install pnpm build ``` To deploy a theme as an archive, create a JAR archive with the theme resources. ```bash pnpm build:jar ```
joehill1810 commented 9 months ago

have you issued the build command after changing this and before deployment? it sounds like, the used tailwind is not available within production packed css.

Build - Readme.md

Yep! Editied card.ftl with the update, ran the build command and moved the folder into the appropriate themes folder.

paulwer commented 9 months ago

I wasn't able to reprduce. I did the following:

  1. change bg-white to bg-emerald-800
  2. run command: npm run build && npm run build:jar (after the first command => the styles.css contains bg-emerald-800 as class)
  3. deploy via docker

result in browser: Unbenannt

please check if you have any caching or ttl in place, which can result in this behavior. (go and inspect the webpage to be sure)

if this is not a keywind related issue, 8 guess you can close this issue :)