Customizing theme colors in Drupal 8

While themes come with their own predefined color sets that you can choose from, you may want to select some custom colors for your site. Check out the instructions below as we guide you on how to customize theme colors in Drupal 8.

How to customize theme colors in Drupal 8

  1. Log into your Drupal 8 administrative dashboard.
  2. click on the Menu item

    Select Menu from the top menu bar.

  3. select the Appearance option

    Next, click on Appearance from the secondary menu that appears.

  4. the configuration screen for the module

    You will now be on the main Appearance page where you will see a list of all the themes that are available. Find the theme you want to work with and click on the Settings link for that theme. In our example, we will be working with our active theme, Bartik.

  5. the configuration screen for the module

    From the theme settings page you will see a Color Scheme section at the top containing a color wheel and several fields that have hexadecimal codes in them for colors. These fields can be altered by either typing new codes or by using the color wheel to the right to select a color after clicking on the field you want to alter. There are also small lock icons that you can click. By ‘locking’ two fields together, they both will change as you alter the color, keeping them in proper contrast. In our example, we altered the Header background top for the Bartik theme from the original #0779bk to a more purplish #722cf5. You can see how your color change will look with the Preview section just below the fields.

  6. Once you have completed the color changes, click on the Save Configuration button at the bottom to save and activate your new settings. Below are before and after screenshots of the changes we made in our example.
    Before After
    the configuration screen for the module

    the configuration screen for the module

Leave a Reply