mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-29 06:15:24 -04:00
🧹 Bitmapper organized
All bitmaps renderer are moved to `<root>/bitmapper` directory. That's help us for `Makefile`.
This commit is contained in:
parent
f819ff2e00
commit
c92343ece3
161 changed files with 503 additions and 2105 deletions
27
bitmapper/packages/modern/src/colors.ts
Normal file
27
bitmapper/packages/modern/src/colors.ts
Normal file
|
@ -0,0 +1,27 @@
|
|||
import { ThemeColors } from "bibata-core/src/types";
|
||||
|
||||
// Common Colors
|
||||
const black = "#000000";
|
||||
const white = "#FFFFFF";
|
||||
const amber = "#FF8300";
|
||||
const richBlack = "#001524";
|
||||
|
||||
const themeColors: ThemeColors = {
|
||||
Amber: {
|
||||
base: amber,
|
||||
outline: white,
|
||||
watch: {
|
||||
background: richBlack
|
||||
}
|
||||
},
|
||||
Classic: {
|
||||
base: black,
|
||||
outline: white
|
||||
},
|
||||
Ice: {
|
||||
base: white,
|
||||
outline: black
|
||||
}
|
||||
};
|
||||
|
||||
export { themeColors };
|
22
bitmapper/packages/modern/src/index.ts
Normal file
22
bitmapper/packages/modern/src/index.ts
Normal file
|
@ -0,0 +1,22 @@
|
|||
import { createBitmaps } from "bibata-core";
|
||||
import { themeColors } from "./colors";
|
||||
import { resolve } from "path";
|
||||
|
||||
const main = async () => {
|
||||
const projectRoot = resolve("../../");
|
||||
const args = {
|
||||
themeName: "Bibata-Modern",
|
||||
svgDir: resolve("./src/svg"),
|
||||
bitmapsDir: resolve(projectRoot, "bitmaps"),
|
||||
themeColors
|
||||
};
|
||||
|
||||
try {
|
||||
await createBitmaps(args);
|
||||
process.exit(0);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
};
|
||||
|
||||
main();
|
Loading…
Add table
Add a link
Reference in a new issue