typography-theme-github
Advanced tools
Comparing version 0.13.0 to 0.13.1
@@ -7,2 +7,4 @@ 'use strict'; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _grayPercentage = require('gray-percentage'); | ||
@@ -20,3 +22,3 @@ | ||
bodyFontFamily: ['-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', 'sans-serif', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'], | ||
scale: 2.25, | ||
scale: 2, | ||
headerGray: 20, | ||
@@ -31,2 +33,3 @@ bodyGray: 20, | ||
var rhythm = _ref.rhythm; | ||
var adjustFontSizeToMSValue = _ref.adjustFontSizeToMSValue; | ||
return { | ||
@@ -39,3 +42,3 @@ h1: { | ||
}, | ||
h2: { | ||
h2: _extends({}, adjustFontSizeToMSValue(3 / 5), { | ||
borderBottom: '1px solid ' + (0, _grayPercentage2.default)(93), | ||
@@ -45,3 +48,9 @@ paddingBottom: 'calc(' + rhythm(1 / 4) + ' - 1px)', | ||
marginTop: rhythm(1) | ||
}, | ||
}), | ||
h3: _extends({}, adjustFontSizeToMSValue(2 / 5)), | ||
h4: _extends({}, adjustFontSizeToMSValue(0 / 5)), | ||
h5: _extends({}, adjustFontSizeToMSValue(-1 / 5)), | ||
h6: _extends({}, adjustFontSizeToMSValue(-1.5 / 5), { | ||
color: (0, _grayPercentage2.default)(47) | ||
}), | ||
'h3,h4,h5,h6': { | ||
@@ -48,0 +57,0 @@ marginBottom: rhythm(1 / 2), |
{ | ||
"name": "typography-theme-github", | ||
"description": "A theme for Typography.js inspired by Github's Markdown typography", | ||
"version": "0.13.0", | ||
"version": "0.13.1", | ||
"author": "Kyle Mathews <mathews.kyle@gmail.com>", | ||
@@ -6,0 +6,0 @@ "dependencies": { |
@@ -33,3 +33,3 @@ // @flow | ||
], | ||
scale: 2.25, | ||
scale: 2, | ||
headerGray: 20, | ||
@@ -55,2 +55,5 @@ bodyGray: 20, | ||
}, | ||
h6: { | ||
color: gray(47), | ||
}, | ||
'h3,h4,h5,h6': { | ||
@@ -57,0 +60,0 @@ marginBottom: rhythm(1/2), |
Sorry, the diff of this file is not supported yet
44222
157