setCssVariable static method

void setCssVariable(
  1. String name,
  2. String value
)

Sets a CSS custom property on the document root (--name: value).

Example: SUniversalHtml.setCssVariable('--primary-color', '#ff0000');

No-op on non-web.

Implementation

static void setCssVariable(String name, String value) =>
    impl.setCssVariable(name, value);