Can I get ticketed for tinted windows?

So I got ticked for having my two front windows tinted on my car. Can they do that? They weren't even that dark. By the way I live in chicago Illinois if that applies to anything. Thanks
for
the help
7 answers 7