Those could help
- elixir - Apply CSS class on element if current page in Phoenix - Stack Overflow
- How to highlight a current link in a navbar? algorithm
You just need to change the “active” class name to be the color you want and the nil
or default value to be the other shade.