Add the directive 'type' for allowing some colors.