Make stylesheet api more consistent