Style API refactored to more closely reflect css functionality