you can use [dom.importCssString](https://github.com/ajaxorg/ace/blob/master/lib/ace/lib/dom.js#L124) for this