# Ion-header and ion-footer with different background colors

**URL:** <https://forum.ionicframework.com/t/ion-header-and-ion-footer-with-different-background-colors/129360>\
**Category:** ionic-v3\
**Created:** [April 30, 2018, 5:15pm UTC](https://forum.ionicframework.com/t/ion-header-and-ion-footer-with-different-background-colors/129360 "2018-04-30T17:15:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![swarren](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/swarren/32/65993_2.png) [@swarren](https://forum.ionicframework.com/u/swarren)\
**Post date:** [April 30, 2018, 5:15pm UTC](https://forum.ionicframework.com/t/ion-header-and-ion-footer-with-different-background-colors/129360/1 "2018-04-30T17:15:03Z")

</div>

In our app we have an ion-header and an ion-footer with a blue background for the header and an orange background for the footer for branding purposes. I set the background color using:

```
$toolbar-background: $blue;

```

Then I overrode the color in the footer with the following SCSS:

```
ion-footer, ion-toolbar {
    ion-title{
        text-align: center;
        background-color: $orange !important;
    }
}

```

This works when using `ionic serve` in Chrome and on IOS but on Android it renders like the image below. Does anyone know a way around this?

 ![29](https://global.discourse-cdn.com/ionicframework/original/3X/e/6/e66de2d56a7ab7701cf331a52c04e6490788d26d.png)

---

<div class="post-metadata">

**Author:** ![robinyo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/robinyo/32/115964_2.png) [@robinyo](https://forum.ionicframework.com/u/robinyo)\
**Post date:** [April 30, 2018, 9:08pm UTC](https://forum.ionicframework.com/t/ion-header-and-ion-footer-with-different-background-colors/129360/2 "2018-04-30T21:08:43Z")

</div>

Try using a theme: [https://robferguson.org/blog/2017/11/12/theming-your-ionic-3-app/](https://robferguson.org/blog/2017/11/12/theming-your-ionic-3-app/)

```auto

.ios, .md, .wp {

  .orange-theme {

    $colors: (
      primary: $orange,
    );

    ion-header {
      background-color: map-get($colors, primary);
    }

    ion-navbar {
      background-color: map-get($colors, primary);
    }

    ion-searchbar {
      background-color: map-get($colors, primary);
    }

    .toolbar-background {
      background-color: map-get($colors, primary);
    }
    .toolbar-title {
      color: $white;
    }

    ...

  }

}

```

[![](https://sea1.discourse-cdn.com/ionicframework/uploads/default/optimized/3X/5/8/581a4b75473f44f053db6088e170b4ac61834ad4_1_281x499.PNG) ](https://sea1.discourse-cdn.com/ionicframework/uploads/default/optimized/3X/5/8/581a4b75473f44f053db6088e170b4ac61834ad4_1_281x499.PNG)

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:37pm UTC](https://forum.ionicframework.com/t/ion-header-and-ion-footer-with-different-background-colors/129360/3 "2021-07-19T21:37:27Z")

</div>

Closed on July 19, 2021, 9:37pm UTC


