(bg = 'var(--s2-container-bg)', alpha = 1)
| 111 | * background colors, 49.44 minimizes the number of WCAG 4.5:1 contrast failures. |
| 112 | */ |
| 113 | export function autoStaticColor(bg = 'var(--s2-container-bg)', alpha = 1): string { |
| 114 | return `lch(from ${bg} calc((49.44 - l) * infinity) 0 0 / ${alpha})`; |
| 115 | } |
| 116 | |
| 117 | interface ColorScaleValues { |
| 118 | 'transparent-overlay-25': string; |
no outgoing calls
no test coverage detected