Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: KyleAMathews/typography.js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.16.21
Choose a base ref
...
head repository: KyleAMathews/typography.js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.16.24
Choose a head ref
  • 9 commits
  • 6 files changed
  • 5 contributors

Commits on Jun 14, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    f9aa175 View commit details

Commits on Feb 17, 2022

  1. Update README.md

    KyleAMathews authored Feb 17, 2022
    Copy the full SHA
    bdea090 View commit details

Commits on Oct 17, 2022

  1. Copy the full SHA
    0e16560 View commit details
  2. add new theme 'Vue' (#291)

    shen-yu authored Oct 17, 2022
    Copy the full SHA
    7a28f77 View commit details

Commits on Dec 6, 2022

  1. v0.16.22

    KyleAMathews committed Dec 6, 2022
    Copy the full SHA
    6005bf2 View commit details
  2. Bump again

    KyleAMathews committed Dec 6, 2022
    Copy the full SHA
    c650c95 View commit details
  3. v0.16.23

    KyleAMathews committed Dec 6, 2022
    Copy the full SHA
    978ed58 View commit details

Commits on Jul 8, 2023

  1. Add CSS Variable Support (#307)

    Close #306
    nandorojo authored Jul 8, 2023
    Copy the full SHA
    8c0e5c8 View commit details
  2. v0.16.24

    KyleAMathews committed Jul 8, 2023
    Copy the full SHA
    497b712 View commit details
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# Typography.js
A powerful toolkit for building websites with beautiful typography.
# Typography.js [![Build Status][build-badge]][build-status] [![Coverage Status][coverage-badge]][coverage-status]
A powerful toolkit for building websites with beautiful design.

## Install
`npm install typography`

## Demo/playground
http://kyleamathews.github.io/typography.js
https://kyleamathews.github.io/typography.js

## Why
The goal of Typography.js is to provide a high-level elegant API for
@@ -158,6 +156,7 @@ const typography = new Typography(funstonTheme)
* [typography-theme-domo-arigato](https://github.com/aalaap/typography-theme-domo-arigato) - A theme with Roboto fonts
* [typography-theme-otis](https://github.com/devbewill/typography-theme-otis)
* [typography-theme-quora](https://github.com/mbao01/typography-theme-quora) - theme based on Quora
* [typography-theme-vue](https://github.com/Shen-Yu/typography-theme-vue) - inspired by Vue official docs.
* If you publish your own, create a PR to add it here!

## Plugins
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"lerna": "2.0.0",
"version": "0.16.21"
"version": "0.16.24"
}
4 changes: 2 additions & 2 deletions packages/react-typography/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "react-typography",
"description": "Helpful React components for Typography.js",
"version": "0.16.20",
"version": "0.16.23",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"peerDependencies": {
"react": "^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
"react": "^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0"
},
"keywords": [
"css",
6 changes: 3 additions & 3 deletions packages/typography-design-tools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typography-design-tools",
"version": "0.16.21",
"version": "0.16.24",
"description": "Design tools for Typography.js",
"main": "./dist/index.js",
"keywords": [
@@ -27,8 +27,8 @@
"react-dom": "^15.2.1",
"react-number-editor": "^4.0.2",
"react-select": "^1.0.0-beta14",
"react-typography": "^0.16.20",
"typography": "^0.16.21"
"react-typography": "^0.16.23",
"typography": "^0.16.24"
},
"scripts": {
"build": "../../node_modules/.bin/babel src --out-dir dist/",
2 changes: 1 addition & 1 deletion packages/typography/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "typography",
"description": "Opinionated toolkit for building websites with beautiful typography",
"version": "0.16.21",
"version": "0.16.24",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"dependencies": {
"compass-vertical-rhythm": "^1.4.5",
2 changes: 1 addition & 1 deletion packages/typography/src/utils/createStyles.js
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ const genericFontFamilies = [
"-apple-system",
]
const wrapFontFamily = fontFamily =>
genericFontFamilies.indexOf(fontFamily) !== -1
genericFontFamilies.indexOf(fontFamily) !== -1 || fontFamily.startsWith('var(')
? fontFamily
: `'${fontFamily}'`