79249118

Date: 2024-12-03 20:44:24
Score: 1
Natty:
Report link

There are multiple issues in your question

Answering your first question:

  1. After a number of calculations library creates a TonalPalette based on the source color
  2. Then it picks from the palette tone(50) color for light theme as a primary color
  3. For more details you can explore source code https://github.com/material-foundation/material-color-utilities/blob/main/typescript/utils/theme_utils.ts#L77
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Vlad Chernikov