Just look up the syntax for extending classes for the preprocessor of your choice. This is such an important part of the preprocessors that it'll usually be on the landing page for the documentation (sometimes above the fold).
I'd recommend SCSS if you're just getting started.
I'd recommend SCSS if you're just getting started.