extend ruiStyles
compute the style for a widget