Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In angular material color palettes (such as $mat-indigo or $mat-pink), what are A100, A200, A400, and A700 used for?

Here is an example of an angular-material color palette

$bv-brand: (
    50: #ffffff,
    100: #dde6f3,
    200: #b4c9e4,
    300: #7fa3d1,
    400: #6992c9,
    500: #5282c1,
    600: #4072b4,
    700: #38649d,
    800: #305687,
    900: #284770,
    A100: #ffffff,
    A200: #dde6f3,
    A400: #6992c9,
    A700: #38649d,
    contrast: (
        50: $black-87-opacity,
        100: $black-87-opacity,
        200: $black-87-opacity,
        300: $black-87-opacity,
        400: $black-87-opacity,
        500: white,
        600: white,
        700: white,
        800: white,
        900: white,
        A100: $black-87-opacity,
        A200: $black-87-opacity,
        A400: $black-87-opacity,
        A700: white,
    )
);

I know that the values 50-900 are used for different shades of angular-material components, are the A100-700 values used similarly? What are the values with the leading 'A' used for?

like image 796
phelhe Avatar asked Jul 18 '18 13:07

phelhe


People also ask

How do I import angular materials prebuilt themes indigo pink CSS?

In src/styles. css add: @import "~@angular/material/prebuilt-themes/indigo-pink.

What does a Theam consist of in angular 10 material?

A theme is a set of colors that will be applied to the Angular Material components. To be more specific, a theme is a composition of color palettes. That's right, not just a single color palette, multiple color palettes.

What are the prebuilt themes of angular material?

There are four pre-built material themes and they are: deeppurple-amber, indigo-pink, pink-bluegrey, and purple-green. If you're using Angular CLI, importing a theme into your application is as simple as including one line in your angular. json file.


1 Answers

The 'A' indicates "accent" - the hues A100, A200, and A300 are used by the "prebuilt" themes included with Angular Material for the accent color palette. But this is merely what they have chosen to do. There is no "standard" for this - when creating your own theme you are free to use any of the hues in the palette. The only thing that truly matters is the hue indexes that you specify in your mat-palette() call for the 'default', 'lighter', and 'darker' options. By default (i.e. when not specified), the keys '500', '100', and '700' respectively are used.

like image 136
G. Tranter Avatar answered Jan 03 '23 01:01

G. Tranter