Skip to content
On this page

themeConfig

We provide a themeConfig file for users to customize the look and feel of the template. The themeConfig file is located in the root of the template folder with the name of themeConfig.ts.

Typing themeConfig

tl;dr

  • userConfig: user theme config object.
  • themeConfig: same as userConfig.
  • layoutConfig: user layout config object for layout plugin.
  • UserThemeConfig: Type for userConfig,themeConfig.
  • UserLayoutConfig: Type for layoutConfig.



We have a bit complex types for themeConfig file because we have @layouts plugin as a part of our template.

TIP

@layouts plugin is independent of the template and it can be used in any vue project. It just contains bare minimum styles and various layouts.

As @layouts should be independent and we will provide all the template related features via @core directory, Typing for themeConfig file is written in @core dir.

themeConfig can be defined via defineThemeConfig function. This function accepts userConfig and returns { themeConfig, layoutConfig}.

configtypedesc
userConfigUserThemeConfiguser theme config object
themeConfigUserThemeConfigSame as userConfig
layoutConfigLayoutConfiguser layout config object for layout plugin