Skip to content

Commit 61902f6

Browse files
authored
Merge pull request #83 from tailwindlabs/update-colors
Pull colors from tailwindcss/colors, not defaultTheme
2 parents 3d8b485 + 93857e1 commit 61902f6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"concurrently": "^5.3.0",
3131
"live-server": "^1.2.1",
3232
"postcss": "^8.1.7",
33-
"tailwindcss": "^2.0.3"
33+
"tailwindcss": "insiders"
3434
},
3535
"dependencies": {
3636
"mini-svg-data-uri": "^1.2.3"

src/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
const svgToDataUri = require('mini-svg-data-uri')
22
const plugin = require('tailwindcss/plugin')
33
const defaultTheme = require('tailwindcss/defaultTheme')
4+
const colors = require('tailwindcss/colors')
45
const [baseFontSize, { lineHeight: baseLineHeight }] = defaultTheme.fontSize.base
5-
const { colors, spacing, borderWidth, borderRadius, outline } = defaultTheme
6+
const { spacing, borderWidth, borderRadius, outline } = defaultTheme
67

78
const forms = plugin.withOptions(function (options = { strategy: 'base' }) {
89
return function ({ addBase, theme }) {

0 commit comments

Comments
 (0)