Customizing Themes
Interface Layout
Modify src\store\app\index.ts
to customize the following variables:
footerText
: Set the footer text, usually used to display copyright information, default isCopyright © 2024 chansee97
lang
: Set the language, default is'enUS'
theme
: Override global component library theme variables, refer to the next section for details, default isthemeConfig
primaryColor
: Theme color configuration, default is#18a058
collapsed
: Whether to expand or collapse, default isfalse
grayMode
: Whether to enable gray mode, default isfalse
colorWeak
: Whether to enable color blindness mode, default isfalse
loadFlag
: Page reload flag, no need to modifyshowLogo
: Whether to show the logo, default istrue
showTabs
: Whether to show tabs, default istrue
showFooter
: Whether to show the footer, default istrue
showProgress
: Whether to show the progress bar, default istrue
showBreadcrumb
: Whether to show breadcrumb navigation, default istrue
showBreadcrumbIcon
: Whether to show breadcrumb navigation icon, default istrue
showWatermark
: Whether to show watermark, default isfalse
showSetting
: Whether to display the settings window, default isfalse
transitionAnimation
: Type of transition animation, default is'fade-slide'
layoutMode
: Interface layout type, default is'leftMenu'
contentFullScreen
: Whether to display content in full screen, default isfalse
Component Library Style
Modify src\store\app\theme.json
to add the style variables you need. For specific details, please refer to Naive-UI.
json
{
"common": {
"primaryColor": "#18a058",
"primaryColorHover": "#36ad6a",
"primaryColorPressed": "#0c7a43",
"primaryColorSuppl": "#36ad6a",
"infoColor": "#2080f0",
"infoColorHover": "#4098fc",
"infoColorPressed": "#1060c9",
"infoColorSuppl": "#4098fc",
"successColor": "#18a058",
"successColorHover": "#36ad6a",
"successColorPressed": "#0c7a43",
"successColorSuppl": "#36ad6a",
"warningColor": "#f0a020",
"warningColorHover": "#fcb040",
"warningColorPressed": "#c97c10",
"warningColorSuppl": "#fcb040",
"errorColor": "#d03050",
"errorColorHover": "#de576d",
"errorColorPressed": "#ab1f3f",
"errorColorSuppl": "#de576d"
}
// ...
}