export default () => { const css = `${App.configDir}/theme.css`; const scss = `${App.configDir}/theme.sass`; let themeExists = true; try { Utils.readFile(scss); Utils.exec(`sassc ${scss} ${css}`); } catch (error) { console.error(error); themeExists = false; } Utils.monitorFile( `${App.configDir}/theme.sass`, function () { Utils.exec(`sassc ${scss} ${css}`); App.resetCss(); App.applyCss(css); }, ); return themeExists ? css : undefined; };