Text this: Exploiting thermal strain to achieve an in-situ magnetically graded material