Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

Set CSS Custom Properties using SCSS variables

$
0
0

Is it possible to set custom properties such as ion-content’s “–background” using SCSS variables?

I have tried like this

ion-content{
–ion-background-color: $black-blue;
}

but it does nothing, where as this works.

ion-content{
border-color: $black-blue;
–ion-background-color: #00BCD4;
}

The border-color is set to my $black-blue color and the background colour comes through so I know my scss variable is valid

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



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