Giter Site home page Giter Site logo

trongr / type Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ibm/plex

0.0 1.0 0.0 48.72 MB

The package of IBM’s new typeface, IBM Plex, and accompanying typography code.

Home Page: https://ibm.github.io/type/

License: Other

CSS 90.83% JavaScript 7.80% HTML 1.37%

type's Introduction

IBM Type

The package of IBM’s new typeface, IBM Plex, and accompanying typography code.


Warning: IBM Type is still in development and being carefully implemented in real cases where we can look for any difficulties. Look out for a stable v1.0.0 release in the near future.


IBM Type Sketch File

Use these artboards in your Sketch files to accomplish a design at each breakpoint your developer will be working with. Right click and select Save link as to save this Sketch file.

Typography Code

The IBM Type code provides rendering and kerning that best reflects IBM Plex. The editorial and product style sets also take care of:

  • Size
  • Line height
  • Line length
  • Bottom margin
  • Weights

How to Use

At the moment, installation requires Node.js and npm. This will change by v1.0.0 when a CDN become available.

To install, run npm install @ibm/type

If you want to use the compiled css, reference the file in the css folder:

<link rel="stylesheet" type="text/css" href="node_modules/@ibm/type/css/ibm-type.min.css">

Classname Reference

Classname Purpose
.ibm Container div to apply IBM Plex Sans to all type by default
.ibm-type-mono Switch a text node and children to IBM Plex Mono
.ibm-type-serif Switch a text node and children to IBM Plex Serif
.ibm-type-light Use the light weight of either IBM Plex Sans or IBM Plex Serif
.ibm-type-semibold Use the semibold weight of either IBM Plex Sans or IBM Plex Serif
.ibm-type-italic Use the italic style of either IBM Plex Sans or IBM Plex Serif
.ibm-type-[a, b, c, d, f, i, j, k] Use the sizing and weight of a style prescribed for editorial experiences
.ibm-type-[a, b, c, d, e, g, h] Use the sizing and weight of a style prescribed for product experiences

Performance

ibm-type.css ibm-type.min.css Gzipped
35kb 31kb 3kb

Finally, each font file (~40kb) has been split into four separate files (~10kb). If your webpage does not use any unicodes from one of the four split files, the user’s device will not have to download the split file.

type's People

Contributors

benlk avatar boneskull avatar brandondh avatar joshblack avatar ncguk avatar seejamescode avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.