If class colors are insufficient for you, try something like this:
Code:
local classabbrev = {
Mage = "Mg",
Warlock = "Wl",
}
create a fontstring ... like self.Class or whatever you want
Code:
self.Class:SetText(classabbrev[UnitClass(unit)])
Note this is theory, untested, but it's something to start with.