import { Configuration } from "../interface" ; import { getPalette } from "../palette" ; import { getDefaultSemantic } from "./default" ; import { getColorfulSemantic } from "./colorful" ; export function getSemantic ( configuration , variant ) { const palette = getPalette ( configuration , variant ) ; let semantic ; if ( configuration . colorfulSyntax === false ) { semantic = getDefaultSemantic ( palette ) ; } else { semantic = getColorfulSemantic ( palette ) ; } return semantic ; }