Skip to content

Commit

Permalink
fix: use correct condition for adding a dark mode variant
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadsammy committed Dec 12, 2021
1 parent 1451e11 commit 82cadf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli/core/TailwindConfigParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export class TailwindConfigParser {
});

// Add dark variant
if (this.getDarkMode() === 'class') {
if (!!this.getDarkMode() !== false) {
variants.push('dark');
}

Expand Down
2 changes: 1 addition & 1 deletion src/cli/core/constants/baseVariants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ export const baseVariants = [
'before',
'after',
// dark mode utility
'dark', //
// 'dark', //
];

0 comments on commit 82cadf0

Please sign in to comment.