Skip to content

Commit 1a51113

Browse files
authored
Merge pull request #79 from tailwindlabs/prepare-tailwind-2.0
Prepare for Tailwind 2.0
2 parents 942d0b9 + 49ec7a7 commit 1a51113

File tree

4 files changed

+166
-70
lines changed

4 files changed

+166
-70
lines changed

package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,22 @@
55
"main": "src/index.js",
66
"repository": "https://github.com/tailwindcss/typography",
77
"license": "MIT",
8+
"publishConfig": {
9+
"access": "public"
10+
},
11+
"prettier": {
12+
"printWidth": 100,
13+
"semi": false,
14+
"singleQuote": true,
15+
"trailingComma": "es5"
16+
},
817
"scripts": {
918
"dev": "next dev demo",
1019
"build": "next build demo",
1120
"export": "next export demo",
1221
"deploy": "npm run build && npm run export",
1322
"start": "next start demo",
14-
"prepare": "node scripts/build.js"
23+
"prepublishOnly": "node scripts/build.js"
1524
},
1625
"peerDependencies": {
1726
"tailwindcss": "^1.5.0"
@@ -29,6 +38,6 @@
2938
"postcss": "^7.0.17",
3039
"react": "^16.8.6",
3140
"react-dom": "^16.8.6",
32-
"tailwindcss": "^1.5"
41+
"tailwindcss": "^2.0.0-alpha.1"
3342
}
3443
}

src/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ module.exports = plugin.withOptions(
2525
addComponents(
2626
[
2727
{
28-
[`.${className}`]: merge(...castArray(styles.default.css), configToCss(config.default || {})),
28+
[`.${className}`]: merge(
29+
...castArray(styles.default.css),
30+
configToCss(config.default || {})
31+
),
2932
},
3033
...modifiers.map((modifier) => ({
3134
[`.${className}-${modifier}`]: merge(

src/styles.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
color: defaultTheme.colors.gray[700],
1616
maxWidth: '65ch',
1717
'[class~="lead"]': {
18-
color: defaultTheme.colors.gray[700],
18+
color: defaultTheme.colors.gray[600],
1919
},
2020
a: {
2121
color: defaultTheme.colors.gray[900],
@@ -36,27 +36,27 @@ module.exports = {
3636
content: 'counter(list-counter) "."',
3737
position: 'absolute',
3838
fontWeight: '400',
39-
color: defaultTheme.colors.gray[600],
39+
color: defaultTheme.colors.gray[500],
4040
},
4141
'ul > li': {
4242
position: 'relative',
4343
},
4444
'ul > li::before': {
4545
content: '""',
4646
position: 'absolute',
47-
backgroundColor: defaultTheme.colors.gray[400],
47+
backgroundColor: defaultTheme.colors.gray[300],
4848
borderRadius: '50%',
4949
},
5050
hr: {
51-
borderColor: defaultTheme.colors.gray[300],
51+
borderColor: defaultTheme.colors.gray[200],
5252
borderTopWidth: 1,
5353
},
5454
blockquote: {
5555
fontWeight: '500',
5656
fontStyle: 'italic',
5757
color: defaultTheme.colors.gray[900],
5858
borderLeftWidth: '0.25rem',
59-
borderLeftColor: defaultTheme.colors.gray[300],
59+
borderLeftColor: defaultTheme.colors.gray[200],
6060
quotes: '"\\201C""\\201D""\\2018""\\2019"',
6161
},
6262
'blockquote p:first-of-type::before': {
@@ -82,7 +82,7 @@ module.exports = {
8282
fontWeight: '600',
8383
},
8484
'figure figcaption': {
85-
color: defaultTheme.colors.gray[600],
85+
color: defaultTheme.colors.gray[500],
8686
},
8787
code: {
8888
color: defaultTheme.colors.gray[900],
@@ -95,7 +95,7 @@ module.exports = {
9595
content: '"`"',
9696
},
9797
pre: {
98-
color: defaultTheme.colors.gray[300],
98+
color: defaultTheme.colors.gray[200],
9999
backgroundColor: defaultTheme.colors.gray[800],
100100
overflowX: 'auto',
101101
},
@@ -127,14 +127,14 @@ module.exports = {
127127
color: defaultTheme.colors.gray[900],
128128
fontWeight: '600',
129129
borderBottomWidth: '1px',
130-
borderBottomColor: defaultTheme.colors.gray[400],
130+
borderBottomColor: defaultTheme.colors.gray[300],
131131
},
132132
'thead th': {
133133
verticalAlign: 'bottom',
134134
},
135135
'tbody tr': {
136136
borderBottomWidth: '1px',
137-
borderBottomColor: defaultTheme.colors.gray[300],
137+
borderBottomColor: defaultTheme.colors.gray[200],
138138
},
139139
'tbody tr:last-child': {
140140
borderBottomWidth: '0',

0 commit comments

Comments
 (0)