Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Commit

Permalink
Fix variable not defined bug (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycs77 authored Oct 15, 2020
1 parent 537edcb commit 598c09a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const selectorParser = require('postcss-selector-parser');

module.exports = function() {
return function({addVariant, theme, e}) {
return function({addVariant, theme, e, prefix}) {
const darkSelector = theme('darkSelector', '.mode-dark');

addVariant('dark', ({ modifySelectors, separator }) => {
modifySelectors(({ selector }) => {
addVariant('dark', ({modifySelectors, separator}) => {
modifySelectors(({selector}) => {
return selectorParser((selectors) => {
selectors.walkClasses((sel) => {
sel.value = `dark${separator}${sel.value}`;
Expand Down

0 comments on commit 598c09a

Please sign in to comment.