Ok, here's an example for you to work off of. Its a label with a new property that sets the text color. If you uncomment the commented lines, it allows you to set the background color too. The zip contains the compiled jar and the source code.
I hope this helps. There isn't that much documentation for the internals of the SmartDashboard, but if you look through
the source, its not that hard to understand.