color-slash-opacity

A colour or shadow size object with a slash opacity in its value; the object takes it in op.

Message

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

op-given

[csszyx] color-slash-opacity: `<key>: { <member>: '<base>/<opacity><important>', op: <op> }` sets opacity twice; the object takes its opacity in `op`, not in `<member>`.
  help: write `{ <member>: '<base><important>', op: <op> }`.
  note: the class is still emitted as written; a theme colour serves it, and a hex, a colour function or a variable before the slash writes a value no browser takes.
  docs: https://csszyx.com/e/color-slash-opacity

op-absent

[csszyx] color-slash-opacity: `<key>: { <member>: '<base>/<opacity><important>' }` puts the opacity in `<member>`; the object takes it in `op`.
  help: write `{ <member>: '<base><important>', op: <op> }`.
  note: the class is still emitted as written; a theme colour serves it, and a hex, a colour function or a variable before the slash writes a value no browser takes.
  docs: https://csszyx.com/e/color-slash-opacity

Level

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

Arguments

The values this diagnostic names.

NameType
form'op-given' | 'op-absent'
keystring
member'color' | 'size'
basestring
opacitystring
important'!'optional
opstring