@momentum-design/utils
TypeScript icon, indicating that this package has built-in type declarations

0.6.2 • Public • Published

@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.

Readme

Keywords

none

Package Sidebar

Install

npm i @momentum-design/utils

Weekly Downloads

55

Version

0.6.2

License

none

Unpacked Size

29.7 kB

Total Files

10

Last publish

Collaborators

  • pauljeter
  • timsch-cisco
  • chrisaduboiscisco
  • torgeadelin
  • christoph.codes
  • webex-web-client
  • webex-web-client-gen