How can i select HTML elements like in jQuery?

Then please be more specific because your OP clearly has an example containing the background-color. That’s why I don’t like screenshots, because I have to search in your code what you’re trying to achieve instead of reading it out of your post. If you actually had read the documentation I just posted, you would have noticed how you could override the ionic sass variables. Which you obviously are trying to do because you want a different text color.

Add this to your variables.scss (it holds your apps main variables for styling).

$toolbar-md-title-text-color: pink;
$toolbar-ios-title-text-color: purple;

If you want to maintain the variable from your $colors variable, try this:

$toolbar-md-title-text-color: color($colors, copyright);

If you only want that specific toolbar-title with a different color, just use some regular css and add this to the compnent it belongs to:

.toolbar-title-md, .toolbar-title-ios {
   color: color($colors, copyright)
}

If you want to do it dynamically, use ngClass.

2 Likes