mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-25 04:24:33 -04:00
🚀 Bitmaps generator added
This commit is contained in:
parent
992ad041ff
commit
b9faba709a
1 changed files with 16 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
import { BitmapsGenerator } from "./BitmapsGenerator";
|
||||||
import { ThemeColors } from "./types";
|
import { ThemeColors } from "./types";
|
||||||
|
|
||||||
const createBitmaps = async (config: {
|
const createBitmaps = async (config: {
|
||||||
|
@ -6,8 +7,21 @@ const createBitmaps = async (config: {
|
||||||
themeName: string;
|
themeName: string;
|
||||||
bitmapsDir: string;
|
bitmapsDir: string;
|
||||||
}) => {
|
}) => {
|
||||||
// TODO:
|
for (let [variant] of Object.entries(config.themeColors)) {
|
||||||
console.log(config);
|
const colors = config.themeColors[variant];
|
||||||
|
const source = {
|
||||||
|
svgDir: config.svgDir,
|
||||||
|
colors
|
||||||
|
};
|
||||||
|
|
||||||
|
const themeBitmaps = new BitmapsGenerator(
|
||||||
|
source,
|
||||||
|
config.themeName,
|
||||||
|
config.bitmapsDir
|
||||||
|
);
|
||||||
|
|
||||||
|
themeBitmaps.generate();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export { createBitmaps };
|
export { createBitmaps };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue