@shumoku/core · 0.5.0 · function
contrastRatio
The WCAG contrast ratio of two colours.
contrastRatio(a: string, b: string): number Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
a | string | No additional description. | — |
b | string | No additional description. | — |
Returns
number libs/@shumoku/core/src/libs/@shumoku/core/src/themes/tone.ts:105