Skip to content

Commit e9f43a6

Browse files
committed
fix: use theme-aware borders for light mode
- replace hardcoded white/[0.06] with border-border/50 - feature cards, FAQ items, pricing cards now visible in light mode - footer borders use theme tokens
1 parent f7c41d0 commit e9f43a6

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

frontend/src/components/landing/FAQ.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function FAQ() {
5656
<AccordionItem
5757
key={i}
5858
value={`faq-${i}`}
59-
className="border border-white/[0.06] dark:border-white/[0.06] light:border-black/[0.06] rounded-xl px-6 bg-card/20"
59+
className="border border-border/50 rounded-xl px-6 bg-card/20"
6060
>
6161
<AccordionTrigger className="text-left text-foreground hover:no-underline py-5 text-[15px]">
6262
{faq.q}

frontend/src/components/landing/Features.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ export function Features() {
109109
y: -8,
110110
transition: { type: 'spring', stiffness: 400, damping: 25 }
111111
}}
112-
className={`group relative p-6 rounded-xl border border-white/[0.06] bg-card/30
113-
hover:bg-card/50 hover:border-white/[0.1] transition-colors duration-300
112+
className={`group relative p-6 rounded-xl border border-border/50 bg-card/30
113+
hover:bg-card/50 hover:border-border transition-colors duration-300
114114
hover:shadow-xl ${feature.glow}`}
115115
>
116116
{/* Icon */}

frontend/src/components/landing/Footer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const LINKS = {
2020

2121
export function Footer() {
2222
return (
23-
<footer className="border-t border-white/[0.06] dark:border-white/[0.06] light:border-black/[0.06] py-12 px-6">
23+
<footer className="border-t border-border py-12 px-6">
2424
<div className="max-w-6xl mx-auto">
2525
<div className="grid grid-cols-2 md:grid-cols-4 gap-8 mb-12">
2626
{/* Brand */}
@@ -98,7 +98,7 @@ export function Footer() {
9898
</div>
9999

100100
{/* Bottom bar */}
101-
<div className="pt-8 border-t border-white/[0.06] dark:border-white/[0.06] light:border-black/[0.06] flex flex-col md:flex-row justify-between items-center gap-4">
101+
<div className="pt-8 border-t border-border flex flex-col md:flex-row justify-between items-center gap-4">
102102
<p className="text-sm text-muted-foreground/60">
103103
© {new Date().getFullYear()} CodeIntel. Open source under MIT.
104104
</p>

frontend/src/components/landing/Pricing.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export function Pricing() {
7878
className={`relative p-6 lg:p-8 rounded-2xl border transition-all duration-300 ${
7979
plan.popular
8080
? 'border-accent bg-accent/5 shadow-2xl shadow-accent/10 z-10'
81-
: 'border-white/[0.08] bg-card/30 hover:bg-card/50 hover:border-white/[0.12]'
81+
: 'border-border/50 bg-card/30 hover:bg-card/50 hover:border-border'
8282
}`}
8383
>
8484
{plan.badge && (
@@ -127,7 +127,7 @@ export function Pricing() {
127127
className={`block w-full py-3 px-4 rounded-lg text-center text-sm font-medium transition-all ${
128128
plan.popular
129129
? 'bg-accent text-white hover:bg-accent/90 shadow-lg shadow-accent/20'
130-
: 'border border-white/10 text-foreground hover:bg-white/5'
130+
: 'border border-border text-foreground hover:bg-muted/50'
131131
}`}
132132
>
133133
{plan.cta}

0 commit comments

Comments
 (0)