@@ -80,7 +80,7 @@ test('only dark variables with default options and `media` mode', async () => {
8080 ` )
8181} )
8282
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 ( ) => {
8484 expect (
8585 await utils . diffOnly ( {
8686 content : [ utils . content ( ) ] ,
@@ -103,7 +103,6 @@ test('if the `darkMode` is set to `media`, the `darkSelector` and `darkToRoot` o
103103
104104 plugins : [
105105 tailwindcssVariables ( {
106- darkSelector : '.custom-dark-selector' ,
107106 darkToRoot : true ,
108107 } ) ,
109108 ] ,
@@ -171,7 +170,7 @@ test('only dark variables with custom options and `class` mode', async () => {
171170 expect (
172171 await utils . diffOnly ( {
173172 content : [ utils . content ( 'dark-mode-to-root' ) ] ,
174- darkMode : 'class' ,
173+ darkMode : [ 'class' , '.custom-dark-selector' ] ,
175174 theme : {
176175 darkVariables : {
177176 DEFAULT : {
@@ -191,7 +190,6 @@ test('only dark variables with custom options and `class` mode', async () => {
191190 plugins : [
192191 tailwindcssVariables ( {
193192 variablePrefix : 'my-prefix' ,
194- darkSelector : '.custom-dark-selector' ,
195193 darkToRoot : true ,
196194 } ) ,
197195 ] ,
@@ -373,11 +371,11 @@ test('variables and dark variables with default options and `media` mode', async
373371 ` )
374372} )
375373
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 ( ) => {
377375 expect (
378376 await utils . diffOnly ( {
379377 content : [ utils . content ( ) ] ,
380- darkMode : 'class' ,
378+ darkMode : [ 'class' , '.custom-dark-selector' ] ,
381379 theme : {
382380 variables : {
383381 DEFAULT : {
@@ -408,11 +406,7 @@ test('variables and dark variables with custom darkSelector and `class` mode', a
408406 } ,
409407 } ,
410408
411- plugins : [
412- tailwindcssVariables ( {
413- darkSelector : '.custom-dark-selector' ,
414- } ) ,
415- ] ,
409+ plugins : [ tailwindcssVariables ( ) ] ,
416410 } )
417411 ) . toMatchInlineSnapshot ( `
418412 "
@@ -501,7 +495,7 @@ test('variables and dark variables with custom options and `class` mode', async
501495 expect (
502496 await utils . diffOnly ( {
503497 content : [ utils . content ( 'dark-mode-to-root' ) ] ,
504- darkMode : 'class' ,
498+ darkMode : [ 'class' , '.custom-dark-selector' ] ,
505499 theme : {
506500 variables : {
507501 DEFAULT : {
@@ -535,7 +529,6 @@ test('variables and dark variables with custom options and `class` mode', async
535529 plugins : [
536530 tailwindcssVariables ( {
537531 variablePrefix : 'my-prefix' ,
538- darkSelector : '.custom-dark-selector' ,
539532 darkToRoot : true ,
540533 } ) ,
541534 ] ,
0 commit comments