I am a newbie for Ionic and sass framework.
I am trying add custom colors for my app so i am trying to update ionic.app.scss
file located inside scss folder.
So , if i try to override an existing variable say :
$assertive : #F35C6 !default;
it works fine but if i create a custom color say :
$my-custom-color : #F35C6F !default;
It doesn't work . Am i doing it correctly , Please Help!
Thanks.
EDIT :
ionic.app.scss file :
@charset "UTF-8";
/*
To customize the look and feel of Ionic, you can override the variables
in ionic's _variables.scss file.
For example, you might change some of the default colors:
$light: #fff !default;
$stable: #f8f8f8 !default;
$positive: #387ef5 !default;
$calm: #11c1f3 !default;
$balanced: #33cd5f !default;
$energized: #ffc900 !default;
$assertive: #ef473a !default;
$royal: #886aea !default;
$dark: #444 !default;
*/
$my-custom-color : #F35C6F !default;
// The path for our ionicons font files, relative to the built CSS in www/css
$ionicons-font-path: "../lib/ionic/fonts" !default;
// Include all of Ionic
@import "../www/lib/ionic/scss/ionic";
Usage :
<label class="item item-input">
<i class="icon ion-at placeholder-icon my-custom-color"></i>
<input type="email" placeholder="Email ID">
</label>