Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 73d4691

Browse files
committed
typography.ts
1 parent 428aaaf commit 73d4691

File tree

5 files changed

+94
-4
lines changed

5 files changed

+94
-4
lines changed

Diff for: gatsby-config.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ module.exports = {
55
plugins: [
66
`gatsby-plugin-typescript`,
77
`gatsby-plugin-react-next`,
8-
`gatsby-plugin-react-helmet`
8+
`gatsby-plugin-react-helmet`,
9+
{
10+
resolve: `gatsby-plugin-typography`,
11+
options: {
12+
pathToConfigModule: `src/utils/typography.ts`,
13+
},
14+
},
915
],
1016
}

Diff for: package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@
2020
"gatsby-plugin-react-helmet": "^1.0.8",
2121
"gatsby-plugin-react-next": "^1.0.4",
2222
"gatsby-plugin-typescript": "^1.4.10",
23+
"gatsby-plugin-typography": "^1.7.10",
2324
"gh-pages": "^0.12.0",
2425
"prettier": "^1.7.4",
2526
"tslint": "^5.8.0",
2627
"typescript": "^2.6.1"
2728
},
2829
"dependencies": {
2930
"react": "^16.0.0",
30-
"react-dom": "^16.0.0"
31+
"react-dom": "^16.0.0",
32+
"typography": "^0.16.6",
33+
"typography-theme-doelger": "^0.15.11"
3134
}
3235
}

Diff for: src/utils/typography.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import * as Typography from 'typography';
2+
import * as theme from 'typography-theme-doelger';
3+
4+
const typography = new Typography(theme);
5+
6+
export default typography;

