Generate resource xml with color codes from a theme