I have a called spn1, which has some style from inline + CSS file.
spn1
I have another called spn2
spn2
If you just want the CSS, you can do the following:
let cssText = document.defaultView.getComputedStyle( $("#elementID"), "").cssText;
Then you can apply that to any new element.