Variables organizing suggestions

starting to play around and organizing variables. I’m trying to figure out how and by what to organize the styles and components that i have already in the system. tried to follow 2 videos from figma but they are missing a lot of info…ex: how or by what to organize states colors?
Would love to see some examples from complex systems and not by a solo page