You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-01-19 13:06:05

stamajkystar
Member
Registered: 2024-01-19
Posts: 2

Color change

Hi, I would like to change the colors to match the corporate identity. If I edit the hex code in the css of each palette, nothing happens.
Version 10.0.10
Can I ask for some advice?
Thank you,

Offline

#2 2024-01-19 14:20:42

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,813
Website

Re: Color change

You could make a new palette by simply adding a new scss file to the palettes folder with your theme.
GLPI 10.1 will bring improved custom theme support, but it is still very possible to do now.

You also have the UI Customization tab located in each entity form which lets you put custom CSS.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#3 2024-01-22 08:47:12

stamajkystar
Member
Registered: 2024-01-19
Posts: 2

Re: Color change

Thank you for your help, but when I make a new palette, where I just copy the code from another palette, after selecting the new palette in the settings, the site appears as if without css.

Offline

#4 2024-01-22 17:34:01

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,813
Website

Re: Color change

Try to clear the GLPI server cache and then re-compile the CSS using the GLPI CLI tool under the same account as your web server.
For example, from inside the GLPI folder:
sudo -u www-data bin/console cache:clear
sudo -u www-data bin/console build:compile_scss

You may need to clear the cache in your browser too.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

Board footer

Powered by FluxBB