Skip to content

Commit 5657e0b

Browse files
committed
Swap Elk Glen and de Young themes so de Young theme more befitting art museum
1 parent c5fe283 commit 5657e0b

File tree

7 files changed

+56
-56
lines changed

7 files changed

+56
-56
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# De Young — a <a href='https://github.com/kyleamathews/typography.js'>Typography.js</a> theme
1+
# Elk Glen — a <a href='https://github.com/kyleamathews/typography.js'>Typography.js</a> theme
22

33
A theme for Typography.js
44

55
## Install
66
```bash
7-
npm install --save typography typography-theme-de-young
7+
npm install --save typography typography-theme-elk-glen
88
```
99
## Usage
1010
```javascript
1111
import Typography from 'typography'
12-
import deYoungTheme from 'typography-theme-de-young'
12+
import elkGlenTheme from 'typography-theme-elk-glen'
1313

14-
const typography = new Typography(deYoungTheme)
14+
const typography = new Typography(elkGlenTheme)
1515
```
1616
## More on theme
1717

18-
De Young uses "<a href='https://fonts.google.com/specimen/Oswald'>Oswald</a>" for headers and "<a href='https://fonts.google.com/specimen/PT+Sans'>PT Sans</a>" for body text
18+
Elk Glen uses "<a href='https://fonts.google.com/specimen/Alegreya+Sans'>Alegreya Sans</a>" for headers and "<a href='https://fonts.google.com/specimen/Alegreya'>Alegreya</a>" for body text

