adamstac / font-stacks

Sass and Compass font-family library of common web-friendly font stacks
39 stars 6 forks source link

Suggested Improvements #1

Closed lloydk closed 12 years ago

lloydk commented 12 years ago

I like the function style inteface that you've used, here are some suggested improvements:

adamstac commented 12 years ago

Thanks for the feedback Lloyd. A few you mentioned are in my plan.

But as for DRYing up the mixin, what's not dry about it?

lloydk commented 12 years ago

Maybe I'm missing something but couldn't the mixin be something like this:

@mixin font-family($family) {
  font-family: font-family($family);
}
adamstac commented 12 years ago

You know what? I copied the functions to create the mixin, and I guess I thought that'd I'd need the conditionals from that in the mxins too, but now that you mention it, the functions condition handle all conditions as well as the @warn for when the font can't be found.

Thanks for pointing that out. The simple things.

adamstac commented 12 years ago

Minus the suggestions for cursive and fantasy font families, this is all in the latest (0.1.4). I'd gladly accept a pull request if you want to add those in. I won't have the time for the next week or so to circle back, so if you have time, feel free to fork and add.

Thanks for the suggestions!