Diff for: tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"compilerOptions": {
33
"outDir": "./dist/",
44
"sourceMap": true,
5-
"noImplicitAny": true,
65
"module": "commonjs",
76
"target": "es2015",
87
"jsx": "react",

Diff for: yarn.lock

+77-1
Original file line numberDiff line numberDiff line change
@@ -1773,6 +1773,14 @@ commondir@^1.0.1:
17731773
version "1.0.1"
17741774
resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b"
17751775

1776+
compass-vertical-rhythm@^1.3.0:
1777+
version "1.3.1"
1778+
resolved "https://registry.yarnpkg.com/compass-vertical-rhythm/-/compass-vertical-rhythm-1.3.1.tgz#6047ffd8b20b2dcba93698e90a34570662893488"
1779+
dependencies:
1780+
convert-css-length "^1.0.1"
1781+
object-assign "^4.1.0"
1782+
parse-unit "^1.0.1"
1783+
17761784
17771785
version "1.0.0"
17781786
resolved "https://registry.yarnpkg.com/component-bind/-/component-bind-1.0.0.tgz#00c608ab7dcd93897c0009651b1d3a8e1e73bbd1"
@@ -1836,6 +1844,10 @@ console-control-strings@^1.0.0, console-control-strings@~1.1.0:
18361844
version "1.1.0"
18371845
resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e"
18381846

1847+
console-polyfill@^0.1.2:
1848+
version "0.1.2"
1849+
resolved "https://registry.yarnpkg.com/console-polyfill/-/console-polyfill-0.1.2.tgz#96cfed51caf78189f699572e6f18271dc37c0e30"
1850+
18391851
constants-browserify@^1.0.0:
18401852
version "1.0.0"
18411853
resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75"
@@ -1848,6 +1860,13 @@ content-type@^1.0.2, content-type@~1.0.4:
18481860
version "1.0.4"
18491861
resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b"
18501862

1863+
convert-css-length@^1.0.1:
1864+
version "1.0.1"
1865+
resolved "https://registry.yarnpkg.com/convert-css-length/-/convert-css-length-1.0.1.tgz#f3ecec664f2e873a0570e6afdd3e1ae4f92444b7"
1866+
dependencies:
1867+
console-polyfill "^0.1.2"
1868+
parse-unit "^1.0.1"
1869+
18511870
convert-hrtime@^2.0.0:
18521871
version "2.0.0"
18531872
resolved "https://registry.yarnpkg.com/convert-hrtime/-/convert-hrtime-2.0.0.tgz#19bfb2c9162f9e11c2f04c2c79de2b7e8095c627"
@@ -2137,7 +2156,7 @@ debug@^3.1.0:
21372156
dependencies:
21382157
ms "2.0.0"
21392158

2140-
decamelize@^1.0.0, decamelize@^1.1.1, decamelize@^1.1.2:
2159+
decamelize@^1.0.0, decamelize@^1.1.1, decamelize@^1.1.2, decamelize@^1.2.0:
21412160
version "1.2.0"
21422161
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
21432162

@@ -3093,6 +3112,14 @@ gatsby-plugin-typescript@^1.4.10:
30933112
ts-loader "^2.0.3"
30943113
typescript "^2.2.1"
30953114

3115+
gatsby-plugin-typography@^1.7.10:
3116+
version "1.7.10"
3117+
resolved "https://registry.yarnpkg.com/gatsby-plugin-typography/-/gatsby-plugin-typography-1.7.10.tgz#f6566ea9e11129f10d928ac235a3ce4ac9ebd4d3"
3118+
dependencies:
3119+
babel-runtime "^6.26.0"
3120+
react-typography "^0.16.1"
3121+
typography "^0.16.0"
3122+
30963123
gatsby-react-router-scroll@^1.0.3:
30973124
version "1.0.3"
30983125
resolved "https://registry.yarnpkg.com/gatsby-react-router-scroll/-/gatsby-react-router-scroll-1.0.3.tgz#b4b7850850d078b1816a15abf332c93b4d42e3f1"
@@ -3447,6 +3474,10 @@ graphql@^0.11.3, graphql@^0.11.7:
34473474
dependencies:
34483475
iterall "1.1.3"
34493476

3477+
gray-percentage@^2.0.0:
3478+
version "2.0.0"
3479+
resolved "https://registry.yarnpkg.com/gray-percentage/-/gray-percentage-2.0.0.tgz#b72a274d1b1379104a0050b63b207dc53fe56f99"
3480+
34503481
34513482
version "3.0.0"
34523483
resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-3.0.0.tgz#546188e9bdc337f673772f81660464b389dce520"
@@ -4436,6 +4467,10 @@ lodash.foreach@^4.3.0:
44364467
version "4.5.0"
44374468
resolved "https://registry.yarnpkg.com/lodash.foreach/-/lodash.foreach-4.5.0.tgz#1a6a35eace401280c7f06dddec35165ab27e3e53"
44384469

4470+
lodash.isnumber@^3.0.0:
4471+
version "3.0.3"
4472+
resolved "https://registry.yarnpkg.com/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz#3ce76810c5928d03352301ac287317f11c0b1ffc"
4473+
44394474
lodash.isplainobject@^4.0.4:
44404475
version "4.0.6"
44414476
resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb"
@@ -4806,6 +4841,12 @@ mixin-deep@^1.2.0:
48064841
dependencies:
48074842
minimist "0.0.8"
48084843

4844+
modularscale@^1.0.2:
4845+
version "1.0.2"
4846+
resolved "https://registry.yarnpkg.com/modularscale/-/modularscale-1.0.2.tgz#4a8f13af32a5e5214fc6e2cfc529064abfd7d877"
4847+
dependencies:
4848+
lodash.isnumber "^3.0.0"
4849+
48094850
[email protected], moment@^2.16.0:
48104851
version "2.19.1"
48114852
resolved "https://registry.yarnpkg.com/moment/-/moment-2.19.1.tgz#56da1a2d1cbf01d38b7e1afc31c10bcfa1929167"
@@ -5242,6 +5283,10 @@ parse-passwd@^1.0.0:
52425283
version "1.0.0"
52435284
resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6"
52445285

5286+
parse-unit@^1.0.1:
5287+
version "1.0.1"
5288+
resolved "https://registry.yarnpkg.com/parse-unit/-/parse-unit-1.0.1.tgz#7e1bb6d5bef3874c28e392526a2541170291eecf"
5289+
52455290
52465291
version "0.0.5"
52475292
resolved "https://registry.yarnpkg.com/parseqs/-/parseqs-0.0.5.tgz#d5208a3738e46766e291ba2ea173684921a8b89d"
@@ -6231,6 +6276,10 @@ react-side-effect@^1.1.0:
62316276
exenv "^1.2.1"
62326277
shallowequal "^1.0.1"
62336278

6279+
react-typography@^0.16.1:
6280+
version "0.16.5"
6281+
resolved "https://registry.yarnpkg.com/react-typography/-/react-typography-0.16.5.tgz#86e539430e0efb3a326c9de20d9e3a32662a2a6b"
6282+
62346283
react@^15.6.0:
62356284
version "15.6.2"
62366285
resolved "https://registry.yarnpkg.com/react/-/react-15.6.2.tgz#dba0434ab439cfe82f108f0f511663908179aa72"
@@ -7640,6 +7689,33 @@ typescript@^2.2.1, typescript@^2.6.1:
76407689
version "2.6.1"
76417690
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.6.1.tgz#ef39cdea27abac0b500242d6726ab90e0c846631"
76427691

7692+
typography-breakpoint-constants@^0.15.10:
7693+
version "0.15.10"
7694+
resolved "https://registry.yarnpkg.com/typography-breakpoint-constants/-/typography-breakpoint-constants-0.15.10.tgz#bd5308dd57250e7f28a8c6e1c0e668ddf1178c5c"
7695+
7696+
typography-normalize@^0.14.0:
7697+
version "0.14.0"
7698+
resolved "https://registry.yarnpkg.com/typography-normalize/-/typography-normalize-0.14.0.tgz#1d77c1fe2aaf4a51b3673c4c85c85a65a2d4b573"
7699+
7700+
typography-theme-doelger@^0.15.11:
7701+
version "0.15.11"
7702+
resolved "https://registry.yarnpkg.com/typography-theme-doelger/-/typography-theme-doelger-0.15.11.tgz#551e861bec06d3dd6cfe12c2326e1c3be36c3ec6"
7703+
dependencies:
7704+
gray-percentage "^2.0.0"
7705+
typography-breakpoint-constants "^0.15.10"
7706+
7707+
typography@^0.16.0, typography@^0.16.6:
7708+
version "0.16.6"
7709+
resolved "https://registry.yarnpkg.com/typography/-/typography-0.16.6.tgz#8eeb6a3f10a97fd08025132bb50272104ae72aa3"
7710+
dependencies:
7711+
compass-vertical-rhythm "^1.3.0"
7712+
decamelize "^1.2.0"
7713+
gray-percentage "^2.0.0"
7714+
lodash "^4.13.1"
7715+
modularscale "^1.0.2"
7716+
object-assign "^4.1.0"
7717+
typography-normalize "^0.14.0"
7718+
76437719
ua-parser-js@^0.7.9:
76447720
version "0.7.17"
76457721
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.17.tgz#e9ec5f9498b9ec910e7ae3ac626a805c4d09ecac"

0 commit comments

Comments
 (0)