Skip to content

Commit a0de7e0

Browse files
committed
Port appearance module to plugin
1 parent a6e96c8 commit a0de7e0

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/defaultPlugins.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import appearance from './plugins/appearance'
12
import backgroundAttachment from './plugins/backgroundAttachment'
23
import backgroundColors from './plugins/backgroundColors'
34
import backgroundPosition from './plugins/backgroundPosition'
@@ -49,6 +50,7 @@ import zIndex from './plugins/zIndex'
4950

5051
export default function (config) {
5152
return [
53+
config.modules.appearance === false ? () => {} : appearance(),
5254
config.modules.backgroundAttachment === false ? () => {} : backgroundAttachment(),
5355
config.modules.backgroundColors === false ? () => {} : backgroundColors(),
5456
config.modules.backgroundPosition === false ? () => {} : backgroundPosition(),

src/generators/appearance.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/plugins/appearance.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default function () {
2+
return function ({ addUtilities, config }) {
3+
addUtilities({
4+
'.appearance-none': { appearance: 'none' },
5+
}, config('modules.appearance'))
6+
}
7+
}

src/utilityModules.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import lists from './generators/lists'
2-
import appearance from './generators/appearance'
32

43
export default [
54
{ name: 'lists', generator: lists },
6-
{ name: 'appearance', generator: appearance },
75
]

0 commit comments

Comments
 (0)