Add rules for opacity and colour