Skip to content

Commit a707089

Browse files
authored
Merge pull request #74 from CopilotKit/fix/demo-gallery-dark-readability
fix: make demo gallery readable in dark mode on mobile
2 parents e0db59e + e172dad commit a707089

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

apps/app/src/app/globals.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,21 @@ body, html {
637637
}
638638
}
639639

640+
/* === Demo Gallery Dark Mode Readability Fix === */
641+
:root.dark .demo-gallery-drawer {
642+
background: var(--color-surface) !important;
643+
}
644+
645+
:root.dark .demo-gallery-drawer .demo-gallery-card {
646+
background: rgba(255, 255, 255, 0.08) !important;
647+
border-color: rgba(255, 255, 255, 0.1) !important;
648+
}
649+
650+
:root.dark .demo-gallery-drawer .demo-gallery-chip {
651+
background: rgba(255, 255, 255, 0.08) !important;
652+
border-color: rgba(255, 255, 255, 0.1) !important;
653+
}
654+
640655
/* === Flash Animation === */
641656
.content-flash {
642657
animation: content-flash 700ms ease-out;

apps/app/src/components/demo-gallery/category-filter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function CategoryFilter({ selected, onSelect }: CategoryFilterProps) {
1919
<button
2020
key={cat ?? "all"}
2121
onClick={() => onSelect(cat)}
22-
className="shrink-0 px-3 py-1.5 rounded-full text-xs font-medium transition-all duration-150 cursor-pointer"
22+
className="demo-gallery-chip shrink-0 px-3 py-1.5 rounded-full text-xs font-medium transition-all duration-150 cursor-pointer"
2323
style={{
2424
background: isActive
2525
? "linear-gradient(135deg, var(--color-lilac-dark, #6366f1), var(--color-mint-dark, #10b981))"

apps/app/src/components/demo-gallery/demo-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function DemoCard({ demo, onTry }: DemoCardProps) {
2424
return (
2525
<button
2626
onClick={() => onTry(demo)}
27-
className="rounded-xl overflow-hidden flex flex-col text-left transition-all duration-200 hover:shadow-lg hover:-translate-y-0.5 cursor-pointer w-full"
27+
className="demo-gallery-card rounded-xl overflow-hidden flex flex-col text-left transition-all duration-200 hover:shadow-lg hover:-translate-y-0.5 cursor-pointer w-full"
2828
style={{
2929
border: "1px solid var(--color-border-glass, rgba(0,0,0,0.1))",
3030
background: "var(--surface-primary, #fff)",

0 commit comments

Comments
 (0)