Skip to content

Commit 3bfbd1a

Browse files
committed
Add default options
1 parent ab4790d commit 3bfbd1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ const defaultTheme = require('tailwindcss/defaultTheme')
44
const [baseFontSize, { lineHeight: baseLineHeight }] = defaultTheme.fontSize.base
55
const { colors, spacing, borderWidth, borderRadius, outline } = defaultTheme
66

7-
const forms = plugin.withOptions(function (options) {
7+
const forms = plugin.withOptions(function (options = { strategy: 'class' }) {
88
return function ({ addBase, theme }) {
9-
const strategy = options && options.strategy === 'class' ? 'class' : 'base'
9+
const strategy = options.strategy
1010

1111
const rules = [
1212
{

0 commit comments

Comments
 (0)