|
20 | 20 | --accent-foreground: oklch(0.21 0.006 285.885); |
21 | 21 | --destructive: oklch(0.577 0.245 27.325); |
22 | 22 | --destructive-foreground: oklch(0.985 0 0); |
| 23 | + --success: oklch(0.603 0.135 166.892); |
| 24 | + --success-foreground: oklch(1 0 0); |
| 25 | + --warning: oklch(0.795 0.157 78.748); |
| 26 | + --warning-foreground: oklch(0.199 0.027 238.732); |
23 | 27 | --border: oklch(0.92 0.004 286.32); |
24 | 28 | --input: oklch(0.92 0.004 286.32); |
25 | 29 | --ring: oklch(0.705 0.015 286.067); |
|
56 | 60 | --accent-foreground: oklch(0.985 0 0); |
57 | 61 | --destructive: oklch(0.704 0.191 22.216); |
58 | 62 | --destructive-foreground: oklch(0.985 0 0); |
| 63 | + --success: oklch(0.67 0.12 167); |
| 64 | + --success-foreground: oklch(1 0 0); |
| 65 | + --warning: oklch(0.83 0.165 85); |
| 66 | + --warning-foreground: oklch(0.199 0.027 238.732); |
59 | 67 | --border: oklch(1 0 0 / 10%); |
60 | 68 | --input: oklch(1 0 0 / 15%); |
61 | 69 | --ring: oklch(0.552 0.016 285.938); |
|
92 | 100 | --color-accent-foreground: var(--accent-foreground); |
93 | 101 | --color-destructive: var(--destructive); |
94 | 102 | --color-destructive-foreground: var(--destructive-foreground); |
| 103 | + --color-success: var(--success); |
| 104 | + --color-success-foreground: var(--success-foreground); |
| 105 | + --color-warning: var(--warning); |
| 106 | + --color-warning-foreground: var(--warning-foreground); |
95 | 107 | --color-border: var(--border); |
96 | 108 | --color-input: var(--input); |
97 | 109 | --color-ring: var(--ring); |
|
110 | 122 | --color-sidebar-ring: var(--sidebar-ring); |
111 | 123 | --radius: var(--radius); |
112 | 124 | } |
| 125 | + |
| 126 | +@layer base { |
| 127 | + * { |
| 128 | + border-color: var(--border); |
| 129 | + } |
| 130 | + |
| 131 | + html { |
| 132 | + -webkit-font-smoothing: antialiased; |
| 133 | + -moz-osx-font-smoothing: grayscale; |
| 134 | + text-rendering: optimizeLegibility; |
| 135 | + } |
| 136 | + |
| 137 | + body { |
| 138 | + background-color: var(--background); |
| 139 | + color: var(--foreground); |
| 140 | + font-feature-settings: |
| 141 | + "rlig" 1, |
| 142 | + "calt" 1; |
| 143 | + transition: |
| 144 | + background-color 0.2s ease, |
| 145 | + color 0.2s ease; |
| 146 | + } |
| 147 | + |
| 148 | + h1, |
| 149 | + h2, |
| 150 | + h3, |
| 151 | + h4, |
| 152 | + h5, |
| 153 | + h6 { |
| 154 | + font-weight: 600; |
| 155 | + letter-spacing: -0.025em; |
| 156 | + } |
| 157 | + |
| 158 | + h1 { |
| 159 | + font-size: 2.25rem; |
| 160 | + line-height: 1.2; |
| 161 | + } |
| 162 | + h2 { |
| 163 | + font-size: 1.875rem; |
| 164 | + line-height: 1.3; |
| 165 | + } |
| 166 | + h3 { |
| 167 | + font-size: 1.5rem; |
| 168 | + line-height: 1.4; |
| 169 | + } |
| 170 | + h4 { |
| 171 | + font-size: 1.25rem; |
| 172 | + } |
| 173 | + h5 { |
| 174 | + font-size: 1.125rem; |
| 175 | + } |
| 176 | + p { |
| 177 | + line-height: 1.75rem; |
| 178 | + } |
| 179 | + |
| 180 | + :focus-visible { |
| 181 | + outline: none; |
| 182 | + box-shadow: |
| 183 | + 0 0 0 2px var(--background), |
| 184 | + 0 0 0 4px var(--ring); |
| 185 | + } |
| 186 | + |
| 187 | + img { |
| 188 | + max-width: 100%; |
| 189 | + height: auto; |
| 190 | + } |
| 191 | + |
| 192 | + ::-webkit-scrollbar { |
| 193 | + width: 10px; |
| 194 | + height: 10px; |
| 195 | + } |
| 196 | + |
| 197 | + ::-webkit-scrollbar-track { |
| 198 | + background-color: var(--secondary); |
| 199 | + } |
| 200 | + |
| 201 | + ::-webkit-scrollbar-thumb { |
| 202 | + background-color: var(--muted-foreground); |
| 203 | + opacity: 0.5; |
| 204 | + border-radius: 0.375rem; |
| 205 | + } |
| 206 | + |
| 207 | + ::-webkit-scrollbar-thumb:hover { |
| 208 | + opacity: 0.7; |
| 209 | + } |
| 210 | + |
| 211 | + ::selection { |
| 212 | + background-color: var(--primary); |
| 213 | + opacity: 0.2; |
| 214 | + } |
| 215 | + |
| 216 | + @media (prefers-reduced-motion: reduce) { |
| 217 | + *, |
| 218 | + *::before, |
| 219 | + *::after { |
| 220 | + animation-duration: 0.01ms !important; |
| 221 | + animation-iteration-count: 1 !important; |
| 222 | + transition-duration: 0.01ms !important; |
| 223 | + } |
| 224 | + } |
| 225 | + |
| 226 | + /* Optional: set all rounded utility to use CSS var */ |
| 227 | + .rounded { |
| 228 | + border-radius: var(--radius); |
| 229 | + } |
| 230 | +} |
| 231 | + |
| 232 | +/* ----------------------------- |
| 233 | + Tailwind custom utilities |
| 234 | +----------------------------- */ |
| 235 | +@layer utilities { |
| 236 | + .sr-only { |
| 237 | + position: absolute; |
| 238 | + width: 1px; |
| 239 | + height: 1px; |
| 240 | + padding: 0; |
| 241 | + margin: -1px; |
| 242 | + overflow: hidden; |
| 243 | + clip: rect(0, 0, 0, 0); |
| 244 | + white-space: nowrap; |
| 245 | + border-width: 0; |
| 246 | + } |
| 247 | + |
| 248 | + .focus\:not-sr-only:focus { |
| 249 | + position: static; |
| 250 | + width: auto; |
| 251 | + height: auto; |
| 252 | + padding: initial; |
| 253 | + margin: initial; |
| 254 | + overflow: visible; |
| 255 | + clip: auto; |
| 256 | + white-space: normal; |
| 257 | + } |
| 258 | +} |
0 commit comments