diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 8e9833e4..cd5d9817 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -1,3 +1,4 @@ +import { BitmapsGenerator } from "./BitmapsGenerator"; import { ThemeColors } from "./types"; const createBitmaps = async (config: { @@ -6,8 +7,21 @@ const createBitmaps = async (config: { themeName: string; bitmapsDir: string; }) => { - // TODO: - console.log(config); + for (let [variant] of Object.entries(config.themeColors)) { + const colors = config.themeColors[variant]; + const source = { + svgDir: config.svgDir, + colors + }; + + const themeBitmaps = new BitmapsGenerator( + source, + config.themeName, + config.bitmapsDir + ); + + themeBitmaps.generate(); + } }; export { createBitmaps };