text: export const rem = (size) => {
    const FONT_BASE = 16;
    const value = typeof size === 'string' ? parseInt(size) : size;
    return `${value / FONT_BASE}rem`;
  };
  
  export const rgba = (hex, alpha) => {
    const r = parseInt(hex.slice(1, 3), 16);
    const g = parseInt(hex.slice(3, 5), 16);
    const b = parseInt(hex.slice(5, 7), 16);
  
    if (alpha) {
      return `rgba(${r},${g},${b},${alpha})`;
    }
    return `rgb(${r},${g},${b})`;
  };
  