init project

This commit is contained in:
AmirHossein Mahmoodi
2024-01-29 16:14:12 +03:30
commit 1df5a5edb4
15 changed files with 643 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
'use client'
import createCache from "@emotion/cache";
import {prefixer} from "stylis";
import stylisRTLPlugin from "stylis-plugin-rtl";
import {CacheProvider} from "@emotion/react";
const cache = createCache({
key: 'mui-rtl',
stylisPlugins: [prefixer, stylisRTLPlugin],
});
const cacheProviderRtl = (props) => {
return <CacheProvider value={cache}>{props.children}</CacheProvider>;
}
export default cacheProviderRtl

8
src/core/utils/theme.js Normal file
View File

@@ -0,0 +1,8 @@
'use client'
import {createTheme} from "@mui/material";
const theme = createTheme({
direction: 'rtl'
});
export default theme