🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@momentum-design/utils

Package Overview
Dependencies
Maintainers
7
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@momentum-design/utils

0.6.2
latest
npm
Version published
Weekly downloads
58
132%
Maintainers
7
Weekly downloads
 
Created
Source

@momentum-design/utils

license: mit State NPM Version

Overview

This package distributes Javascript utilities, related to the use of the Momentum Design System.

Consumption

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.

FAQs

Package last updated on 13 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts