🚀 Bibata Modern

This commit is contained in:
ful1e5 2020-09-28 20:36:08 +05:30
parent 5096595e69
commit dac9329de3
2 changed files with 12 additions and 31 deletions

View file

@ -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
};

View file

@ -1,6 +1,14 @@
import { createBitmaps } from "bibata-core"; import { createBitmaps } from "bibata-core";
import * as pathConfig from "./config"; import { themeColors } from "./color";
import { colorSchemes } from "./color";
const themeName = "Bibata-Modern"; import { resolve } from "path";
createBitmaps({ colorSchemes, pathConfig, themeName });
const projectRoot = resolve("../../");
const args = {
themeName: "Bibata-Modern",
svgDir: resolve("./src/svg"),
bitmapsDir: resolve(projectRoot, "bitmaps"),
themeColors
};
createBitmaps(args);