Styling tables with contracts