Configuração

    A biblioteca de temas Ignite UI for Angular expõe diversas variáveis de argumentos de entrada que permitem configurar como o mecanismo de temas funciona.

    Global Variables

    Aqui está uma lista de variáveis globais do Sass encaminhadas no módulo de tema principal:

    Nome da Variável Descrição
    $components Armazena um registro de todos os temas componentes. Usado para tree-shaking.
    $dropped-themes Armazena um registro de temas descartados. Usado para tree-shaking.

    Scrollbar Styling

    The Ignite UI for Angular themes ship with custom scrollbar styles that allow you to change the width and/or the colors of all scrollbars in your application. To apply the included styles, make sure to set the ig-scrollbar class to an element that contains your root app component.

    To customize the scrollbar further, you can create a new scrollbar style with the scrollbar-theme function. The function accepts arguments for style changes on the scrollbar. We can customize the scrollbar size, color, border, min-height... and many more.

    // app.component.scss
    // Here we set the scrollbar to have size of 16px, scrollbar thumb to be in color pink, and scrolblar track to be in color green
    $my-scrollbar-theme: scrollbar-theme($sb-size: 16px, $sb-thumb-bg-color: pink, $sb-track-bg-color: green);
    
    // We use 'css-vars' mixin for generating the css variables with the new scrollbar values.
    @include css-vars($my-scrollbar-theme);
    

    Additional Resources

    Aprenda os conceitos:

    Aprenda a criar temas para todo o aplicativo:

    Aprenda a criar temas específicos para componentes:

    Nossa comunidade é ativa e sempre acolhedora para novas ideias.