2025-07-15 12:55:27 -07:00
|
|
|
import { defineSlotRecipe, createSystem, defaultConfig, defineConfig, defineRecipe } from "@chakra-ui/react";
|
2025-07-10 07:49:03 -07:00
|
|
|
|
2025-07-15 12:55:27 -07:00
|
|
|
// RECIPES
|
|
|
|
|
const headerRecipe = defineRecipe({
|
|
|
|
|
base: {
|
2025-07-15 18:28:37 -07:00
|
|
|
bg: "{base200}",
|
2025-07-15 12:55:27 -07:00
|
|
|
color: "text",
|
|
|
|
|
width: "100%",
|
|
|
|
|
height: "100%",
|
2025-07-16 07:21:26 -07:00
|
|
|
borderBottom: "1px solid",
|
2025-07-15 12:55:27 -07:00
|
|
|
borderBottomColor:"{border}",
|
|
|
|
|
display: "flex",
|
|
|
|
|
flexDirection: "row",
|
|
|
|
|
justifyContent: "space-between",
|
|
|
|
|
alignItems: "center",
|
2025-07-10 09:58:23 -07:00
|
|
|
}
|
2025-07-10 07:49:03 -07:00
|
|
|
});
|
|
|
|
|
|
2025-07-15 18:28:37 -07:00
|
|
|
const canvasRecipe = defineRecipe({
|
|
|
|
|
base: {
|
|
|
|
|
bg: "{base200}"
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
2025-07-15 12:55:27 -07:00
|
|
|
const sidebarRecipe = defineSlotRecipe({
|
|
|
|
|
slots: ["root", "close_button", "buttons", "dark_mode_button"],
|
|
|
|
|
base: {
|
|
|
|
|
root: {
|
2025-07-16 07:21:26 -07:00
|
|
|
bg: "{base200}",
|
|
|
|
|
borderRight: "1px solid",
|
2025-07-15 12:55:27 -07:00
|
|
|
borderColor: "{border}",
|
|
|
|
|
width: "100%",
|
|
|
|
|
height: "100%",
|
|
|
|
|
display: "flex",
|
|
|
|
|
flexDirection: "column",
|
|
|
|
|
justifyContent: "start",
|
|
|
|
|
alignItems: "start",
|
|
|
|
|
gap: 2,
|
|
|
|
|
p: 2,
|
|
|
|
|
},
|
|
|
|
|
buttons: {
|
2025-07-15 18:28:37 -07:00
|
|
|
bg: "transparent",
|
|
|
|
|
_hover: {bg: "{primaryLt}"},
|
2025-07-15 12:55:27 -07:00
|
|
|
fontSize: "xl",
|
2025-07-15 18:28:37 -07:00
|
|
|
color: {base: "#19332D", _dark: "#CBCBCB"},
|
|
|
|
|
variant: "ghost",
|
2025-07-16 13:31:05 -07:00
|
|
|
width: "100%",
|
2025-07-15 12:55:27 -07:00
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// const sidebarRecipe = defineRecipe({
|
|
|
|
|
// base: {
|
|
|
|
|
// bg: "{primaryBG}",
|
|
|
|
|
// borderRight: "1px solid",
|
|
|
|
|
// borderColor: "{border}",
|
|
|
|
|
// width: "100%",
|
|
|
|
|
// height: "100%",
|
|
|
|
|
// display: "flex",
|
|
|
|
|
// flexDirection: "column",
|
|
|
|
|
// justifyContent: "start",
|
|
|
|
|
// alignItems: "start",
|
|
|
|
|
// gap: 2,
|
|
|
|
|
// p: 2,
|
|
|
|
|
// },
|
|
|
|
|
// variants: {
|
|
|
|
|
// dark: {
|
|
|
|
|
// borderRight: "2px solid",
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
// const sidebarBtnRecipe = defineRecipe({
|
|
|
|
|
// base: {
|
|
|
|
|
// bg: "{sidebarBtnBG}"
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
const config = defineConfig({
|
|
|
|
|
theme: {
|
|
|
|
|
semanticTokens: {
|
|
|
|
|
colors: {
|
2025-07-15 18:28:37 -07:00
|
|
|
base100: { value: {base: "#f7f9fa", _dark: "#787b73"}},
|
2025-07-16 11:23:29 -07:00
|
|
|
base200: { value: {base: "#eef2f6", _dark: "#484c42"}},
|
2025-07-15 18:28:37 -07:00
|
|
|
base300: { value: {base: "#dfe5ed", _dark: "#60645a"}},
|
|
|
|
|
primary: { value: {base: "#9cd855", _dark: "#629631"}},
|
|
|
|
|
primaryLt: { value: {base: "#c9e9a0", _dark: "#92948e"}},
|
2025-07-15 12:55:27 -07:00
|
|
|
secondaryBG: { value: {base: "#EDF1F1", _dark: "#121212"}},
|
|
|
|
|
border: {value: {base: "#000000", _dark: "#CBCBCB"}},
|
|
|
|
|
text: {value: {base: "#19332D", _dark: "#CBCBCB"}},
|
|
|
|
|
iconFill: { value: {base: "#FFFFFF", _dark: "#CBCBCB"}},
|
|
|
|
|
icon: {value: {base: "#19332D", _dark: "#CBCBCB"}},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
tokens: {
|
|
|
|
|
fonts: {
|
|
|
|
|
body: { value: "georgia, system-ui, sans-serif" },
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
recipes: {
|
|
|
|
|
// sidebar: sidebarRecipe,
|
|
|
|
|
// sidebarBTN: sidebarBtnRecipe,
|
|
|
|
|
header: headerRecipe,
|
2025-07-15 18:28:37 -07:00
|
|
|
canvas: canvasRecipe,
|
2025-07-15 12:55:27 -07:00
|
|
|
},
|
|
|
|
|
slotRecipes: {
|
|
|
|
|
sidebar: sidebarRecipe,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
2025-07-10 09:58:23 -07:00
|
|
|
export const system = createSystem(defaultConfig, config);
|