Custom button card highlight

Hello,

I have a button bar with several buttons (custom-buuton-card) wich link to my rooms (pages).

Is there a way to highlite the repective button when I am on the page linked to that spcific button?

Ex.: When I press the button for “Kitchen” I need the button to change color until I press another button to “go” to another room (page).

Create input_booleans for each button and an automation that turns on the input_boolean for the pressed button and turns off the rest of those button related input_booleans.

I haven’t had the opportunity to use input_booleans until now. I will try what you recommended. Thank you!