Admin themes model : What is it for? #307
-
|
Hello, what is the admin theme for? I can't figure it out or customize it directly. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Hi @gabigab117 , with this model you can create themes overriding all css variables. If you create a theme and you activate it, the Theme content is injected INSTEAD OF https://github.com/otto-torino/django-baton/blob/master/baton/static/baton/css/root.css So you can override all variables but also add styles at your will. https://github.com/otto-torino/django-baton?tab=readme-ov-file#themes-customization |
Beta Was this translation helpful? Give feedback.
-
|
So, I can overide css just in the admin ? without files ? |
Beta Was this translation helpful? Give feedback.
-
|
Exactly. The only thing that it's a bit tricky due to how boostrap sass compilation is performed is changing the primary color everywere. Setting As stated in the documentation pay attention, the code inserted is considered safe! Bad guys could inject any kind of things, it's more a superadmin feature. |
Beta Was this translation helpful? Give feedback.



Hi @gabigab117 ,
with this model you can create themes overriding all css variables. If you create a theme and you activate it, the Theme content is injected INSTEAD OF https://github.com/otto-torino/django-baton/blob/master/baton/static/baton/css/root.css
So you can override all variables but also add styles at your will.
https://github.com/otto-torino/django-baton?tab=readme-ov-file#themes-customization