mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-24 03:56:58 -04:00
🧰 Seprate Configs and Colors
This commit is contained in:
parent
316c3ea5af
commit
b5686dc5e2
3 changed files with 31 additions and 50 deletions
|
@ -1,61 +1,39 @@
|
|||
import path from "path";
|
||||
import { ColorSchema } from "./types";
|
||||
|
||||
// --------------------------------------- Paths 🔗
|
||||
|
||||
const rawSvgsDir = path.resolve("svg");
|
||||
|
||||
// --------------------------------------- Config 🔧
|
||||
const schemesPath = path.resolve("schemes");
|
||||
const projectRoot = path.resolve("../../");
|
||||
const bitmapsPath = path.resolve(projectRoot, "bitmaps");
|
||||
|
||||
const watchKeyColor = "#FF0000";
|
||||
const baseKeyColor = "#00FF00";
|
||||
const outlineKeyColor = "#0000FF";
|
||||
|
||||
// --------------------------------------- Colors✨
|
||||
|
||||
// Common Colors
|
||||
const black = "#000000";
|
||||
const white = "#FFFFFF";
|
||||
|
||||
// Schemes Colors
|
||||
const amber = "#FF8300";
|
||||
const adwaita = "#272728";
|
||||
const breezeDark = "#4A4C49";
|
||||
|
||||
// --------------------------------------- Schemes🌈
|
||||
// const amber = "#FF8300";
|
||||
// const adwaita = "#272728";
|
||||
// const breezeDark = "#4A4C49";
|
||||
|
||||
const colorSchemes: ColorSchema = {
|
||||
Adwaita: {
|
||||
base: adwaita,
|
||||
outline: white
|
||||
},
|
||||
Amber: {
|
||||
base: amber,
|
||||
outline: white
|
||||
},
|
||||
Breeze: {
|
||||
base: breezeDark,
|
||||
outline: white
|
||||
},
|
||||
Classic: {
|
||||
base: black,
|
||||
outline: white
|
||||
},
|
||||
// Adwaita: {
|
||||
// base: adwaita,
|
||||
// outline: white
|
||||
// },
|
||||
// Amber: {
|
||||
// base: amber,
|
||||
// outline: white
|
||||
// },
|
||||
// Breeze: {
|
||||
// base: breezeDark,
|
||||
// outline: white
|
||||
// },
|
||||
// Classic: {
|
||||
// base: black,
|
||||
// outline: white
|
||||
// },
|
||||
Ice: {
|
||||
base: white,
|
||||
outline: black
|
||||
}
|
||||
};
|
||||
|
||||
export {
|
||||
rawSvgsDir,
|
||||
bitmapsPath,
|
||||
schemesPath,
|
||||
watchKeyColor,
|
||||
baseKeyColor,
|
||||
outlineKeyColor,
|
||||
colorSchemes
|
||||
};
|
||||
export { watchKeyColor, baseKeyColor, outlineKeyColor, colorSchemes };
|
||||
|
|
|
@ -2,14 +2,8 @@ import fs from "fs";
|
|||
import path from "path";
|
||||
|
||||
import { staticCursors, animatedCursors } from "../cursors.json";
|
||||
import {
|
||||
schemesPath,
|
||||
bitmapsPath,
|
||||
baseKeyColor,
|
||||
outlineKeyColor,
|
||||
watchKeyColor,
|
||||
rawSvgsDir
|
||||
} from "../color";
|
||||
import { baseKeyColor, outlineKeyColor, watchKeyColor } from "../color";
|
||||
import { rawSvgsDir, schemesPath, bitmapsPath } from "../paths";
|
||||
import { ColorSchema, Config } from "../types";
|
||||
|
||||
// --------------------------------------- Generate Configs 🛠
|
||||
|
|
9
packages/round/src/paths.ts
Normal file
9
packages/round/src/paths.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { resolve } from "path";
|
||||
|
||||
const rawSvgsDir = resolve("svg");
|
||||
|
||||
const schemesPath = resolve("schemes");
|
||||
const projectRoot = resolve("../../");
|
||||
const bitmapsPath = resolve(projectRoot, "bitmaps");
|
||||
|
||||
export { rawSvgsDir, schemesPath, projectRoot, bitmapsPath };
|
Loading…
Add table
Add a link
Reference in a new issue