Theming: CSS selector color inheriting

I’m working on porting over a theme from a different code editor and currently working on setting up the rules for CSS. In the screenshot provided below, is it possible for the selectors on .class and #id to inherit the colors that are set for style.selector.identifier.class and

Screen Shot 2021-06-13 at 7.50.49 PM