broken-opacityAn opacity modifier on a colour whose theme value color-mix() cannot dim.
csszyx check reports it in its broken-opacity pass.A name in angle brackets is a value the message fills in.
[csszyx] broken-opacity: `<className>` carries an opacity modifier that does not apply: its theme token resolves to the bare comma triplet `<value>`, which `color-mix()` cannot dim.
help: wrap the token's variable in a colour function, such as `rgb(var(--your-triplet))`.
docs: https://csszyx.com/e/broken-opacity
Default: error under recommended, error under atomic. Set it in csszyx.config: rules: { 'broken-opacity': 'warn' }.
The level sets how the build and csszyx check report it. It does not change a console line, and it does not stop a thrown error.
The values this diagnostic names.
| Name | Type | |
|---|---|---|
className | string | |
value | string |