Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change navigation theme color in GitLab

Tags:

gitlab

The default Indigo color for GitLab doesn't suit my Header Logo. I want to change it to a lighter color. Are there any options to change the navigation theme color or can it changed programmatically?

like image 467
Rajana Deepak Avatar asked Jun 28 '18 10:06

Rajana Deepak


2 Answers

The navigation theme color cannot be changed for everyone at once. It can only changed for individual profile.

As mentioned in this document of Gitlab,

  1. Click your avatar icon in the top right corner, select Settings
  2. Choose Preferences from the left sidebar.
  3. Select a color on Navigation theme and click Save Changes
like image 136
Rajana Deepak Avatar answered Nov 04 '22 04:11

Rajana Deepak


You can change the default theme (for new users) by setting

gitlab_rails['gitlab_default_theme'] = THEME_NUMBER

in /etc/gitlab/gitlab.rb. Afterwards run gitlab-ctl reconfigure. See here for the theme numbers. E.g. 3 corresponds to the Light theme.

like image 7
Markus Strauss Avatar answered Nov 04 '22 05:11

Markus Strauss