extract style to an isolate file