diff --git a/packages/modern/src/config.ts b/packages/modern/src/config.ts deleted file mode 100644 index 43317fa6..00000000 --- a/packages/modern/src/config.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { resolve } from "path"; -import { readdirSync } from "fs"; - -const rawSvgsDir = resolve("./src/svg"); -const staticCursorsDir = resolve(rawSvgsDir, "static"); -const animatedCursorsDir = resolve(rawSvgsDir, "animated"); - -const staticCursors = readdirSync(staticCursorsDir).map((f) => - resolve(staticCursorsDir, f) -); - -const animatedCursors = readdirSync(animatedCursorsDir).map((f) => - resolve(animatedCursorsDir, f) -); - -const schemesPath = resolve("schemes"); -const projectRoot = resolve("../../"); -const bitmapsPath = resolve(projectRoot, "bitmaps"); - -export { - rawSvgsDir, - schemesPath, - projectRoot, - bitmapsPath, - staticCursors, - animatedCursors -}; diff --git a/packages/modern/src/index.ts b/packages/modern/src/index.ts index 33de76dc..bebce5cb 100644 --- a/packages/modern/src/index.ts +++ b/packages/modern/src/index.ts @@ -1,6 +1,14 @@ import { createBitmaps } from "bibata-core"; -import * as pathConfig from "./config"; -import { colorSchemes } from "./color"; +import { themeColors } from "./color"; -const themeName = "Bibata-Modern"; -createBitmaps({ colorSchemes, pathConfig, themeName }); +import { resolve } from "path"; + +const projectRoot = resolve("../../"); +const args = { + themeName: "Bibata-Modern", + svgDir: resolve("./src/svg"), + bitmapsDir: resolve(projectRoot, "bitmaps"), + themeColors +}; + +createBitmaps(args);