You can use Slice9 for stuff like that, for example here is a simple white rounded rectangle I created:
If I then add it to my GUI scene (included in a texture atlas), and set the Slice9 settings like this:
I can create box nodes with varying sizes and colors that will have rounded corners, like this: