Files
tehran_tala/apps/admin-panel/src/themeConfig.ts
T

44 lines
1.6 KiB
TypeScript

// Ported from legacy henza_admin/themeConfig.js
// Colors are byte-identical to legacy. The Vuesax registration at the bottom of the
// legacy file is dropped: Vuesax has no Vue 3 build (confirmed decision — ant-design-vue
// is the substitute). Everything else is carried over as-is.
// MAIN COLORS
export const colors = {
primary: '#1c2d56',
secondary: '#836447',
third: '#f5cb55',
success: '#28C76F',
danger: '#EA5455',
warning: '#FF9F43',
dark: '#1E1E1E',
} as const;
// Legacy also had 'horizontal', which the branch build selected and which
// Main.vue branched on to render HorizontalNavMenu. That component set (4 files,
// ~12KB of Vuexy) was never ported, so Main.vue always renders the vertical
// menu — meaning the branch build was silently claiming a layout that does not
// exist here. The union is narrowed to what the port can actually render;
// porting the horizontal layout is a separate piece of work.
export type MainLayoutType = 'vertical';
export type NavbarType = 'floating' | 'static' | 'sticky' | 'hidden';
export type FooterType = 'static' | 'sticky' | 'hidden';
export type ThemeMode = 'light' | 'dark' | 'semi-dark';
const themeConfig = {
disableCustomizer: false,
disableThemeTour: true,
footerType: 'hidden' as FooterType,
hideScrollToTop: false,
mainLayoutType: 'vertical' as MainLayoutType,
navbarColor: '#fff',
navbarType: 'floating' as NavbarType,
routerTransition: 'zoom-fade',
rtl: true,
sidebarCollapsed: false,
theme: 'light' as ThemeMode,
userInfoLocalStorageKey: 'userInfo',
};
export default themeConfig;