File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ const safelistByComponent = {
5050 } ] ,
5151 button : ( colorsAsRegex ) => [ {
5252 pattern : new RegExp ( `bg-(${ colorsAsRegex } )-50` ) ,
53- variants : [ 'hover' ]
53+ variants : [ 'hover' , 'disabled' ]
5454 } , {
5555 pattern : new RegExp ( `bg-(${ colorsAsRegex } )-100` ) ,
5656 variants : [ 'hover' ]
@@ -68,13 +68,13 @@ const safelistByComponent = {
6868 variants : [ 'dark:hover' ]
6969 } , {
7070 pattern : new RegExp ( `bg-(${ colorsAsRegex } )-950` ) ,
71- variants : [ 'dark' , 'dark:hover' ]
71+ variants : [ 'dark' , 'dark:hover' , 'dark:disabled' ]
7272 } , {
7373 pattern : new RegExp ( `text-(${ colorsAsRegex } )-400` ) ,
74- variants : [ 'dark' ]
74+ variants : [ 'dark' , 'dark:disabled' ]
7575 } , {
7676 pattern : new RegExp ( `text-(${ colorsAsRegex } )-500` ) ,
77- variants : [ 'dark:hover' ]
77+ variants : [ 'dark:hover' , 'disabled' ]
7878 } , {
7979 pattern : new RegExp ( `text-(${ colorsAsRegex } )-600` ) ,
8080 variants : [ 'hover' ]
Original file line number Diff line number Diff line change @@ -182,10 +182,10 @@ const button = {
182182 } ,
183183 variant : {
184184 solid : 'shadow-sm text-white dark:text-gray-900 bg-{color}-500 hover:bg-{color}-600 disabled:bg-{color}-500 dark:bg-{color}-400 dark:hover:bg-{color}-500 dark:disabled:bg-{color}-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-{color}-500 dark:focus-visible:outline-{color}-400' ,
185- outline : 'ring-1 ring-inset ring-current text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 dark:hover:bg-{color}-950 focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400' ,
186- soft : 'text-{color}-500 dark:text-{color}-400 bg-{color}-50 hover:bg-{color}-100 dark:bg-{color}-950 dark:hover:bg-{color}-900 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400' ,
187- ghost : 'text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 dark:hover:bg-{color}-950 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400' ,
188- link : 'text-{color}-500 hover:text-{color}-600 dark:text-{color}-400 dark:hover:text-{color}-500 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400'
185+ outline : 'ring-1 ring-inset ring-current text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400' ,
186+ soft : 'text-{color}-500 dark:text-{color}-400 bg-{color}-50 hover:bg-{color}-100 disabled:bg-{color}-50 dark:bg-{color}-950 dark:hover:bg-{color}-900 dark:disabled:bg-{color}-950 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400' ,
187+ ghost : 'text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400' ,
188+ link : 'text-{color}-500 hover:text-{color}-600 disabled:text-{color}-500 dark:text-{color}-400 dark:hover:text-{color}-500 dark:disabled:text-{color}-400 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400'
189189 } ,
190190 icon : {
191191 base : 'flex-shrink-0' ,
You can’t perform that action at this time.
0 commit comments