WIP Migrate form styles to tailwind
This commit is contained in:
@@ -25,6 +25,42 @@ module.exports = {
|
||||
fontFamily: {
|
||||
'sans': [ 'Lato', 'sans-serif' ],
|
||||
},
|
||||
customForms: theme => ({
|
||||
default: {
|
||||
'input, textarea, select, multiselect': {
|
||||
paddingTop: theme('spacing.4'),
|
||||
paddingBottom: theme('spacing.4'),
|
||||
paddingLeft: theme('spacing.8'),
|
||||
paddingRight: theme('spacing.8'),
|
||||
borderColor: theme('colors.gray.500'),
|
||||
borderRadius: undefined,
|
||||
'&:focus': {
|
||||
borderColor: undefined,
|
||||
boxShadow: undefined,
|
||||
},
|
||||
},
|
||||
'checkbox, radio': {
|
||||
width: theme('spacing.6'),
|
||||
height: theme('spacing.6'),
|
||||
backgroundColor: theme('colors.white'),
|
||||
borderColor: undefined,
|
||||
'&:focus': {
|
||||
borderColor: undefined,
|
||||
boxShadow: undefined,
|
||||
},
|
||||
'&:checked': {
|
||||
backgroundColor: theme('colors.ep.secondary'),
|
||||
boxShadow: undefined,
|
||||
},
|
||||
},
|
||||
},
|
||||
error: {
|
||||
'input, textarea, select, multiselect': {
|
||||
color: theme('colors.red.500'),
|
||||
borderColor: theme('colors.red.500'),
|
||||
}
|
||||
},
|
||||
}),
|
||||
extend: {
|
||||
colors: {
|
||||
'overlay': {
|
||||
|
||||
Reference in New Issue
Block a user