Beautiful Open-Source Form Builder
/**
* ScaleInput tailwind-variants configuration
*/
export const scaleInputTheme = {
slots: {
button: [
'cursor-pointer inline-block grow text-center border',
'text-neutral-700 dark:text-neutral-300'
],
buttonUnselected: [
'bg-white dark:bg-notion-dark-light'
],
buttonHover: ''
},
variants: {
theme: {
default: {
button: [
'border-neutral-300 dark:border-neutral-600'
],
buttonUnselected: [
'bg-white dark:bg-notion-dark-light'
],
buttonHover: 'hover:bg-neutral-50 dark:hover:bg-neutral-900'
},
simple: {
button: [
'border-neutral-300 dark:border-neutral-600'
],
buttonUnselected: [
'bg-white dark:bg-notion-dark-light'
],
buttonHover: 'hover:bg-neutral-50 dark:hover:bg-neutral-900'
},
notion: {
button: [
'border-notion-input-border dark:border-notion-input-borderDark',
'text-neutral-900 dark:text-neutral-100'
],
buttonUnselected: [
'bg-notion-input-background dark:bg-notion-dark-light'
],
buttonHover: 'hover:brightness-95'
},
minimal: {
button: [
'border-2 border-transparent'
],
buttonUnselected: [
'bg-neutral-100 dark:bg-notion-dark-light'
],
buttonHover: 'hover:bg-neutral-200/50 dark:hover:bg-neutral-900'
},
transparent: {
button: [
'border-0',
'!rounded-none',
'shadow-[inset_0_-1px_0_0_rgb(212_212_212)] dark:shadow-[inset_0_-1px_0_0_rgb(82_82_82)]',
'transition-shadow duration-200',
'focus:ring-0 focus:shadow-[inset_0_-2px_0_0_var(--color-form)]'
],
buttonUnselected: [
'bg-transparent'
],
buttonHover: 'hover:bg-neutral-50 dark:hover:bg-neutral-900'
}
},
size: {
xs: { button: 'py-1 text-xs' },
sm: { button: 'py-1.5 text-sm' },
md: { button: 'py-2 text-base' },
lg: { button: 'py-3 text-lg' }
},
borderRadius: {
none: { button: 'rounded-none' },
small: { button: 'rounded-lg' },
full: { button: 'rounded-[20px]' }
},
hasError: {
true: {
button: '!border-red-500'
}
},
disabled: {
true: {
button: '!cursor-not-allowed !bg-neutral-200 dark:!bg-neutral-800',
buttonUnselected: '!bg-neutral-200 dark:!bg-neutral-800'
}
}
},
defaultVariants: {
theme: 'default',
size: 'md',
borderRadius: 'small',
hasError: false,
disabled: false
}
}