How does scss get the value of the attribute of this element?

how does scss get the value of the background color of the current element?
the background color is dynamic. I get this background color every time, and then deepen the background color to make a border

.
Mar.10,2021

this is about js

Menu