feat(Link): style with app config

This commit is contained in:
Benjamin Canac
2024-03-22 12:46:52 +01:00
parent e3ef0c59b9
commit 349780dae1
8 changed files with 107 additions and 32 deletions

View File

@@ -11,6 +11,7 @@ export { default as formField } from './formField'
export { default as icons } from './icons'
export { default as input } from './input'
export { default as kbd } from './kbd'
export { default as link } from './link'
export { default as modal } from './modal'
export { default as navigationMenu } from './navigationMenu'
export { default as popover } from './popover'

12
src/theme/link.ts Normal file
View File

@@ -0,0 +1,12 @@
export default {
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'
},
disabled: {
true: 'cursor-not-allowed opacity-75'
}
}
}