It requires two short snipped of code injected into index.php inside your joomla template.
All you need is add :
which takes active menu object (home, typogrphy, whatever...) and later render it into body class
<body class="<?php echo $active->alias;?>"
Next step is to add styles.
It gives you great flexibility to your joomla design.