58 lines
1.4 KiB
JavaScript
58 lines
1.4 KiB
JavaScript
// @next
|
|
import { Archivo } from 'next/font/google';
|
|
|
|
/*************************** THEME CONSTANT ***************************/
|
|
|
|
export const APP_DEFAULT_PATH = '/dashboard';
|
|
|
|
export const DRAWER_WIDTH = 254;
|
|
export const MINI_DRAWER_WIDTH = 76 + 1; // 1px - for right-side border
|
|
|
|
export const CSS_VAR_PREFIX = '';
|
|
|
|
/*************************** THEME ENUM ***************************/
|
|
|
|
export let Themes;
|
|
|
|
(function (Themes) {
|
|
Themes['THEME_HOSTING'] = 'hosting';
|
|
})(Themes || (Themes = {}));
|
|
|
|
export let ThemeMode;
|
|
|
|
(function (ThemeMode) {
|
|
ThemeMode['LIGHT'] = 'light';
|
|
})(ThemeMode || (ThemeMode = {}));
|
|
|
|
export let ThemeDirection;
|
|
|
|
(function (ThemeDirection) {
|
|
ThemeDirection['LTR'] = 'ltr';
|
|
})(ThemeDirection || (ThemeDirection = {}));
|
|
|
|
export let ThemeI18n;
|
|
|
|
(function (ThemeI18n) {
|
|
ThemeI18n['EN'] = 'en';
|
|
ThemeI18n['FR'] = 'fr';
|
|
ThemeI18n['RO'] = 'ro';
|
|
ThemeI18n['ZH'] = 'zh';
|
|
})(ThemeI18n || (ThemeI18n = {}));
|
|
|
|
/*************************** CONFIG ***************************/
|
|
|
|
const config = {
|
|
currentTheme: Themes.THEME_HOSTING,
|
|
themeDirection: ThemeDirection.LTR,
|
|
miniDrawer: false,
|
|
i18n: ThemeI18n.EN
|
|
};
|
|
|
|
export default config;
|
|
|
|
/*************************** THEME - FONT FAMILY ***************************/
|
|
|
|
const fontArchivo = Archivo({ subsets: ['latin'], display: 'swap', weight: ['400', '500', '600', '700'] });
|
|
|
|
export const FONT_ARCHIVO = fontArchivo.style.fontFamily;
|