SpinaCMS / Spina

Spina CMS
http://www.spinacms.com
Other
2.19k stars 405 forks source link

Updating config.primary_color doesn't update the color #524

Closed mhoelter closed 2 years ago

mhoelter commented 4 years ago

I've updated the initializer file config/initializers/spina.rb config variable to a new hex color value, but the color won't change. I've tried:

The odd thing is I updated the config with a new hex code (#4af2a1) early on and at some point it updated to use that color. But now nothing I've tried will change it from that color.

Thanks!

mhoelter commented 4 years ago

I've also tried opening the website in a different browser to check it's not a cache issue.

Bramjetten commented 4 years ago

Same here. I actually never use this (since we chose purple in the first place, hah!) but I guess it's because the config in spina.rb initializer isn't loaded before the assets are compiled. Perhaps this changed in a recent update to Rails.

mhoelter commented 4 years ago

@Bramjetten Thanks for your reply. Is there a CSS rule I can add to override the $primary-color variable?

Bramjetten commented 4 years ago

I'm afraid not, you'd have to override all values where $primary-color is referenced (quite a lot of places!)

That said: if more people need this functionality we should look into restoring it.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.