fix(components): make testimonial spotlight theme-aware (#885) by cf3901646 · Pull Request #1450 · ncdai/chanhdai.com · GitHub
Skip to content

fix(components): make testimonial spotlight theme-aware (#885) - #1450

Open
cf3901646 wants to merge 1 commit into
ncdai:mainfrom
cf3901646:fix/testimonial-spotlight-light-mode
Open

cf3901646 wants to merge 1 commit into
ncdai:mainfrom
cf3901646:fix/testimonial-spotlight-light-mode

Conversation

@cf3901646

Copy link
Copy Markdown

Description

Resolves #885.

Currently, the TestimonialSpotlight component uses a default spotlight color of
gba(255,255,255,0.2). On light theme card backgrounds (�g-card/50), a white spotlight is practically invisible.

This PR adds theme-aware defaults using CSS variables:

  • Light mode: [--spotlight-color:rgba(15,23,42,0.05)]
  • Dark mode: dark:[--spotlight-color:rgba(255,255,255,0.15)]

Custom colors passed via className ([--spotlight-color:...]) or style continue to work as expected and override the default.

Closes #885

@vercel

vercel Bot commented Sep 20, 2026

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Testimonial Spotlight not visible in light mode

1 participant