How can I create a material with a border?

How would I adapt this for a Material used for User Interface Widgets?