slash-opacity-string

A colour key given its opacity in a string, which emits nothing; the object form takes it.

Message

A name in angle brackets is a value the message fills in.

[csszyx] slash-opacity-string: `<key>: '<color>/<opacity>'` emits nothing: a string value cannot carry a slash opacity.
  help: use the object form: `{ color: '<color>', op: <opacity> }`.
  docs: https://csszyx.com/e/slash-opacity-string

A production browser bundle prints this in place of it:

[csszyx] slash-opacity-string: {"key":"<key>","color":"<color>","opacity":"<opacity>"} https://csszyx.com/e/slash-opacity-string

Level

Default: error under recommended, error under atomic. Set it in csszyx.config: rules: { 'slash-opacity-string': '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.

Arguments

The values this diagnostic names. A production browser bundle prints them as JSON in place of the sentence.

NameType
keystring
colorstring
opacitystring