Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70439

Can we globally style elements in Ionic 4?

$
0
0

@peterjc wrote:

I am porting my Ionic 3 application to Ionic 4.

In the Ionic 3 version, I set styles of quite a few of the elements globally, so there is only ever one place to change them all should the need arise.

For example, in Ionic 3 , in my app.scss I would have…

.toolbar-background{
      background-color: color($colors, secondary-lite);
    }

}
etc

Can I do something similar in Ionic 4?

Also (if possible), where would I put such global styles…
global.scss, variables.scss, somewhere else?

I know I can change the toolbar color, as in the following…

<ion-header>
  <ion-toolbar color="primary">
    <ion-title color='light'>

But is there a way to just do this to every ion-toolbar without having to add the color attribute to each one?

Thanks in advance

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70439

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>