|
1 | 1 | @import "tailwindcss"; |
2 | | -@import "fumadocs-ui/css/neutral.css"; |
| 2 | +@import "fumadocs-ui/css/shadcn.css"; |
3 | 3 | @import "fumadocs-ui/css/preset.css"; |
4 | | -@plugin "@tailwindcss/typography"; |
| 4 | +@import "tw-animate-css"; |
| 5 | +@import "shadcn/tailwind.css"; |
5 | 6 |
|
6 | | -@theme inline { |
7 | | - --color-background: var(--background); |
8 | | - --color-foreground: var(--foreground); |
9 | | - --color-muted: var(--muted); |
10 | | - --color-muted-foreground: var(--muted-foreground); |
11 | | - --color-border: var(--border); |
12 | | - --color-primary: var(--primary); |
13 | | -} |
| 7 | +@custom-variant dark (&:is(.dark *)); |
14 | 8 |
|
15 | | -:root { |
16 | | - --background: #ffffff; |
17 | | - --foreground: #0a0a0a; |
18 | | - --muted: #f4f4f5; |
19 | | - --muted-foreground: #71717a; |
20 | | - --border: #e4e4e7; |
21 | | - --primary: #2563eb; |
| 9 | +@theme inline { |
| 10 | + --color-background: var(--color-fd-background); |
| 11 | + --color-foreground: var(--color-fd-foreground); |
| 12 | + --color-muted: var(--color-fd-muted); |
| 13 | + --color-muted-foreground: var(--color-fd-muted-foreground); |
| 14 | + --color-border: var(--color-fd-border); |
| 15 | + --color-primary: var(--color-fd-primary); |
| 16 | + --color-primary-foreground: var(--color-fd-primary-foreground); |
| 17 | + --color-card: var(--color-fd-card); |
| 18 | + --color-card-foreground: var(--color-fd-card-foreground); |
| 19 | + --color-accent: var(--color-fd-accent); |
| 20 | + --color-accent-foreground: var(--color-fd-accent-foreground); |
| 21 | + --color-ring: var(--color-fd-ring); |
| 22 | + --radius-sm: calc(var(--radius) - 4px); |
| 23 | + --radius-md: calc(var(--radius) - 2px); |
| 24 | + --radius-lg: var(--radius); |
| 25 | + --radius-xl: calc(var(--radius) + 4px); |
| 26 | + --font-heading: var(--font-sans); |
| 27 | + --font-sans: var(--font-sans); |
| 28 | + --color-sidebar-ring: var(--sidebar-ring); |
| 29 | + --color-sidebar-border: var(--sidebar-border); |
| 30 | + --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); |
| 31 | + --color-sidebar-accent: var(--sidebar-accent); |
| 32 | + --color-sidebar-primary-foreground: var(--sidebar-primary-foreground); |
| 33 | + --color-sidebar-primary: var(--sidebar-primary); |
| 34 | + --color-sidebar-foreground: var(--sidebar-foreground); |
| 35 | + --color-sidebar: var(--sidebar); |
| 36 | + --color-chart-5: var(--chart-5); |
| 37 | + --color-chart-4: var(--chart-4); |
| 38 | + --color-chart-3: var(--chart-3); |
| 39 | + --color-chart-2: var(--chart-2); |
| 40 | + --color-chart-1: var(--chart-1); |
| 41 | + --color-input: var(--input); |
| 42 | + --color-destructive: var(--destructive); |
| 43 | + --color-secondary-foreground: var(--secondary-foreground); |
| 44 | + --color-secondary: var(--secondary); |
| 45 | + --color-popover-foreground: var(--popover-foreground); |
| 46 | + --color-popover: var(--popover); |
| 47 | + --radius-2xl: calc(var(--radius) * 1.8); |
| 48 | + --radius-3xl: calc(var(--radius) * 2.2); |
| 49 | + --radius-4xl: calc(var(--radius) * 2.6); |
22 | 50 | } |
23 | 51 |
|
24 | | -@media (prefers-color-scheme: dark) { |
| 52 | +@layer base { |
25 | 53 | :root { |
26 | | - --background: #0a0a0a; |
27 | | - --foreground: #fafafa; |
28 | | - --muted: #18181b; |
29 | | - --muted-foreground: #a1a1aa; |
30 | | - --border: #27272a; |
31 | | - --primary: #3b82f6; |
| 54 | + --background: oklch(1 0 0); |
| 55 | + --foreground: oklch(0.145 0 0); |
| 56 | + --card: oklch(1 0 0); |
| 57 | + --card-foreground: oklch(0.145 0 0); |
| 58 | + --popover: oklch(1 0 0); |
| 59 | + --popover-foreground: oklch(0.145 0 0); |
| 60 | + --primary: oklch(0.546 0.245 262.881); |
| 61 | + --primary-foreground: oklch(0.985 0 0); |
| 62 | + --secondary: oklch(0.967 0.001 286.375); |
| 63 | + --secondary-foreground: oklch(0.21 0.006 285.885); |
| 64 | + --muted: oklch(0.967 0.001 286.375); |
| 65 | + --muted-foreground: oklch(0.552 0.016 285.938); |
| 66 | + --accent: oklch(0.967 0.001 286.375); |
| 67 | + --accent-foreground: oklch(0.21 0.006 285.885); |
| 68 | + --destructive: oklch(0.577 0.245 27.325); |
| 69 | + --border: oklch(0.92 0.004 286.32); |
| 70 | + --input: oklch(0.92 0.004 286.32); |
| 71 | + --ring: oklch(0.546 0.245 262.881); |
| 72 | + --radius: 0.625rem; |
| 73 | + --sidebar: oklch(0.985 0 0); |
| 74 | + --sidebar-foreground: oklch(0.145 0 0); |
| 75 | + --sidebar-primary: oklch(0.546 0.245 262.881); |
| 76 | + --sidebar-primary-foreground: oklch(0.985 0 0); |
| 77 | + --sidebar-accent: oklch(0.967 0.001 286.375); |
| 78 | + --sidebar-accent-foreground: oklch(0.21 0.006 285.885); |
| 79 | + --sidebar-border: oklch(0.92 0.004 286.32); |
| 80 | + --sidebar-ring: oklch(0.546 0.245 262.881); |
| 81 | + } |
| 82 | + |
| 83 | + .dark { |
| 84 | + --background: oklch(0.145 0 0); |
| 85 | + --foreground: oklch(0.985 0 0); |
| 86 | + --card: oklch(0.205 0 0); |
| 87 | + --card-foreground: oklch(0.985 0 0); |
| 88 | + --popover: oklch(0.205 0 0); |
| 89 | + --popover-foreground: oklch(0.985 0 0); |
| 90 | + --primary: oklch(0.623 0.214 259.815); |
| 91 | + --primary-foreground: oklch(0.985 0 0); |
| 92 | + --secondary: oklch(0.274 0.006 286.033); |
| 93 | + --secondary-foreground: oklch(0.985 0 0); |
| 94 | + --muted: oklch(0.274 0.006 286.033); |
| 95 | + --muted-foreground: oklch(0.705 0.015 286.067); |
| 96 | + --accent: oklch(0.274 0.006 286.033); |
| 97 | + --accent-foreground: oklch(0.985 0 0); |
| 98 | + --destructive: oklch(0.704 0.191 22.216); |
| 99 | + --border: oklch(1 0 0 / 10%); |
| 100 | + --input: oklch(1 0 0 / 15%); |
| 101 | + --ring: oklch(0.623 0.214 259.815); |
| 102 | + --sidebar: oklch(0.205 0 0); |
| 103 | + --sidebar-foreground: oklch(0.985 0 0); |
| 104 | + --sidebar-primary: oklch(0.623 0.214 259.815); |
| 105 | + --sidebar-primary-foreground: oklch(0.985 0 0); |
| 106 | + --sidebar-accent: oklch(0.274 0.006 286.033); |
| 107 | + --sidebar-accent-foreground: oklch(0.985 0 0); |
| 108 | + --sidebar-border: oklch(1 0 0 / 10%); |
| 109 | + --sidebar-ring: oklch(0.623 0.214 259.815); |
| 110 | + } |
| 111 | + * { |
| 112 | + @apply border-border outline-ring/50; |
| 113 | + } |
| 114 | + body { |
| 115 | + @apply bg-background text-foreground; |
| 116 | + } |
| 117 | + html { |
| 118 | + @apply font-sans; |
32 | 119 | } |
33 | 120 | } |
34 | 121 |
|
35 | | -body { |
36 | | - background: var(--background); |
37 | | - color: var(--foreground); |
| 122 | +@layer components { |
| 123 | + .doc-content table th, |
| 124 | + .doc-content table td { |
| 125 | + @apply px-4 py-2.5 text-left; |
| 126 | + } |
| 127 | + |
| 128 | + .doc-content table th { |
| 129 | + @apply border-b border-fd-border font-medium; |
| 130 | + } |
| 131 | + |
| 132 | + .doc-content table td { |
| 133 | + @apply border-b border-fd-border; |
| 134 | + } |
| 135 | + |
| 136 | + .doc-content a { |
| 137 | + @apply text-fd-primary underline-offset-4 hover:underline; |
| 138 | + } |
| 139 | + |
| 140 | + .doc-content h2, |
| 141 | + .doc-content h3, |
| 142 | + .doc-content h4 { |
| 143 | + @apply scroll-mt-20 font-semibold tracking-tight text-fd-foreground; |
| 144 | + } |
| 145 | + |
| 146 | + .doc-content h2 { |
| 147 | + @apply mt-10 mb-4 text-2xl; |
| 148 | + } |
| 149 | + |
| 150 | + .doc-content h3 { |
| 151 | + @apply mt-8 mb-3 text-xl; |
| 152 | + } |
| 153 | + |
| 154 | + .doc-content p, |
| 155 | + .doc-content ul, |
| 156 | + .doc-content ol { |
| 157 | + @apply my-4 text-fd-foreground/90; |
| 158 | + } |
| 159 | + |
| 160 | + .doc-content ul { |
| 161 | + @apply list-disc pl-6; |
| 162 | + } |
| 163 | + |
| 164 | + .doc-content ol { |
| 165 | + @apply list-decimal pl-6; |
| 166 | + } |
38 | 167 | } |
39 | 168 |
|
40 | 169 | .text-hero { |
@@ -66,7 +195,7 @@ body { |
66 | 195 | } |
67 | 196 |
|
68 | 197 | .btn-primary { |
69 | | - @apply inline-flex items-center gap-2 rounded-lg bg-primary px-5 py-3 text-sm font-semibold text-white transition-opacity hover:opacity-90; |
| 198 | + @apply inline-flex items-center gap-2 rounded-lg bg-primary px-5 py-3 text-sm font-semibold text-primary-foreground transition-opacity hover:opacity-90; |
70 | 199 | } |
71 | 200 |
|
72 | 201 | .btn-secondary { |
|
0 commit comments