| @import 'tailwindcss'; |
|
|
| @config '../tailwind.config.js'; |
|
|
| @theme { |
| --color-gray-50: oklch(0.98 0 0); |
| --color-gray-100: oklch(0.94 0 0); |
| --color-gray-200: oklch(0.92 0 0); |
| --color-gray-300: oklch(0.85 0 0); |
| --color-gray-400: oklch(0.77 0 0); |
| --color-gray-500: oklch(0.69 0 0); |
| --color-gray-600: oklch(0.51 0 0); |
| --color-gray-700: oklch(0.42 0 0); |
| --color-gray-800: oklch(0.32 0 0); |
| --color-gray-850: oklch(0.27 0 0); |
| --color-gray-900: oklch(0.2 0 0); |
| --color-gray-950: oklch(0.16 0 0); |
|
|
| |
| --radius-xs: 0.125rem; |
| --radius-sm: 0.1875rem; |
| --radius-md: 0.25rem; |
| --radius-lg: 0.375rem; |
| --radius-xl: 0.5rem; |
| --radius-2xl: 0.75rem; |
| --radius-3xl: 1rem; |
| --radius-4xl: 1.5rem; |
| } |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| @layer base { |
| *, |
| ::after, |
| ::before, |
| ::backdrop, |
| ::file-selector-button { |
| border-color: var(--color-gray-200, currentColor); |
| } |
| } |
|
|
| @layer base { |
| html, |
| pre { |
| font-family: |
| -apple-system, BlinkMacSystemFont, 'Inter', 'Vazirmatn', ui-sans-serif, system-ui, 'Segoe UI', |
| Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, 'Helvetica Neue', Arial, |
| 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; |
| } |
|
|
| pre { |
| white-space: pre-wrap; |
| } |
|
|
| button { |
| @apply cursor-pointer; |
| } |
|
|
| input::placeholder, |
| textarea::placeholder { |
| color: theme(--color-gray-400); |
| } |
|
|
| input[type='checkbox'] { |
| @apply appearance-none size-3.5 align-middle bg-white border border-gray-300 rounded transition cursor-pointer focus:ring-2 focus:ring-blue-500 focus:outline-none dark:bg-gray-800 dark:border-gray-600 self-center; |
| |
| display: inline-block; |
| position: relative; |
| } |
|
|
| input[type='checkbox']:checked { |
| @apply bg-blue-600 border-blue-600; |
| } |
|
|
| input[type='checkbox']:after { |
| content: ''; |
| display: block; |
| width: 100%; |
| height: 100%; |
| |
| opacity: 0; |
| transition: opacity 0.2s; |
| position: absolute; |
| top: 0; |
| left: 0; |
| pointer-events: none; |
| |
| background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 16 16" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M4 8l3 3l5-5"/></svg>') |
| center/80% no-repeat; |
| } |
|
|
| input[type='checkbox']:checked:after { |
| opacity: 1; |
| } |
| } |
|
|
| @custom-variant hover (&:hover); |
|
|