I've seen various editors which can parse CSS or SASS files for rgb color variables and then show the font in the same color

Is there any bundle which is able to do this for textmate?

I'm not entirely sure the bundle API is able to support such a feature. 
If not, could it be done with a plugin?