Conditional style depending on value

How can I set different foreground or background color for cells, based on their values (say, for example, display negative values in red, posivite ones in green, 0 in blank)?