packages/typography-theme-de-young/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "typography-theme-de-young",
33
"description": "A theme for Typography.js",
4-
"version": "0.11.12",
4+
"version": "0.11.7",
55
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
66
"dependencies": {
77
"compass-vertical-rhythm": "^1.2.1",

packages/typography-theme-de-young/src/index.js

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,67 +7,59 @@ import verticalRhythm from 'compass-vertical-rhythm'
77
const theme: OptionsType = {
88
title: 'de Young',
99
baseFontSize: '20px',
10-
baseLineHeight: '30px',
10+
baseLineHeight: '33px',
1111
googleFonts: [
1212
{
13-
name: 'Oswald',
13+
name: 'Alegreya Sans',
1414
styles: [
15-
'700',
15+
'500',
1616
],
1717
},
1818
{
19-
name: 'PT Sans',
19+
name: 'Alegreya',
2020
styles: [
2121
'400',
2222
'400i',
2323
'700',
24+
'700i',
2425
],
2526
},
2627
],
27-
headerFontFamily: ['Oswald', 'sans-serif'],
28-
bodyFontFamily: ['PT Sans', 'sans-serif'],
28+
headerFontFamily: ['Alegreya Sans', 'sans-serif'],
29+
bodyFontFamily: ['Alegreya', 'sans-serif'],
2930
headerGray: 10,
3031
bodyGray: 20,
31-
headerWeight: '700',
32+
headerWeight: 500,
3233
bodyWeight: 400,
3334
boldWeight: 700,
3435
overrideStyles: ({ adjustFontSizeTo, adjustFontSizeToMSValue, rhythm }, options) => {
35-
const linkColor = '#292d35'
3636
const vr = verticalRhythm({
37-
baseFontSize: '17px',
38-
baseLineHeight: '24.65px',
37+
baseFontSize: '18px',
38+
baseLineHeight: '29.7px',
3939
})
40+
4041
return {
4142
a: {
42-
color: linkColor,
43+
color: 'hsl(230,55%,58%)',
4344
textDecoration: 'none',
44-
textShadow: '.03em 0 #fff,-.03em 0 #fff,0 .03em #fff,0 -.03em #fff,.06em 0 #fff,-.06em 0 #fff,.09em 0 #fff,-.09em 0 #fff,.12em 0 #fff,-.12em 0 #fff,.15em 0 #fff,-.15em 0 #fff', // eslint-disable-line
45-
backgroundImage: `linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 1px, ${linkColor} 1px, ${linkColor} 2px, rgba(0, 0, 0, 0) 2px)`, // eslint-disable-line
4645
},
4746
'a:hover,a:active': {
48-
textShadow: 'none',
49-
backgroundImage: 'none',
50-
},
51-
'h1,h2,h3,h4,h5,h6': {
52-
marginTop: rhythm(2),
47+
boxShadow: '0 1px 0 0 currentColor',
5348
},
54-
// Blockquote styles.
5549
blockquote: {
5650
...adjustFontSizeToMSValue(1/5),
57-
borderLeft: `${rhythm(6/16)} solid ${linkColor}`,
5851
color: gray(35),
59-
paddingLeft: rhythm(10/16),
6052
fontStyle: 'italic',
53+
paddingLeft: rhythm(11/16),
6154
marginLeft: 0,
62-
marginRight: 0,
55+
borderLeft: `${rhythm(5/16)} solid ${gray(80)}`,
6356
},
6457
'blockquote > :last-child': {
6558
marginBottom: 0,
6659
},
6760
'blockquote cite': {
6861
...adjustFontSizeTo(options.baseFontSize),
6962
color: gray(options.bodyGray),
70-
fontStyle: 'normal',
7163
fontWeight: options.bodyWeight,
7264
},
7365
'blockquote cite:before': {
@@ -78,12 +70,10 @@ const theme: OptionsType = {
7870
...vr.establishBaseline(),
7971
},
8072
blockquote: {
81-
borderLeft: `${rhythm(3/16)} solid ${linkColor}`,
82-
color: gray(41),
83-
paddingLeft: rhythm(9/16),
84-
fontStyle: 'italic',
73+
borderLeft: `${rhythm(3/16)} solid ${gray(80)}`,
8574
marginLeft: rhythm(-3/4),
8675
marginRight: 0,
76+
paddingLeft: rhythm(9/16),
8777
},
8878
},
8979
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# Elk Glen — a <a href='https://github.com/kyleamathews/typography.js'>Typography.js</a> theme
1+
# De Young — a <a href='https://github.com/kyleamathews/typography.js'>Typography.js</a> theme
22

33
A theme for Typography.js
44

55
## Install
66
```bash
7-
npm install --save typography typography-theme-elk-glen
7+
npm install --save typography typography-theme-de-young
88
```
99
## Usage
1010
```javascript
1111
import Typography from 'typography'
12-
import elkGlenTheme from 'typography-theme-elk-glen'
12+
import deYoungTheme from 'typography-theme-de-young'
1313

14-
const typography = new Typography(elkGlenTheme)
14+
const typography = new Typography(deYoungTheme)
1515
```
1616
## More on theme
1717

18-
Elk Glen uses "<a href='https://fonts.google.com/specimen/Alegreya+Sans'>Alegreya Sans</a>" for headers and "<a href='https://fonts.google.com/specimen/Alegreya'>Alegreya</a>" for body text
18+
De Young uses "<a href='https://fonts.google.com/specimen/Oswald'>Oswald</a>" for headers and "<a href='https://fonts.google.com/specimen/PT+Sans'>PT Sans</a>" for body text

packages/typography-theme-elk-glen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "typography-theme-elk-glen",
33
"description": "A theme for Typography.js",
4-
"version": "0.11.7",
4+
"version": "0.11.12",
55
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
66
"dependencies": {
77
"compass-vertical-rhythm": "^1.2.1",

packages/typography-theme-elk-glen/src/index.js

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,59 +7,67 @@ import verticalRhythm from 'compass-vertical-rhythm'
77
const theme: OptionsType = {
88
title: 'Elk Glen',
99
baseFontSize: '20px',
10-
baseLineHeight: '33px',
10+
baseLineHeight: '30px',
1111
googleFonts: [
1212
{
13-
name: 'Alegreya Sans',
13+
name: 'Oswald',
1414
styles: [
15-
'500',
15+
'700',
1616
],
1717
},
1818
{
19-
name: 'Alegreya',
19+
name: 'PT Sans',
2020
styles: [
2121
'400',
2222
'400i',
2323
'700',
24-
'700i',
2524
],
2625
},
2726
],
28-
headerFontFamily: ['Alegreya Sans', 'sans-serif'],
29-
bodyFontFamily: ['Alegreya', 'sans-serif'],
27+
headerFontFamily: ['Oswald', 'sans-serif'],
28+
bodyFontFamily: ['PT Sans', 'sans-serif'],
3029
headerGray: 10,
3130
bodyGray: 20,
32-
headerWeight: 500,
31+
headerWeight: '700',
3332
bodyWeight: 400,
3433
boldWeight: 700,
3534
overrideStyles: ({ adjustFontSizeTo, adjustFontSizeToMSValue, rhythm }, options) => {
35+
const linkColor = '#292d35'
3636
const vr = verticalRhythm({
37-
baseFontSize: '18px',
38-
baseLineHeight: '29.7px',
37+
baseFontSize: '17px',
38+
baseLineHeight: '24.65px',
3939
})
40-
4140
return {
4241
a: {
43-
color: 'hsl(230,55%,58%)',
42+
color: linkColor,
4443
textDecoration: 'none',
44+
textShadow: '.03em 0 #fff,-.03em 0 #fff,0 .03em #fff,0 -.03em #fff,.06em 0 #fff,-.06em 0 #fff,.09em 0 #fff,-.09em 0 #fff,.12em 0 #fff,-.12em 0 #fff,.15em 0 #fff,-.15em 0 #fff', // eslint-disable-line
45+
backgroundImage: `linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 1px, ${linkColor} 1px, ${linkColor} 2px, rgba(0, 0, 0, 0) 2px)`, // eslint-disable-line
4546
},
4647
'a:hover,a:active': {
47-
boxShadow: '0 1px 0 0 currentColor',
48+
textShadow: 'none',
49+
backgroundImage: 'none',
50+
},
51+
'h1,h2,h3,h4,h5,h6': {
52+
marginTop: rhythm(2),
4853
},
54+
// Blockquote styles.
4955
blockquote: {
5056
...adjustFontSizeToMSValue(1/5),
57+
borderLeft: `${rhythm(6/16)} solid ${linkColor}`,
5158
color: gray(35),
59+
paddingLeft: rhythm(10/16),
5260
fontStyle: 'italic',
53-
paddingLeft: rhythm(11/16),
5461
marginLeft: 0,
55-
borderLeft: `${rhythm(5/16)} solid ${gray(80)}`,
62+
marginRight: 0,
5663
},
5764
'blockquote > :last-child': {
5865
marginBottom: 0,
5966
},
6067
'blockquote cite': {
6168
...adjustFontSizeTo(options.baseFontSize),
6269
color: gray(options.bodyGray),
70+
fontStyle: 'normal',
6371
fontWeight: options.bodyWeight,
6472
},
6573
'blockquote cite:before': {
@@ -70,10 +78,12 @@ const theme: OptionsType = {
7078
...vr.establishBaseline(),
7179
},
7280
blockquote: {
73-
borderLeft: `${rhythm(3/16)} solid ${gray(80)}`,
81+
borderLeft: `${rhythm(3/16)} solid ${linkColor}`,
82+
color: gray(41),
83+
paddingLeft: rhythm(9/16),
84+
fontStyle: 'italic',
7485
marginLeft: rhythm(-3/4),
7586
marginRight: 0,
76-
paddingLeft: rhythm(9/16),
7787
},
7888
},
7989
}

0 commit comments

Comments
 (0)