mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-22 11:15:17 -04:00
🧹 render Config
This commit is contained in:
parent
a8e0f2121f
commit
3ad0126e66
1 changed files with 8 additions and 10 deletions
|
@ -4,17 +4,17 @@ import { staticCursors, animatedCursors, animatedClip } from "./cursors.json";
|
||||||
|
|
||||||
// --------------------------------------- 🌈 Cursors Variants 🌈
|
// --------------------------------------- 🌈 Cursors Variants 🌈
|
||||||
|
|
||||||
const colorSchemes = {
|
export const colorSchemes = {
|
||||||
ice: {
|
ice: {
|
||||||
base: "#ffffff",
|
base: "#ffffff",
|
||||||
outline: "#000000",
|
outline: "#000000"
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// --------------------------------------- 🔧 Cursors Config 🔧
|
// --------------------------------------- 🔧 Cursors Config 🔧
|
||||||
|
|
||||||
// Source Directory
|
// Source Directory
|
||||||
const svgsDir = path.resolve(__dirname, "svg");
|
const svgsDir = path.resolve("./src/svg");
|
||||||
|
|
||||||
// Resolve Paths for svg
|
// Resolve Paths for svg
|
||||||
const staticSvgs = staticCursors.map((svg: string) =>
|
const staticSvgs = staticCursors.map((svg: string) =>
|
||||||
|
@ -25,12 +25,10 @@ const staticSvgs = staticCursors.map((svg: string) =>
|
||||||
const bitmapsDir = path.resolve(process.cwd(), "bitmaps");
|
const bitmapsDir = path.resolve(process.cwd(), "bitmaps");
|
||||||
if (!fs.existsSync(bitmapsDir)) fs.mkdirSync(bitmapsDir);
|
if (!fs.existsSync(bitmapsDir)) fs.mkdirSync(bitmapsDir);
|
||||||
|
|
||||||
const renderConfig = {
|
export const config = {
|
||||||
staticSvgs,
|
|
||||||
animatedCursors,
|
animatedCursors,
|
||||||
svgsDir,
|
|
||||||
bitmapsDir,
|
|
||||||
animatedClip,
|
animatedClip,
|
||||||
|
staticSvgs,
|
||||||
|
bitmapsDir,
|
||||||
|
svgsDir
|
||||||
};
|
};
|
||||||
|
|
||||||
export { renderConfig, colorSchemes };
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue