elky / django-flat-theme

A flat theme for Django admin interface. Modern, fresh, simple.
Other
413 stars 46 forks source link

Custom colors and logo #9

Closed fabiocaccamo closed 8 years ago

fabiocaccamo commented 9 years ago

Hi, thanks for this theme, I think it is one of the best and modern Django admin themes available.

Generally for each client I add a custom logo and I set 2 custom colors, a light and a dark one.

It would very nice having the possibility to customize these 3 things using settings.py or by providing an small admin panel for the theme.

What do you think about it?

elky commented 9 years ago

Well I think it's great. I currently have the same task for one of my clients but this feature seems not easy to realize. As a perfect solution I would like to render color variables to the separate css file but after that we have to make collectstatic command when you click 'Save' in admin (or when you change var in settings.py). So this feature requires quite good python background.

fabiocaccamo commented 9 years ago

Could you just create the separate css file with color variables and logo url? After that I will do the python to edit the css variables from the admin interface.

edvm commented 9 years ago

+1 to this request ^^

fabiocaccamo commented 8 years ago

I did it, check it: https://github.com/fabiocaccamo/django-admin-interface

edvm commented 8 years ago

@fabiocaccamo great! could you please push a pull request to tihs repo? :) (my apologies if you already did it :)

fabiocaccamo commented 8 years ago

Thanks! I'm sorry but it's not possible because django-admin-interface is not a fork of django-flat-theme. I used django-flat-theme as 'base-theme' and it is installed as a dependency lib, in this way in a future it will be possible to switch between base-themes if needed.

elky commented 8 years ago

This is awesome, thanks @fabiocaccamo!