import { ColorConvertionServiceProvider } from 'core/@types/services/color' ; import color from 'color-convert' ; export function colorConvertProvider ( ) { return { hexToRgb : color . hex . rgb , rgbToHex : ( rgb ) => `#${ color . rgb . hex ( rgb ) }` , } ; }