Extracted function to helper file. Make linear-gradient function work to spec. WIP