function fromNamed(color) {
  const el = document.createElement('div');
  el.style.color = color;
  if (el.style.color !== '') {
    document.body.appendChild(el);
    const rgb = getComputedStyle(el).color;
    document.body.removeChild(el);
    return rgb;
  } else {
    return '';
  }
}
function fromNamed(color) {
  const el = document.createElement('div');
  el.style.color = color;
  if (el.style.color !== '') {
    document.body.appendChild(el);
    const rgb = getComputedStyle(el).color;
    document.body.removeChild(el);
    return rgb;
  } else {
    return '';
  }
}
function fromNamed ( color ) { const el = document . createElement ( 'div' ) ; el . style . color = color ; if ( el . style . color !== '' ) { document . body . appendChild ( el ) ; const rgb = getComputedStyle ( el ) . color ; document . body . removeChild ( el ) ; return rgb ; } else { return '' ; } }
Return named color as an rgba string.
@param {string} color Named color.
@return {string} Rgb string.
Return named color as an rgba string .
Get the named color