Skip to content

Commit

Permalink
fix: support darkMode manual 'class' option (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
rockmusicmaker committed Apr 9, 2022
1 parent b8a6b04 commit 7cd6881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/core/TailwindConfigParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class TailwindConfigParser {

// get responsive variants
const [mediaBreakpoints] = this.getThemeProperty('screens');
if (this.getDarkMode() == 'media') mediaBreakpoints.push('dark');
if (this.getDarkMode() == 'media' || this.getDarkMode() == 'class') mediaBreakpoints.push('dark');

mediaBreakpoints.map((breakpoint: string) => {
if (!variants.includes(breakpoint)) {
Expand Down

0 comments on commit 7cd6881

Please sign in to comment.