Gradient in a Checker Texture's individual cells
I think this is a good start :



Make sure to match the Mapping node scale to the checker texture scale. You'll need to adapt the mapping nodes as well as the Modulos plugs depending on the orientation and the face you need to display on.