mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-15 04:29:37 +01:00
15 lines
489 B
TypeScript
15 lines
489 B
TypeScript
import type { ModuleOptions } from '../module'
|
|
|
|
export default (options: Required<ModuleOptions>) => ({
|
|
base: 'focus-visible:outline-primary-500 dark:focus-visible:outline-primary-400',
|
|
variants: {
|
|
active: {
|
|
true: 'text-primary-500 dark:text-primary-400',
|
|
false: ['text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200', options.transitions && 'transition-colors']
|
|
},
|
|
disabled: {
|
|
true: 'cursor-not-allowed opacity-75'
|
|
}
|
|
}
|
|
})
|