Open Closed

How can I access your theme style variables? #52


User avatar
0
murat.kebabci created

Hi,

I want to use your themes style variables (scss, sass etc.) for creating new special page. You are supporting themes settings but i didn't find any style pages!

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

1 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    There's an enum for Lepton styles. You can use it in backend

    Volo.Abp.LeptonTheme.Management.LeptonStyle
    

    To change the lepton theme style you can use appsettings.json

    {
      "ConnectionStrings": {
        "Default": "Server=localhost;Database=TestDatabase;Trusted_Connection=True;MultipleActiveResultSets=true"
      }, 
      "Settings": {
        "Volo.Abp.LeptonTheme.Layout.MenuPlacement": "Top",
        "Volo.Abp.LeptonTheme.Style": "Style5",
        "Volo.Abp.LeptonTheme.Layout.Boxed": "True",
        "Volo.Abp.LeptonTheme.Layout.MenuStatus": "AlwaysOpened"
      }
    }
    

    Alternatively you can set it in the database.

    Table name: AbpSettings

    | Name | Value | ProviderName | | --- | --- | --- | | Volo.Abp.LeptonTheme.Layout.Boxed | True, False | T | | Volo.Abp.LeptonTheme.Layout.MenuPlacement | Top, Left | T | Volo.Abp.LeptonTheme.Style | Style1, Style2, Style3, Style4, Style5 | T | Volo.Abp.LeptonTheme.Layout.MenuStatus | AlwaysOpened or OpenOnHover | T

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
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
Made with ❤️ on ABP v10.8.0-preview. Updated on September 24, 2026, 12:09
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.