String? getCssVariable(String name) { final v = (web.document.documentElement as web.HTMLElement?) ?.style .getPropertyValue(name); return (v == null || v.isEmpty) ? null : v; }