@fantasy-color/luminance-for-contrast-ratio
@fantasy-color/luminance-for-contrast-ratio
npm i @fantasy-color/luminance-for-contrast-ratio
@fantasy-color/luminance-for-contrast-ratio

@fantasy-color/luminance-for-contrast-ratio

🍱 metarepo of many packages and various monorepos

by bubble-dev

2.1.0 (see all)License:MITTypeScript:Built-In
npm i @fantasy-color/luminance-for-contrast-ratio
Readme

@fantasy-color/luminance-for-contrast-ratio

Calculate the contrast ratio between two relative luminances

type luminanceForContrastRatio = (contrastRatio: number, luminance: number) => number

Example usage:

import luminanceForContrastRatio from '@fantasy-color/luminance-for-contrast-ratio'

luminanceForContrastRatio(3, 0.8)
// > 0.2333333333333334

Downloads/wk

14

GitHub Stars

50

LAST COMMIT

1yr ago

MAINTAINERS

9

CONTRIBUTORS

6

OPEN ISSUES

6

OPEN PRs

37
VersionTagPublished
2.1.0
latest
1yr ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate