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!


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

Made with ❤️ on ABP v9.0.0-preview Updated on September 30, 2024, 13:13