Skip to content

Commit

Permalink
fix(plugin): use opacity from theme for backgroundOpacity
Browse files Browse the repository at this point in the history
  • Loading branch information
estevanmaito committed Jul 8, 2020
1 parent 5bec094 commit 1c2931f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions plugin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const plugin = require('tailwindcss/plugin')
const defaultTheme = require('tailwindcss/defaultTheme')
const Color = require('color')
const customFormsPlugin = require('@tailwindcss/custom-forms')
const multiThemePlugin = require('tailwindcss-multi-theme')
Expand Down Expand Up @@ -169,10 +168,10 @@ const minWidth = (theme) => ({
...theme('spacing'),
})

const backgroundOpacity = {
const backgroundOpacity = (theme) => ({
'10': '0.1',
...defaultTheme.backgroundOpacity,
}
...theme('opacity'),
})

const maxHeight = (theme) => ({
'0': '0',
Expand Down

0 comments on commit 1c2931f

Please sign in to comment.