feat: add variantwind

This commit is contained in:
Anthony Fu committed 2020-08-10 20:31:44 +08:00
1 parent 858161226e
commit 9e1481b2de
5 files changed
+19 -7

No files matched your search

+10 -1
View File
@@ -1,4 +1,5 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const { extractor } = require('variantwind')
module.exports = {
purge: {
@@ -11,6 +12,14 @@ module.exports = {
whitelist: [
'schema-dark',
],
options: {
extractors: [
{
extractor,
extensions: ['vue'],
},
],
},
},
theme: {
darkSelector: '.schema-dark',
@@ -23,7 +32,7 @@ module.exports = {
},
variants: {
backgroundColor: ['dark', 'dark-hover', 'dark-group-hover', 'hover'],
borderColor: ['dark', 'dark-disabled', 'dark-focus', 'dark-active'],
borderColor: ['dark', 'dark-disabled', 'dark-focus', 'dark-active', 'active', 'focus', 'disabled'],
textColor: ['dark', 'dark-hover', 'dark-active', 'hover', 'active'],
},
plugins: [