Hi Spare Time, I definitely agree, the example I gave on DRY it just a basic example just to point out how DRY works in plain English since we have readers from a different level in Web Development.
You can always make a function or class depends on your choice, then you can just import your CSS/SCSS file and call it.
Thank you for your precise feedback, good luck!