I moved recently from Theme.AppCompat
to Theme.MaterialComponents
but I can't understand how to orgnaize colors.
<style name="Theme.Test" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/orange</item>
<item name="colorPrimaryVariant">@color/red</item>
<item name="colorOnPrimary">@color/yellow</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/green</item>
<item name="colorSecondaryVariant">@color/black</item>
<item name="colorOnSecondary">@color/white</item>
</style>
For example why buttons take orange background color but background of cardview not take orange color?
Can someone explain to me more about these variables colorPrimary , colorPrimaryVariant , colorOnPrimary , colorSecondary , colorSecondaryVariant and colorOnSecondary
Is there any offical documentation?