generate Theme api