ClassyKit / Classy

Expressive, flexible, and powerful stylesheets for UIView and friends.
http://classykit.github.io/Classy/
MIT License
740 stars 76 forks source link

Support for [UIFont preferredFontForTextStyle:] #89

Closed dzindra closed 9 years ago

dzindra commented 9 years ago

This PR adds ability to style font properties with values of [UIFont preferredFontForTextStyle:].

To use it, instead of font name and size, use one of the following as font name:

So instead

UILabel {
  font: "Helvetica" 14;
}

you use

UILabel {
  font: body;
}

On iOS6, the fonts will not be recognized, so you should use media queries.

cloudkite commented 9 years ago

Thanks!