generate style for nib file