In order to make the library more SSG/SSR compatible we need to use [Document from DI](https://angular.io/api/common/DOCUMENT) instead of a global document object. Need to reimplement `isValidCSSColor` function as well https://github.com/AbsaOSS/cps-mdoc-viewer/pull/12