Google News
logo
Ionic - Interview Questions
How will you add a custom color to the existing list of colors in Ionic?
Every Ionic project comes with a set of pre-installed colours. This is how those colours are programmed :
 
* Navigate to the project/src/theme/variables.scss folder in your Ionic project.

* There will be a variable named $colours here that will hold the names of the various colours as well as their hexadecimal colour codes.

* Color codes for default colours can be changed, and new colour names and hexadecimal codes can be added.
Advertisement