From 05755fd92d5f1975391f5d9694c6170e8e349bd9 Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+ful1e5@users.noreply.github.com> Date: Mon, 28 Sep 2020 20:38:04 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Bibata=20Original?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/original/src/{color.ts => colors.ts} | 6 ++--- packages/original/src/config.ts | 27 ------------------- packages/original/src/index.ts | 16 ++++++++--- 3 files changed, 15 insertions(+), 34 deletions(-) rename packages/original/src/{color.ts => colors.ts} (71%) delete mode 100644 packages/original/src/config.ts diff --git a/packages/original/src/color.ts b/packages/original/src/colors.ts similarity index 71% rename from packages/original/src/color.ts rename to packages/original/src/colors.ts index ca0794f8..9649a298 100644 --- a/packages/original/src/color.ts +++ b/packages/original/src/colors.ts @@ -1,11 +1,11 @@ -import { ColorSchemes } from "bibata-core/src/types"; +import { ThemeColors } from "bibata-core/src/types"; // Common Colors const black = "#000000"; const white = "#FFFFFF"; const amber = "#FF8300"; -const colorSchemes: ColorSchemes = { +const themeColors: ThemeColors = { Amber: { base: amber, outline: white, @@ -23,4 +23,4 @@ const colorSchemes: ColorSchemes = { } }; -export { colorSchemes }; +export { themeColors }; diff --git a/packages/original/src/config.ts b/packages/original/src/config.ts deleted file mode 100644 index 43317fa6..00000000 --- a/packages/original/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/original/src/index.ts b/packages/original/src/index.ts index 2ea86b34..1ae77606 100644 --- a/packages/original/src/index.ts +++ b/packages/original/src/index.ts @@ -1,6 +1,14 @@ import { createBitmaps } from "bibata-core"; -import * as pathConfig from "./config"; -import { colorSchemes } from "./color"; +import { themeColors } from "./colors"; -const themeName = "Bibata-Original"; -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);