Yorkshire hit back strongly after Derbyshire opener Chesney Hughes amassed 270 not out on the second day at Headingley.