Replace tailwind multi-theme plugin
This commit is contained in:
+6
-7
@@ -66,7 +66,6 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
}),
|
||||
themeVariants: [ 'ep', 'sbw', 'snz', 'uch' ],
|
||||
extend: {
|
||||
colors: {
|
||||
'overlay': {
|
||||
@@ -85,8 +84,6 @@ module.exports = {
|
||||
'sbw': {
|
||||
'primary': '#f0bc44',
|
||||
'secondary': '#ee525a',
|
||||
'primary-light': '#f0bc44',
|
||||
'primary-medium': '#f0bc44',
|
||||
'primary-dark': '#f0bc44',
|
||||
'primary-10': tinycolor('#f0bc44').setAlpha(0.1).toRgbString(),
|
||||
'primary-80': tinycolor('#f0bc44').setAlpha(0.8).toRgbString(),
|
||||
@@ -118,9 +115,9 @@ module.exports = {
|
||||
},
|
||||
},
|
||||
variants: {
|
||||
backgroundColor: ({ after }) => after([ 'ep', 'ep:hover', 'sbw', 'sbw:hover', 'snz', 'snz:hover', 'uch', 'uch:hover', 'even', 'odd' ]),
|
||||
textColor: ({ after }) => after([ 'ep', 'ep:hover', 'ep:focus', 'sbw', 'sbw:hover', 'snz', 'snz:hover', 'uch', 'uch:hover' ]),
|
||||
borderColor: ({ after }) => after([ 'ep', 'sbw','snz', 'uch' ]),
|
||||
backgroundColor: ({ after }) => after([ 'sbw', 'sbw-hover', 'snz', 'snz-hover', 'uch', 'uch-hover', 'even', 'odd' ]),
|
||||
textColor: ({ after }) => after([ 'sbw', 'sbw-hover', 'snz', 'snz-hover', 'uch', 'uch-hover' ]),
|
||||
borderColor: ({ after }) => after([ 'sbw','snz', 'uch' ]),
|
||||
display: ({ after }) => after(['group-hover']),
|
||||
visibility: ({ after }) => after(['group-hover']),
|
||||
opacity: ({ after }) => after(['group-hover']),
|
||||
@@ -129,7 +126,9 @@ module.exports = {
|
||||
padding: ({ after }) => after(['even', 'odd']),
|
||||
},
|
||||
plugins: [
|
||||
require('tailwindcss-multi-theme'),
|
||||
require('tailwindcss-alt')({
|
||||
variants: ['sbw', 'snz', 'uch'],
|
||||
}),
|
||||
require('@tailwindcss/custom-forms'),
|
||||
require('@tailwindcss/aspect-ratio'),
|
||||
plugin(function ({addVariant, e}) {
|
||||
|
||||
Reference in New Issue
Block a user