docs/en/ui-themes/lepton-x/angular.md
//[doc-seo]
{
"Description": "Learn how to integrate the LeptonX Angular UI into your project with step-by-step instructions and essential configuration tips."
}
To add LeptonX into your existing projects, follow the steps below.
@volosoft/abp.ng.theme.lepton-x using the command below.
yarn add @volosoft/abp.ng.theme.lepton-xangular.json as follows:Add theme-specific styles into the styles array of the file. Check the Theme Configurations documentation for more information.
provideThemeLepton from app.config.ts, and add the following providers in app.config.tsimport { provideThemeLeptonX } from "@volosoft/abp.ng.theme.lepton-x";
import { provideSideMenuLayout } from "@volosoft/abp.ng.theme.lepton-x/layouts";
// import { provideThemeLepton } from '@volo/abp.ng.theme.lepton';
export const appConfig: ApplicationConfig = {
providers: [
// provideThemeLepton() delete this
provideSideMenuLayout(), // depends on which layout you choose
provideThemeLeptonX(),
],
};
If you want to use the Top Menu instead of the Side Menu, add provideTopMenuLayout as below,and this style imports
import { provideThemeLeptonX } from "@volosoft/abp.ng.theme.lepton-x";
import { provideTopMenuLayout } from "@volosoft/abp.ng.theme.lepton-x/layouts";
export const appConfig: ApplicationConfig = {
providers: [provideTopMenuLayout(), provideThemeLeptonX()],
};
LeptonX theme should be up and running within your application. However, you may need to overwrite some css variables based your needs for every theme available as follows::root {
.lpx-theme-dark {
--lpx-logo: url("/assets/images/logo/logo-light.svg");
--lpx-logo-icon: url("/assets/images/logo/logo-light-icon.svg");
--lpx-brand: #edae53;
}
.lpx-theme-dim {
--lpx-logo: url("/assets/images/logo/logo-light.svg");
--lpx-logo-icon: url("/assets/images/logo/logo-light-icon.svg");
--lpx-brand: #f15835;
}
.lpx-theme-light {
--lpx-logo: url("/assets/images/logo/logo-dark.svg");
--lpx-logo-icon: url("/assets/images/logo/logo-dark-icon.svg");
--lpx-brand: #69aada;
}
}
If everything is ok, you can remove the @volo/abp.ng.theme.lepton in package.json
You can follow the component replacement documentation to customize the footer part. However, the ABP Studio templates serve this by default. You can reach the footer under angular/src/app/footer directory that has a component and a configuration file.
In order to migrate to LeptonX on your server side projects (Host and/or IdentityServer projects), please follow Server Side Migration document.