Tries each parameter in turn, returning the value
for the first that resolves. This can be useful for
having fallback values.
// Try a CSS variable, a object property or finally fallback to red. element.style.backgroundColor = toStringFirst('--some-var', opts.background, `red`);
Returns a CSS-ready string representation.
Tries each parameter in turn, returning the value for the first that resolves. This can be useful for having fallback values.