This package distributes Javascript utilities, related to the use of the Momentum Design System.
Import a utility with:
import {UTILITY_NAME} from '@momentum-design/utils'
Currently exported utilities:
-
calculateForegroundColor
: Determines the appropriate foreground color based on a given background color. This function returns the Token which should be used to color the Foreground color based on the given background.