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
- Log into your Drupal 8 administrative dashboard.
- Select Menu from the top menu bar.
- Next, click on Appearance from the secondary menu that appears.
- 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.
- 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.
- 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.
Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!