@@ -80,7 +80,7 @@ test('only dark variables with default options and `media` mode', async () => {
80
80
` )
81
81
} )
82
82
83
- test ( 'if the `darkMode` is set to `media`, the `darkSelector` and `darkToRoot` options should not work' , async ( ) => {
83
+ test ( 'if the `darkMode` is set to `media`, `darkToRoot` options should not work' , async ( ) => {
84
84
expect (
85
85
await utils . diffOnly ( {
86
86
content : [ utils . content ( ) ] ,
@@ -103,7 +103,6 @@ test('if the `darkMode` is set to `media`, the `darkSelector` and `darkToRoot` o
103
103
104
104
plugins : [
105
105
tailwindcssVariables ( {
106
- darkSelector : '.custom-dark-selector' ,
107
106
darkToRoot : true ,
108
107
} ) ,
109
108
] ,
@@ -171,7 +170,7 @@ test('only dark variables with custom options and `class` mode', async () => {
171
170
expect (
172
171
await utils . diffOnly ( {
173
172
content : [ utils . content ( 'dark-mode-to-root' ) ] ,
174
- darkMode : 'class' ,
173
+ darkMode : [ 'class' , '.custom-dark-selector' ] ,
175
174
theme : {
176
175
darkVariables : {
177
176
DEFAULT : {
@@ -191,7 +190,6 @@ test('only dark variables with custom options and `class` mode', async () => {
191
190
plugins : [
192
191
tailwindcssVariables ( {
193
192
variablePrefix : 'my-prefix' ,
194
- darkSelector : '.custom-dark-selector' ,
195
193
darkToRoot : true ,
196
194
} ) ,
197
195
] ,
@@ -373,11 +371,11 @@ test('variables and dark variables with default options and `media` mode', async
373
371
` )
374
372
} )
375
373
376
- test ( 'variables and dark variables with custom darkSelector and `class` mode' , async ( ) => {
374
+ test ( 'variables and dark variables with custom selector and `class` mode' , async ( ) => {
377
375
expect (
378
376
await utils . diffOnly ( {
379
377
content : [ utils . content ( ) ] ,
380
- darkMode : 'class' ,
378
+ darkMode : [ 'class' , '.custom-dark-selector' ] ,
381
379
theme : {
382
380
variables : {
383
381
DEFAULT : {
@@ -408,11 +406,7 @@ test('variables and dark variables with custom darkSelector and `class` mode', a
408
406
} ,
409
407
} ,
410
408
411
- plugins : [
412
- tailwindcssVariables ( {
413
- darkSelector : '.custom-dark-selector' ,
414
- } ) ,
415
- ] ,
409
+ plugins : [ tailwindcssVariables ( ) ] ,
416
410
} )
417
411
) . toMatchInlineSnapshot ( `
418
412
"
@@ -501,7 +495,7 @@ test('variables and dark variables with custom options and `class` mode', async
501
495
expect (
502
496
await utils . diffOnly ( {
503
497
content : [ utils . content ( 'dark-mode-to-root' ) ] ,
504
- darkMode : 'class' ,
498
+ darkMode : [ 'class' , '.custom-dark-selector' ] ,
505
499
theme : {
506
500
variables : {
507
501
DEFAULT : {
@@ -535,7 +529,6 @@ test('variables and dark variables with custom options and `class` mode', async
535
529
plugins : [
536
530
tailwindcssVariables ( {
537
531
variablePrefix : 'my-prefix' ,
538
- darkSelector : '.custom-dark-selector' ,
539
532
darkToRoot : true ,
540
533
} ) ,
541
534
] ,
0 commit comments