Primary tag

Hi all,
I’m starting on ionic 2, coming from an angular1 background, and I would like to modify the behaviour (back and fore colors mainly) of the primary tag, as in

<ion-toolbar primary>

Is it a directive ? I couldn’t find where it’s defined in the ionic2 source, any hint on where to look it up, and how to define my own ?


This is just a css property.

[primary] {
  background: red;

You should take a look at the theming docs.

Ho I didn’t know this syntax! It makes sense now.
Thanks a lot for your answer.