-
Notifications
You must be signed in to change notification settings - Fork 0
/
formkit.config.ts
28 lines (27 loc) · 1.05 KB
/
formkit.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { generateClasses } from '@formkit/themes'
export default {
config: {
validationVisibility: 'submit',
classes: generateClasses({
global: {
outer: 'relative',
form: 'space-y-[10px] md:space-y-[12px] h-full flex flex-col items-start',
inner: 'flex-grow max-w-[300px]',
input: `
pl-[10px] bg-black/[.15] rounded-md border-[1px] border-white/0 pr-[30px]
focus-visible:outline-none w-full py-[4px] md:py-[8px] transition-[border,_color] duration-300
autofill:!text-fill-color-[#fff] !caret-white focus:border-white/[.15] focus:text-white text-white/[.5]
placeholder:text-white/[.5] placeholder:transition-[color] placeholder:duration-300 focus:placeholder:text-white/[.8]
`,
label: 'text-white/[.8] w-[65px] capitalize flex items-center mr-[4px]',
wrapper: 'flex font-public-sans'
},
textarea: {
inner: '!max-w-full',
outer: 'flex-grow w-full',
wrapper: 'h-full w-full',
input: 'h-full resize-none'
}
})
}
}