@shumoku/core · 0.5.0 · function
contrastRatio
APIの説明は英語のcanonical sourceを表示しています。
The WCAG contrast ratio of two colours.
contrastRatio(a: string, b: string): number パラメーター
| 名前 | 型 | 説明 | 既定値 |
|---|---|---|---|
a | string | 追加説明はありません。 | — |
b | string | 追加説明はありません。 | — |
戻り値
number libs/@shumoku/core/src/libs/@shumoku/core/src/themes/tone.ts:105