From 93857e10110d90c7d60eefa864756dc8910f7360 Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Thu, 30 Sep 2021 05:51:56 -0400 Subject: [PATCH] Pull colors from tailwindcss/colors, not defaultTheme --- package.json | 2 +- src/index.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2e8cdf3..c943b00 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "concurrently": "^5.3.0", "live-server": "^1.2.1", "postcss": "^8.1.7", - "tailwindcss": "^2.0.3" + "tailwindcss": "insiders" }, "dependencies": { "mini-svg-data-uri": "^1.2.3" diff --git a/src/index.js b/src/index.js index fcc6e48..3942434 100644 --- a/src/index.js +++ b/src/index.js @@ -1,8 +1,9 @@ const svgToDataUri = require('mini-svg-data-uri') const plugin = require('tailwindcss/plugin') const defaultTheme = require('tailwindcss/defaultTheme') +const colors = require('tailwindcss/colors') const [baseFontSize, { lineHeight: baseLineHeight }] = defaultTheme.fontSize.base -const { colors, spacing, borderWidth, borderRadius, outline } = defaultTheme +const { spacing, borderWidth, borderRadius, outline } = defaultTheme const forms = plugin.withOptions(function (options = { strategy: 'base' }) { return function ({ addBase, theme }) {