off-scale-value

A spacing value off Tailwind's quarter-step scale, or a fraction on a key that takes none.

Message

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

step

[csszyx] off-scale-value: `<key>: <value>` is not on Tailwind's spacing scale, so the class produces no CSS.
  help: use a quarter step such as `1.25`, `1.5` or `1.75`, or a unit value such as `'<value>rem'`.
  docs: https://csszyx.com/e/off-scale-value

fraction

[csszyx] off-scale-value: `<key>: '<value>'` is a fraction, and `<key>` has no fraction utilities, so the class produces no CSS.
  help: write it with a unit: `<key>: '<percent>%'` where `<key>` takes a percentage, or a length such as `<key>: '0.5rem'`.
  docs: https://csszyx.com/e/off-scale-value

Level

Default: error under recommended, error under atomic. Set it in csszyx.config: rules: { 'off-scale-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'step' | 'fraction'
keystring
valuestring
percentstringoptional