BEST
DEALS
OF THE
YEAR!
SAVE UP TO $3,000
24 NOV
1 DEC
00 Days
00 Hrs
00 Min
00 Sec
Filter by title
There is a newer version of this document!

Configuring the Default Theme for LeptonX

The LeptonX theme offers multiple appearances to suit your application's visual style. You can easily configure the default theme for your application using the provideThemeLeptonX provided by LeptonX.

Configuration Code

To set the default theme, you need to configure the provideThemeLeptonX using the withThemeLeptonXOptions({...}) function in the main configuration of your application (often referred to as appConfig). Here's an example:

import { provideThemeLeptonX, withThemeLeptonXOptions } from '@volosoft/abp.ng.theme.lepton-x';

export const appConfig: ApplicationConfig = {
  providers: [
    // ...
    provideThemeLeptonX(
      withThemeLeptonXOptions({
        defaultTheme: 'light'
      })
    ),
  ],
};

In the example above, we've imported the provideThemeLeptonX and withThemeLeptonXOptions, then configured it using the option parameters. By providing the defaultTheme parameter and setting its value to 'light'.

If you delete the defaultTheme parameter in the configuration object, the LeptonX theme will use the default value of "System" as the default theme appearance.

You can customize the value of the defaultTheme parameter to align with various available theme appearances, including 'dim', 'dark', 'light', or any personally crafted custom themes.

Was this page helpful?

Please make a selection.

To help us improve, please share your reason for the negative feedback in the field below.

Please enter a note.

Thank you for your valuable feedback!

Please note that although we cannot respond to feedback, our team will use your comments to improve the experience.

ABP Community Talks
What’s new with .NET 10 & ABP 10?
20 Nov, 17:00
Online
Register Now
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.