add missing variants (#256)

master
Brad Cornes 2021-02-05 12:25:54 +00:00
parent cb5d6b6b3a
commit 6304d223ae
1 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,9 @@ export default function getVariants({
semver.gte(version, '1.1.0') && semver.gte(version, '1.1.0') &&
variants.push('first', 'last', 'odd', 'even', 'disabled', 'visited') variants.push('first', 'last', 'odd', 'even', 'disabled', 'visited')
semver.gte(version, '1.3.0') && variants.push('group-focus') semver.gte(version, '1.3.0') && variants.push('group-focus')
semver.gte(version, '1.5.0') && variants.push('focus-visible', 'checked')
semver.gte(version, '1.6.0') && variants.push('motion-safe', 'motion-reduce')
semver.gte(version, '2.0.0-alpha.1') && variants.push('dark')
let plugins = Array.isArray(config.plugins) ? config.plugins : [] let plugins = Array.isArray(config.plugins) ? config.plugins : []