Skip to content

Commit dea5389

Browse files
committed
Revert "Docs/dark mode fixes (CopilotKit#2533)"
This reverts commit d24cffe.
1 parent 93d06e7 commit dea5389

4 files changed

Lines changed: 10 additions & 31 deletions

File tree

docs/app/global.css

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -283,27 +283,6 @@ figure > div.bg-fd-secondary.rounded-lg.border.text-\[13px\].py-3\.5.overflow-au
283283
background-color: var(--background) !important;
284284
}
285285

286-
/* Enhanced shadows for dark mode */
287-
.dark .shadow-sm {
288-
box-shadow: 0 1px 2px 0 rgba(255, 255, 255, 0.05);
289-
}
290-
291-
.dark .shadow {
292-
box-shadow: 0 1px 3px 0 rgba(255, 255, 255, 0.1), 0 1px 2px -1px rgba(255, 255, 255, 0.1);
293-
}
294-
295-
.dark .shadow-md {
296-
box-shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.1), 0 2px 4px -2px rgba(255, 255, 255, 0.1);
297-
}
298-
299-
.dark .shadow-lg {
300-
box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.1), 0 4px 6px -4px rgba(255, 255, 255, 0.1);
301-
}
302-
303-
.dark .shadow-xl {
304-
box-shadow: 0 20px 25px -5px rgba(255, 255, 255, 0.1), 0 8px 10px -6px rgba(255, 255, 255, 0.1);
305-
}
306-
307286
/* Make banner dismiss button icon match banner text color */
308287
[data-banner] button,
309288
[data-banner-id="agui-banner"] button,

docs/components/react/cta-cards.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function CTACard({ icon, iconKey, title, description, href, iconBgColor =
5454

5555
return (
5656
<Link href={href} className="no-underline">
57-
<Card className="transition-transform hover:scale-105 cursor-pointer shadow-xl shadow-indigo-500/20 dark:shadow-indigo-400/20 h-full">
57+
<Card className="transition-transform hover:scale-105 cursor-pointer shadow-xl shadow-indigo-500/20 h-full">
5858
<CardHeader>
5959
<div className="flex items-center gap-3">
6060
<div className={`flex items-center justify-center ${iconBgColor} rounded-full w-10 h-10`}>

docs/components/react/tailored-content.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ export function TailoredContent({ children, className, defaultOptionIndex = 0, i
5959
};
6060

6161
const itemCn =
62-
"border p-4 rounded-md flex-1 flex md:block md:space-y-1 items-center md:items-start gap-4 cursor-pointer bg-white dark:bg-gray-800 text-gray-900 dark:text-white relative overflow-hidden group transition-all";
62+
"border p-4 rounded-md flex-1 flex md:block md:space-y-1 items-center md:items-start gap-4 cursor-pointer bg-white dark:bg-secondary relative overflow-hidden group transition-all";
6363
const selectedCn =
64-
"shadow-lg ring-1 ring-indigo-400 selected bg-gradient-to-r from-indigo-100/80 to-purple-200 dark:from-indigo-800/40 dark:to-purple-800/40 text-gray-900 dark:text-white";
64+
"shadow-lg ring-1 ring-indigo-400 selected bg-gradient-to-r from-indigo-100/80 to-purple-200 dark:from-indigo-900/20 dark:to-purple-900/30";
6565
const iconCn =
66-
"w-10 h-10 mb-4 top-0 transition-all opacity-60 group-[.selected]:text-indigo-500 group-[.selected]:opacity-100 dark:group-[.selected]:text-indigo-300 dark:group-[.selected]:opacity-100 dark:text-gray-300 dark:opacity-80";
66+
"w-10 h-10 mb-4 top-0 transition-all opacity-20 group-[.selected]:text-indigo-500 group-[.selected]:opacity-60 dark:group-[.selected]:text-indigo-400 dark:group-[.selected]:opacity-60 dark:text-gray-400";
6767

6868
return (
6969
<div>
@@ -89,8 +89,8 @@ export function TailoredContent({ children, className, defaultOptionIndex = 0, i
8989
)}
9090
</div>
9191
<div>
92-
<p className="font-semibold text-lg text-gray-900 dark:text-white">{option.props.title}</p>
93-
<p className="text-xs md:text-sm text-gray-600 dark:text-gray-200">{option.props.description}</p>
92+
<p className="font-semibold text-lg">{option.props.title}</p>
93+
<p className="text-xs md:text-sm">{option.props.description}</p>
9494
</div>
9595
</div>
9696
))}

docs/components/ui/button.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ const buttonVariants = cva(
1212
variants: {
1313
variant: {
1414
default:
15-
"bg-primary text-primary-foreground shadow-lg shadow-black/10 dark:shadow-white/10 hover:bg-primary/90",
15+
"bg-primary text-primary-foreground shadow hover:bg-primary/90",
1616
destructive:
17-
"bg-destructive text-destructive-foreground shadow-md shadow-black/10 dark:shadow-white/10 hover:bg-destructive/90",
17+
"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
1818
outline:
19-
"border border-input bg-background shadow-md shadow-black/10 dark:shadow-white/20 hover:bg-accent hover:text-accent-foreground",
19+
"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
2020
secondary:
21-
"bg-secondary text-secondary-foreground shadow-md shadow-black/10 dark:shadow-white/10 hover:bg-secondary/80",
21+
"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
2222
ghost: "hover:bg-accent hover:text-accent-foreground",
2323
link: "text-primary underline-offset-4 hover:underline",
2424
},

0 commit comments

Comments
 (0)