slash-opacity-string

A colour or shadow key given its opacity in a string; the object form is the one spelling of it.

Message

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

same-key

[csszyx] slash-opacity-string: `<key>: '<color>/<opacity><important>'` puts the opacity in a string; the object form takes it in `op`.
  help: write `{ <member>: '<color><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/slash-opacity-string

colour-key

[csszyx] slash-opacity-string: `<key>: '<color>/<opacity><important>'` puts the opacity in a string; the object form takes it in `op`.
  help: write `<owner>: { color: '<color><important>', op: <op> }`; `<key>` takes a shadow's size and its alpha.
  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/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.

NameType
form'same-key' | 'colour-key'
keystring
member'color' | 'size'
ownerstringoptional
colorstring
opacitystring
opstring
important'!'optional