@tailwind base; @tailwind components; @tailwind utilities; @layer components { .btn { @apply rounded-md px-3 py-2 text-sm font-semibold shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2; } .btn-primary { @apply bg-indigo-600 text-white hover:bg-indigo-500 focus-visible:outline-indigo-600; } .btn-secondary { @apply bg-white text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50; } .label { @apply text-sm font-medium leading-6 text-gray-900; } .input { @apply block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6; } .badge { @apply inline-flex items-center rounded-md bg-gray-50 px-2 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10; } .pill { @apply inline-flex items-center rounded-full bg-green-50 px-2 py-1 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-600/20; } .pagy { @apply flex space-x-1 font-semibold text-sm text-gray-500 justify-center; a:not(.gap) { @apply block rounded-lg px-3 py-1 bg-gray-200; &:hover { @apply bg-gray-300; } &:not([href]) { /* disabled links */ @apply text-gray-300 bg-gray-100 cursor-default; } &.current { @apply text-white bg-indigo-600; } } label { @apply inline-block whitespace-nowrap bg-gray-200 rounded-lg px-3 py-0.5; input { @apply bg-gray-100 border-none rounded-md; } } } }