@@ -3,7 +3,7 @@ const plugin = require('tailwindcss/plugin')
3
3
const defaultTheme = require ( 'tailwindcss/defaultTheme' )
4
4
const colors = require ( 'tailwindcss/colors' )
5
5
const [ baseFontSize , { lineHeight : baseLineHeight } ] = defaultTheme . fontSize . base
6
- const { spacing, borderWidth, borderRadius, outline } = defaultTheme
6
+ const { spacing, borderWidth, borderRadius } = defaultTheme
7
7
8
8
const forms = plugin . withOptions ( function ( options = { strategy : 'base' } ) {
9
9
return function ( { addBase, theme } ) {
@@ -43,8 +43,8 @@ const forms = plugin.withOptions(function (options = { strategy: 'base' }) {
43
43
'line-height' : baseLineHeight ,
44
44
'--tw-shadow' : '0 0 #0000' ,
45
45
'&:focus' : {
46
- outline : outline . none [ 0 ] ,
47
- 'outline-offset' : outline . none [ 1 ] ,
46
+ outline : '2px solid transparent' ,
47
+ 'outline-offset' : '2px' ,
48
48
'--tw-ring-inset' : 'var(--tw-empty,/*!*/ /*!*/)' ,
49
49
'--tw-ring-offset-width' : '0px' ,
50
50
'--tw-ring-offset-color' : '#fff' ,
@@ -149,8 +149,8 @@ const forms = plugin.withOptions(function (options = { strategy: 'base' }) {
149
149
base : [ `[type='checkbox']:focus` , `[type='radio']:focus` ] ,
150
150
class : [ '.form-checkbox:focus' , '.form-radio:focus' ] ,
151
151
styles : {
152
- outline : outline . none [ 0 ] ,
153
- 'outline-offset' : outline . none [ 1 ] ,
152
+ outline : '2px solid transparent' ,
153
+ 'outline-offset' : '2px' ,
154
154
'--tw-ring-inset' : 'var(--tw-empty,/*!*/ /*!*/)' ,
155
155
'--tw-ring-offset-width' : '2px' ,
156
156
'--tw-ring-offset-color' : '#fff' ,
0 commit comments