|
@import "highlight.js/styles/atom-one-light" layer(base); |
|
@import "tailwindcss"; |
|
|
|
@plugin '@tailwindcss/container-queries'; |
|
|
|
@custom-variant dark (&:where(.dark, .dark *)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@layer base { |
|
*, |
|
::after, |
|
::before, |
|
::backdrop, |
|
::file-selector-button { |
|
border-color: var(--color-gray-200, currentColor); |
|
} |
|
} |
|
|
|
|
|
@theme { |
|
--text-2xs: 0.625rem; |
|
--text-3xs: 0.5rem; |
|
|
|
--animate-fade-in: fade-in 0.15s ease; |
|
@keyframes fade-in { |
|
0% { |
|
opacity: 0; |
|
|
|
} |
|
100% { |
|
opacity: 1; |
|
scale: 1; |
|
} |
|
} |
|
} |
|
|
|
|
|
@custom-variant nd { |
|
&:not(:disabled) { |
|
@slot; |
|
} |
|
} |
|
|
|
|
|
@utility abs-x-center { |
|
left: 50%; |
|
@apply -translate-x-1/2; |
|
} |
|
|
|
@utility abs-y-center { |
|
top: 50%; |
|
@apply -translate-y-1/2; |
|
} |
|
|
|
@utility abs-center { |
|
@apply abs-x-center abs-y-center; |
|
} |
|
|
|
@utility btn { |
|
@apply flex h-[39px] items-center justify-center gap-2 rounded-lg border border-gray-200 bg-white px-3 py-2.5 text-sm font-medium text-gray-900 hover:bg-gray-100 hover:text-blue-700 focus:ring-4 focus:ring-gray-100 focus:outline-hidden dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700; |
|
} |
|
|
|
@utility btn-sm { |
|
@apply flex h-[32px] items-center justify-center gap-1.5 rounded-md border border-gray-200 bg-white px-2.5 py-2 text-xs font-medium text-gray-900 hover:bg-gray-100 hover:text-blue-700 focus:ring-4 focus:ring-gray-100 focus:outline-hidden dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700; |
|
} |
|
|
|
@utility btn-xs { |
|
@apply flex h-[28px] items-center justify-center gap-1 rounded border border-gray-200 bg-white px-2 py-1.5 text-xs font-medium text-gray-900 hover:bg-gray-100 hover:text-blue-700 focus:ring-4 focus:ring-gray-100 focus:outline-hidden dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700; |
|
} |
|
|
|
@utility btn-mini { |
|
@apply flex h-[24px] items-center justify-center gap-0.5 rounded-sm border border-gray-200 bg-white px-1.5 py-1 text-[10px] font-medium text-gray-900 hover:bg-gray-100 hover:text-blue-700 focus:ring-2 focus:ring-gray-100 focus:outline-hidden dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700; |
|
} |
|
|
|
@utility custom-outline { |
|
@apply outline-hidden; |
|
@apply border-blue-500 ring ring-blue-500; |
|
} |
|
|
|
@utility focus-outline { |
|
@apply focus-visible:custom-outline; |
|
} |
|
|
|
@utility input { |
|
@apply rounded-lg border border-gray-300 bg-gray-50 p-2.5 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400; |
|
@apply focus-outline; |
|
} |
|
|
|
|
|
@utility fade-y { |
|
--start: 2.5%; |
|
--end: calc(100% - var(--start)); |
|
-webkit-mask-image: linear-gradient(to bottom, transparent, black var(--start), black var(--end), transparent); |
|
mask-image: linear-gradient(to bottom, transparent, black var(--start), black var(--end), transparent); |
|
} |
|
|
|
|
|
html { |
|
font-size: 15px; |
|
} |
|
|
|
body { |
|
overflow: hidden; |
|
} |
|
|
|
body.dark { |
|
color-scheme: dark; |
|
} |
|
|
|
@layer base { |
|
:focus-visible { |
|
outline: 3px solid var(--color-blue-400); |
|
outline-offset: 2px; |
|
|
|
@variant dark { |
|
outline-color: var(--color-blue-500); |
|
} |
|
} |
|
} |
|
|