dynamic-unsupported

A class dynamic() writes no rule for: a variant it has no selector for, a css: declaration, or a class it has no rule for.

Message

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

variant

[csszyx] dynamic-unsupported: `dynamic()` has no selector for the `<variant>` variant, so `<className>` writes no rule.
  help: write the value as a literal so the build lowers it, or use a variant `dynamic()` knows: the breakpoints, `dark`, and the state variants such as `hover` and `focus`.
  note: each variant or class is printed once, up to a limit; `__csszyx_dev.reports()` lists the session's reports.
  docs: https://csszyx.com/e/dynamic-unsupported

css-property

[csszyx] dynamic-unsupported: `<className>` is a `css:` declaration, which `dynamic()` does not write at runtime, so it writes no rule.
  help: for a runtime value, use the property's own key or the `style` prop; `css:` is lowered at build time only.
  note: each variant or class is printed once, up to a limit; `__csszyx_dev.reports()` lists the session's reports.
  docs: https://csszyx.com/e/dynamic-unsupported

class

[csszyx] dynamic-unsupported: `dynamic()` writes no rule for `<className>`.
  help: write the value as a literal so the build lowers it, or keep the property fixed in `css:` and set the runtime value as a CSS variable in `style`, such as `css: { 'background-blend-mode': 'var(--blend)' }` with `style={{ '--blend': mode }}`.
  note: each variant or class is printed once, up to a limit; `__csszyx_dev.reports()` lists the session's reports.
  docs: https://csszyx.com/e/dynamic-unsupported

Arguments

The values this diagnostic names.

NameType
form'variant' | 'css-property' | 'class'
classNamestring
variantstringoptional