This commit is contained in:
Hamed
2026-07-30 10:57:49 +04:00
parent e03a4dfcb0
commit 31f261bf5f
102 changed files with 8782 additions and 1432 deletions
+38
View File
@@ -0,0 +1,38 @@
"use client";
import { ConfigProvider } from "antd";
import { COLORS } from "@/constants/theme";
/**
* Single place where Ant Design's design tokens are mapped onto
* the Robot Market palette, and where the whole component library
* is switched to RTL. Any Ant component used anywhere in the app
* (Drawer, Button, Form, etc.) automatically inherits this.
*/
export default function AntThemeProvider({ children }) {
return (
<ConfigProvider
direction="rtl"
theme={{
token: {
colorPrimary: COLORS.primary,
colorLink: COLORS.primary,
colorInfo: COLORS.primary,
borderRadius: 14,
fontFamily: "var(--font-vazirmatn), Tahoma, sans-serif",
},
components: {
Button: {
controlHeight: 46,
borderRadius: 999,
},
Drawer: {
colorBgElevated: COLORS.background,
},
},
}}
>
{children}
</ConfigProvider>
);
}