import { createJson2SvgCLI } from "kaavio/es5/createJson2SvgCLI" ; const path = require ( "path" ) ; const npmPackage = require ( "../package.json" ) ; import * as themePlain from "./themes/plain/theme" ; import * as themeDark from "./themes/dark/theme" ; const fs = require ( "fs" ) ; const DiagramCustomStylePlain = fs . readFileSync ( path . resolve ( __dirname , "./themes/styles/Diagram.plain.css" ) ) ; const DiagramCustomStyleDark = fs . readFileSync ( path . resolve ( __dirname , "./themes/styles/Diagram.dark.css" ) ) ; themePlain [ "diagramStyle" ] = DiagramCustomStylePlain ; themeDark [ "diagramStyle" ] = DiagramCustomStyleDark ; createJson2SvgCLI ( npmPackage , [ { name : "plain" , theme : themePlain } , { name : "dark" , theme : themeDark } ] ) ;