Skip to content

Commit 3288709

Browse files
committed
Make default designs less opinionated
1 parent 5168ed6 commit 3288709

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/index.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ const forms = plugin(function ({ addBase, theme }) {
2525
`]: {
2626
appearance: 'none',
2727
'background-color': '#fff',
28-
'border-color': theme('colors.gray.300', colors.gray[300]),
28+
'border-color': theme('colors.gray.500', colors.gray[500]),
2929
'border-width': borderWidth['DEFAULT'],
30-
'border-radius': borderRadius.md,
30+
'border-radius': borderRadius.none,
3131
'padding-top': spacing[2],
3232
'padding-right': spacing[3],
3333
'padding-bottom': spacing[2],
@@ -49,7 +49,7 @@ const forms = plugin(function ({ addBase, theme }) {
4949
},
5050

5151
'input::placeholder, textarea::placeholder': {
52-
color: theme('colors.gray.400', colors.gray[400]),
52+
color: theme('colors.gray.500', colors.gray[500]),
5353
opacity: '1',
5454
},
5555

@@ -67,8 +67,8 @@ const forms = plugin(function ({ addBase, theme }) {
6767
select: {
6868
'background-image': `url("${svgToDataUri(
6969
`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20"><path stroke="${theme(
70-
'colors.gray.400',
71-
colors.gray[400]
70+
'colors.gray.500',
71+
colors.gray[500]
7272
)}" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M6 8l4 4 4-4"/></svg>`
7373
)}")`,
7474
'background-position': `right ${spacing[2]} center`,
@@ -103,12 +103,12 @@ const forms = plugin(function ({ addBase, theme }) {
103103
width: spacing[4],
104104
color: theme('colors.blue.600', colors.blue[600]),
105105
'background-color': '#fff',
106-
'border-color': theme('colors.gray.300', colors.gray[300]),
106+
'border-color': theme('colors.gray.500', colors.gray[500]),
107107
'border-width': borderWidth['DEFAULT'],
108108
},
109109

110110
[`[type='checkbox']`]: {
111-
'border-radius': borderRadius['DEFAULT'],
111+
'border-radius': borderRadius['none'],
112112
},
113113

114114
[`[type='radio']`]: {
@@ -128,7 +128,7 @@ const forms = plugin(function ({ addBase, theme }) {
128128
'--tw-ring-offset-shadow': `var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`,
129129
'--tw-ring-shadow': `var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)`,
130130
'box-shadow': `var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)`,
131-
'border-color': theme('colors.gray.400', colors.gray[400]),
131+
'border-color': theme('colors.gray.500', colors.gray[500]),
132132
},
133133

134134
[`

0 commit comments

Comments
 (0)