import { getPrefix } from '../prefix' ; import { CssVariable } from '../type' ; export function get ( value ) { if ( ! value ) { console . warn ( `${ getPrefix ( ) }name is not set` ) ; } if ( value . substring ( 0 , 2 ) === `--` ) { return value as CssVariable ; } return `--${ value }` ; }