Skip to content

Commit 241ac86

Browse files
committed
add default box shadow reset
1 parent 39946dd commit 241ac86

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: src/index.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const forms = plugin.withOptions(function (options = { strategy: 'base' }) {
4040
'padding-left': spacing[3],
4141
'font-size': baseFontSize,
4242
'line-height': baseLineHeight,
43+
'--tw-shadow': '0 0 #0000',
4344
'&:focus': {
4445
outline: outline.none[0],
4546
'outline-offset': outline.none[1],
@@ -49,7 +50,7 @@ const forms = plugin.withOptions(function (options = { strategy: 'base' }) {
4950
'--tw-ring-color': theme('colors.blue.600', colors.blue[600]),
5051
'--tw-ring-offset-shadow': `var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`,
5152
'--tw-ring-shadow': `var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)`,
52-
'box-shadow': `var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)`,
53+
'box-shadow': `var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)`,
5354
'border-color': theme('colors.blue.600', colors.blue[600]),
5455
},
5556
},
@@ -94,6 +95,7 @@ const forms = plugin.withOptions(function (options = { strategy: 'base' }) {
9495
'background-size': `1.5em 1.5em`,
9596
'padding-right': spacing[10],
9697
'color-adjust': `exact`,
98+
'--tw-shadow': '0 0 #0000',
9799
},
98100
},
99101
{
@@ -126,6 +128,7 @@ const forms = plugin.withOptions(function (options = { strategy: 'base' }) {
126128
'background-color': '#fff',
127129
'border-color': theme('colors.gray.500', colors.gray[500]),
128130
'border-width': borderWidth['DEFAULT'],
131+
'--tw-shadow': '0 0 #0000',
129132
},
130133
},
131134
{
@@ -154,7 +157,7 @@ const forms = plugin.withOptions(function (options = { strategy: 'base' }) {
154157
'--tw-ring-color': theme('colors.blue.600', colors.blue[600]),
155158
'--tw-ring-offset-shadow': `var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`,
156159
'--tw-ring-shadow': `var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)`,
157-
'box-shadow': `var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)`,
160+
'box-shadow': `var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)`,
158161
},
159162
},
160163
{

0 commit comments

Comments
 (0)