import { ThemePaletteElevation } from '../constants' ; import { updateColorContrastLuminance } from '../updateColorContrastLuminance' ; const createThemePaletteElevation = ( main , elevationOffset ) : ThemePaletteElevation => { const elevate = ( level ) : string => { const value = elevationOffset * level ; if ( value === 0 ) { return main ; } return updateColorContrastLuminance ( value , main ) ; } ; return Object . freeze ( { main , elevate } ) ; } ; export { createThemePaletteElevation } ;