.kategoriclass:nth-child(1) { background-color: renk1; }
.kategoriclass:nth-child(2) { background-color: renk2; }
.kategoriclass:nth-child(3) { background-color: renk3; }
.kategoriclass:nth-child(4) { background-color: renk4; }
...
veya
.kategoriclass:nth-child(4n) { background-color: renk1; }
.kategoriclass:nth-child(4n+1) { background-color: renk2; }
.kategoriclass:nth-child(4n+2) { background-color: renk3; }
.kategoriclass:nth-child(4n+3) { background-color: renk4; }

İkinci yöntemle her 4 kutucukta 1 renkler farklı olur.