admin管理员组

文章数量:1415684

When I am using the command to generate a theme (ng generate @angular/material:theme-color), then I get a palette, but the primary color (default key 50) is far off from the color I inputted. The most similar color is key 80.

How can I make it so the color I input is at least closest to the default key 50?

I used color #a9c93b, and I got this palette.

    0: #000000,
    10: #171e00,
    20: #293500,
    25: #334000,
    30: #3d4d00,
    35: #475900,
    40: #526600,
    50: #678000,
    60: #7e9c02,
    70: #98b729,
    80: #b3d344,
    90: #cef05e,
    95: #dcff6b,
    98: #f4ffc9,
    99: #fbffe1,
    100: #ffffff,

本文标签: angularGenerate material 3 paletteStack Overflow