vercel / react-tweet

Embed tweets in your React application.
https://react-tweet.vercel.app
MIT License
1.52k stars 83 forks source link

Component is unstyled in light mode when there is no `data-theme` #40

Closed imtsuki closed 1 year ago

imtsuki commented 1 year ago

The theme.css file includes several CSS variables that are only active when either a data-theme attribute is present or the user's prefers-color-scheme is set to dark. In the absence of a data-theme attribute, the component will appear unstyled in light mode (e.g. lack of borders and colors) but properly styled in dark mode. It would be better to provide styling for the light mode as well, instead of leaving the component unstyled.

light mode dark mode
lfades commented 1 year ago

Thank you for the report. I'll fix this asap!