opacity-value

An op that is not a number from 0 to 100, or one below 1 that reads as a fraction.

Message

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

range

[csszyx] opacity-value: `<key>: { op: <op> }` is not a number from 0 to 100, so the colour is written without an opacity.
  help: write `op` as a number from `0` to `100`, such as `op: 50` or `op: 33.3`.
  docs: https://csszyx.com/e/opacity-value

fraction

[csszyx] opacity-value: `<key>: { op: <op> }` is <op>% opacity: `op` is a percent, not a fraction of 1.
  help: write `op: <percent>` for <percent>%.
  docs: https://csszyx.com/e/opacity-value

Level

Default: error under recommended, error under atomic. Set it in csszyx.config: rules: { 'opacity-value': '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'range' | 'fraction'
keystring
opstring
percentstringoptional