Checking of body class in sass
<p>I have defined a variable in sass i.e $title-color: red now I want to change it to based on the class of body e.g on home page body is having class .home so color of all header elements should be for red and if it body is having class .about then that variable should be having green color.</p>

<p>How can I achieve this in SASS.  </p>