kennethormandy/utility-opentype
소개
고급 타이포그래피 기능을 위한 간단한 CSS 유틸리티 클래스입니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalUtility OpenType
Simple, CSS utility classes for advanced typographic features. Falls back gracefully through feature queries. Less than 1.75kB gzipped. —@kennethormandy
Utility OpenType helps you make the most of the font that you are loading in, reducing convoluted CSS into four-letter, typographic utility classes, because:
- OpenType features should be as easy to apply as bold and italics.
- OpenType features should cascade predictably.
- OpenType features should fallback gracefully.
This is described in more detail in the design decisions. The following examples are supported on Chrome, Firefox, and Internet Explorer 10+ and fallback as gracefully elsewhere. Works on its own, or alongside frameworks like Basscss.
Get started
Utility OpenType is ready to use with Sass, PostCSS, or vanilla CSS. If you’re using Sass or PostCSS, install it through npm:
npm install --save utility-opentype
Then, include it within your source files:
@import "utility-opentype";
If you’re using Sass without Eyeglass modules, you will need to include the actual path to the file in the node_modules directory, for example:
@import "../node_modules/utility-opentype/css/utility-opentype";
If you’d like to use the css directly, download the latest version of the compiled file, or reference the hosted CDN version in your HTML:
<link href="https://cdn.rawgit.com/kennethormandy/utility-opentype/master/css/utility-opentype.min.css" rel="stylesheet">
That’s it! You’re ready to use the classes within your markup.
Classes
Read the full docs with examples.
.liga– Common Ligatures.dlig– Discretionary Ligatures.smcp– Proper Small Caps.c2sc– Caps to Small Caps.caps– Small Caps and Caps to Small Caps, still requires docs.case– Case Sensitive Forms.titl- Titling alternates.calt– Contextual alternates.hist– Historical forms.swsh– Swashes, 1–3, still requires docs.salt– Stylistic Alternates, numbered 1–3 classes still require docs.ss01– Stylistic Sets, 1–20, still requires docs.frac– Diagonal Fractions.afrc– Alternate Fractions, still requires docs.ordn– Ordinals.sups– Superscripts.subs– Subscripts.sinf– Scientific Inferiors.lnum– Lining numbers.onum– Oldstyle numbers.pnum– Proportinal numbers.tnum– Tabular numbers.zero– Slashes Zero
Running locally
git clone https://github.com/kennethormandy/utility-opentype
cd utility-opentype
# Install development dependencies
npm install
# Run the test basic PostCSS tests
npm test
License
Copyright © 2015 Kenneth Ormandy
관련 프로젝트 살펴보기
불러오는 중…
