A simple method for the patterning of styrene derivatives for electrochromic applications is presented. Novel viologen derivatives containing styrene groups were used in the formation of patternable electrochromic films. The patterning was doneviaphotopolymerization and it shows the possibility of the use of styrene derivatives for the preparation of electrochromic patterns.