|
| 1 | +@import "tailwindcss"; |
| 2 | +@plugin "@tailwindcss/typography"; |
| 3 | +@plugin "tailwindcss-animate"; |
| 4 | + |
| 5 | +@variant dark (&:is(.dark *)); |
| 6 | + |
| 7 | +@theme { |
| 8 | + --breakpoint-xs: 475px; |
| 9 | + --breakpoint-2xl: 1400px; |
| 10 | + |
| 11 | + --color-background: hsl(var(--background)); |
| 12 | + --color-foreground: hsl(var(--foreground)); |
| 13 | + |
| 14 | + --color-card: hsl(var(--card)); |
| 15 | + --color-card-foreground: hsl(var(--card-foreground)); |
| 16 | + |
| 17 | + --color-popover: hsl(var(--popover)); |
| 18 | + --color-popover-foreground: hsl(var(--popover-foreground)); |
| 19 | + |
| 20 | + --color-primary: hsl(var(--primary)); |
| 21 | + --color-primary-foreground: hsl(var(--primary-foreground)); |
| 22 | + |
| 23 | + --color-secondary: hsl(var(--secondary)); |
| 24 | + --color-secondary-foreground: hsl(var(--secondary-foreground)); |
| 25 | + |
| 26 | + --color-muted: hsl(var(--muted)); |
| 27 | + --color-muted-foreground: hsl(var(--muted-foreground)); |
| 28 | + |
| 29 | + --color-accent: hsl(var(--accent)); |
| 30 | + --color-accent-foreground: hsl(var(--accent-foreground)); |
| 31 | + |
| 32 | + --color-destructive: hsl(var(--destructive)); |
| 33 | + --color-destructive-foreground: hsl(var(--destructive-foreground)); |
| 34 | + |
| 35 | + --color-border: hsl(var(--border)); |
| 36 | + --color-input: hsl(var(--input)); |
| 37 | + --color-ring: hsl(var(--ring)); |
| 38 | + |
| 39 | + /* |
| 40 | + --color-sidebar: hsl(var(--sidebar-background)); |
| 41 | + --color-sidebar-foreground: hsl(var(--sidebar-foreground)); |
| 42 | + --color-sidebar-primary: hsl(var(--sidebar-primary)); |
| 43 | + --color-sidebar-primary-foreground: hsl(var(--sidebar-primary-foreground)); |
| 44 | + --color-sidebar-accent: hsl(var(--sidebar-accent)); |
| 45 | + --color-sidebar-accent-foreground: hsl(var(--sidebar-accent-foreground)); |
| 46 | + --color-sidebar-border: hsl(var(--sidebar-border)); |
| 47 | + --color-sidebar-ring: hsl(var(--sidebar-ring)); |
| 48 | + */ |
| 49 | + |
| 50 | + --radius-xl: calc(var(--radius) + 4px); |
| 51 | + --radius-lg: var(--radius); |
| 52 | + --radius-md: calc(var(--radius) - 2px); |
| 53 | + --radius-sm: calc(var(--radius) - 4px); |
| 54 | + |
| 55 | + --animate-accordion-down: accordion-down 0.2s ease-out; |
| 56 | + --animate-accordion-up: accordion-up 0.2s ease-out; |
| 57 | + --animate-caret-blink: caret-blink 1.25s ease-out infinite; |
| 58 | + |
| 59 | + @keyframes accordion-down { |
| 60 | + from { |
| 61 | + height: 0; |
| 62 | + } |
| 63 | + to { |
| 64 | + height: var(--bits-accordion-content-height); |
| 65 | + } |
| 66 | + } |
| 67 | + |
| 68 | + @keyframes accordion-up { |
| 69 | + from { |
| 70 | + height: var(--bits-accordion-content-height); |
| 71 | + } |
| 72 | + to { |
| 73 | + height: 0; |
| 74 | + } |
| 75 | + } |
| 76 | + |
| 77 | + @keyframes caret-blink { |
| 78 | + 0%, |
| 79 | + 70%, |
| 80 | + 100% { |
| 81 | + opacity: 1; |
| 82 | + } |
| 83 | + |
| 84 | + 20%, |
| 85 | + 50% { |
| 86 | + opacity: 0; |
| 87 | + } |
| 88 | + } |
| 89 | +} |
| 90 | + |
| 91 | +@utility container { |
| 92 | + margin-inline: auto; |
| 93 | + padding-inline: 2rem; |
| 94 | + /* Cancels the undocumented default breakpoint-driven max-width */ |
| 95 | + max-width: var(--breakpoint-2xl); |
| 96 | +} |
| 97 | + |
| 98 | +@layer base { |
| 99 | + :root { |
| 100 | + --background: 0 0% 100%; |
| 101 | + --foreground: 20 14.3% 4.1%; |
| 102 | + --card: 0 0% 100%; |
| 103 | + --card-foreground: 20 14.3% 4.1%; |
| 104 | + --popover: 0 0% 100%; |
| 105 | + --popover-foreground: 20 14.3% 4.1%; |
| 106 | + --primary: 24.6 95% 53.1%; |
| 107 | + --primary-foreground: 60 9.1% 97.8%; |
| 108 | + --secondary: 60 4.8% 95.9%; |
| 109 | + --secondary-foreground: 24 9.8% 10%; |
| 110 | + --muted: 60 4.8% 95.9%; |
| 111 | + --muted-foreground: 25 5.3% 44.7%; |
| 112 | + --accent: 60 4.8% 95.9%; |
| 113 | + --accent-foreground: 24 9.8% 10%; |
| 114 | + --destructive: 0 72.22% 50.59%; |
| 115 | + --destructive-foreground: 60 9.1% 97.8%; |
| 116 | + --border: 20 5.9% 90%; |
| 117 | + --input: 20 5.9% 90%; |
| 118 | + --ring: 24.6 95% 53.1%; |
| 119 | + --radius: 0.5rem; |
| 120 | + } |
| 121 | + .dark { |
| 122 | + --background: 20 14.3% 4.1%; |
| 123 | + --foreground: 60 9.1% 97.8%; |
| 124 | + --card: 20 14.3% 4.1%; |
| 125 | + --card-foreground: 60 9.1% 97.8%; |
| 126 | + --popover: 20 14.3% 4.1%; |
| 127 | + --popover-foreground: 60 9.1% 97.8%; |
| 128 | + --primary: 20.5 90.2% 48.2%; |
| 129 | + --primary-foreground: 60 9.1% 97.8%; |
| 130 | + --secondary: 12 6.5% 15.1%; |
| 131 | + --secondary-foreground: 60 9.1% 97.8%; |
| 132 | + --muted: 12 6.5% 15.1%; |
| 133 | + --muted-foreground: 24 5.4% 63.9%; |
| 134 | + --accent: 12 6.5% 15.1%; |
| 135 | + --accent-foreground: 60 9.1% 97.8%; |
| 136 | + --destructive: 0 72.2% 50.6%; |
| 137 | + --destructive-foreground: 60 9.1% 97.8%; |
| 138 | + --border: 12 6.5% 15.1%; |
| 139 | + --input: 12 6.5% 15.1%; |
| 140 | + --ring: 20.5 90.2% 48.2%; |
| 141 | + } |
| 142 | +} |
| 143 | + |
| 144 | +@layer base { |
| 145 | + ::selection { |
| 146 | + @apply bg-primary text-primary-foreground; |
| 147 | + } |
| 148 | + |
| 149 | + * { |
| 150 | + @apply border-border; |
| 151 | + } |
| 152 | + |
| 153 | + body { |
| 154 | + @apply flex min-h-screen flex-col bg-background text-foreground; |
| 155 | + } |
| 156 | + |
| 157 | + /* I like pointer cursors on buttons */ |
| 158 | + button:not(:disabled), |
| 159 | + [role="button"]:not(:disabled) { |
| 160 | + cursor: pointer; |
| 161 | + } |
| 162 | +} |
0 commit comments