+
diff --git a/src/pages/CafeManagement/CafeManagement.jsx b/src/pages/CafeManagement/CafeManagement.jsx
index 6534104..d065d56 100644
--- a/src/pages/CafeManagement/CafeManagement.jsx
+++ b/src/pages/CafeManagement/CafeManagement.jsx
@@ -43,7 +43,7 @@ const CafeManagement = () => {
if (loading) {
return (
-
در حال بارگذاری...
+
در حال بارگذاری...
);
}
@@ -112,7 +112,7 @@ const CafeManagement = () => {
ادیت
@@ -153,7 +153,7 @@ const CafeManagement = () => {
ادیت کافه
@@ -169,7 +169,7 @@ const CafeManagement = () => {
{/* بخش دکمه اضافه کردن */}
-
@@ -323,7 +323,7 @@ export default function EditCafe() {
<>
handleEditCategory(idx)}
- className="text-[#7f4629] cursor-pointer hover:text-[#5f494f] w-4 h-4 ml-1"
+ className="text-button1 cursor-pointer hover:text-[#5f494f] w-4 h-4 ml-1"
title="ویرایش"
/>
setIsAddingCategory(true)}
- className="flex-shrink-0 text-[#7f4629] hover:text-[#5f494f] font-bold text-sm md:text-base transition-colors whitespace-nowrap"
+ className="flex-shrink-0 text-button1 hover:text-[#5f494f] font-bold text-sm md:text-base transition-colors whitespace-nowrap"
>
+ افزودن
@@ -369,7 +369,7 @@ export default function EditCafe() {
value={newCategory}
onChange={(e) => setNewCategory(e.target.value)}
placeholder="دسته جدید"
- className="border-2 border-[#bb8f70] rounded-lg px-2 py-1 text-xs md:text-sm focus:outline-none focus:border-[#7f4629] min-w-[100px]"
+ className="border-2 border-[#bb8f70] rounded-lg px-2 py-1 text-xs md:text-sm focus:outline-none focus:border-button1 min-w-[100px]"
autoFocus
/>
diff --git a/src/pages/Login/Login.jsx b/src/pages/Login/Login.jsx
index 9de7c6c..393a84f 100644
--- a/src/pages/Login/Login.jsx
+++ b/src/pages/Login/Login.jsx
@@ -71,7 +71,7 @@ export default function Login() {
@@ -109,7 +109,7 @@ export default function Login() {
backgroundPosition: 'center',
backgroundAttachment: 'fixed'
}}
- className="w-full md:w-1/2 flex items-start justify-center md:justify-start md:bg-[#f5f0e8] px-4 md:px-12 lg:px-24 py-8 md:py-16 relative">
+ className="w-full md:w-1/2 flex items-start justify-center md:justify-start md:bg-background px-4 md:px-12 lg:px-24 py-8 md:py-16 relative">
{/* Dark Overlay */}
@@ -122,7 +122,7 @@ export default function Login() {
{/* Header */}
- ورود ادمین
+ ورود ادمین
دسترسی ویژه برای مدیریت و گزارشها
@@ -137,14 +137,14 @@ export default function Login() {
{/* Username Field */}
-
+
setUserName(e.target.value)}
placeholder="userName"
- className="w-full pl-12 pr-4 py-3 border-2 bg-[#f5f0e8] border-gray-300 rounded-xl focus:outline-none focus:border-[#7f4629] transition-colors text-sm"
+ className="w-full pl-12 pr-4 py-3 border-2 bg-background border-gray-300 rounded-xl focus:outline-none focus:border-button1 transition-colors text-sm"
dir="ltr"
required
/>
@@ -154,14 +154,14 @@ export default function Login() {
{/* Password Field */}
-
+
setPassword(e.target.value)}
placeholder="password"
- className="w-full pl-12 pr-4 py-3 border-2 bg-[#f5f0e8] border-gray-300 rounded-xl focus:outline-none focus:border-[#7f4629] transition-colors text-sm"
+ className="w-full pl-12 pr-4 py-3 border-2 bg-background border-gray-300 rounded-xl focus:outline-none focus:border-button1 transition-colors text-sm"
dir="ltr"
required
/>
@@ -171,7 +171,7 @@ export default function Login() {
{/* Forgot Password */}
@@ -180,7 +180,7 @@ export default function Login() {
{loading ? "در حال ورود..." : "ورود"}
diff --git a/src/styles/index.css b/src/styles/index.css
index 181bab5..1863831 100644
--- a/src/styles/index.css
+++ b/src/styles/index.css
@@ -1,4 +1,48 @@
@import "tailwindcss";
+@custom-variant dark (&:where(.dark, .dark *));
+
+:root {
+ --color-primary: #7f4629;
+ --color-button1: #99582a;
+
+ --color-header: #f3efe7;
+ --color-header2: #e6dbcc;
+
+ --color-sidebar: #efeeee;
+
+ --color-background: #fdf8f4;
+
+
+ --font-sans: "Vazirmatn", system-ui, sans-serif;
+}
+
+.dark {
+ --color-primary: #d9cab3;
+ --color-button1: #99582a;
+
+ --color-header: #342e2c;
+ --color-header2: #5e5450;
+
+ --color-sidebar: #564c49;
+
+ --color-background: #272322;
+}
+
+html {
+ font-family: var(--font-sans);
+}
+
+body {
+ background-color: var(--background);
+ color: var(--foreground);
+ line-height: 1.6;
+ /* فاصله مناسب خطوط متن */
+ -webkit-font-smoothing: antialiased;
+ /* نرمتر شدن فونت */
+ text-rendering: optimizeLegibility;
+ /* خوانایی بهتر متن */
+}
+
@font-face {
font-family: "MyEstedad";
@@ -10,6 +54,33 @@
@theme {
--font-MyEstedad: "MyEstedad", sans-serif;
+
+ --color-primary: var(--color-primary);
+ --color-header: var(--color-header);
+ --color-sidebar: var(--color-sidebar);
+ --color-background: var(--color-background);
+
+ --color-button1: var(--color-button1);
+
+ /* --color-text1: var(--color-text1-menu-and-card);
+ --color-text2: var(--color-text2);
+ --color-text3: var(--color-text3);
+ --color-text4: var(--color-text4);
+
+ --color-btn1: var(--color-button1);
+ --color-btn2: var(--color-button2);
+ --color-btn3: var(--color-button3);
+
+ --color-primary1: var(--color-primary1);
+ --color-primary2: var(--color-primary2);
+ --color-primary3: var(--color-primary3);
+ --color-primary4: var(--color-primary4);
+ --color-primary5-dark: var(--color-primary5-dark);
+ --color-primary6-dark: var(--color-primary6-dark);
+
+
+ --color-bg-light: var(--color-background-light);
+ --color-bg-dark: var(--color-background-dark); */
}
@layer base {
@@ -22,4 +93,38 @@
font-family: var(--font-MyEstedad);
direction: rtl;
}
+}
+
+
+
+*::before,
+*::after {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+
+/* دکمهها فونت پروژه رو بگیرن */
+button {
+ font-family: inherit;
+ cursor: pointer;
+}
+
+/* تصاویر و مدیاها ریسپانسیو باشن */
+img,
+picture,
+video,
+canvas,
+svg {
+ display: block;
+ max-width: 100%;
+}
+
+/* رنگ انتخاب متن (drag select) */
+::selection {
+ background-color: var(--primary-200);
+ /* بکگراند انتخاب */
+ color: var(--primary-foreground);
+ /* رنگ متن انتخاب */
}
\ No newline at end of file
|