shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
69.58k stars 4.16k forks source link

[bug]: fix chart breaking theme on install #4549

Open joseaburt opened 1 month ago

joseaburt commented 1 month ago

Describe the bug

When install the charts the app theme get broken set all components in dark and others in light

Affected component/components

all components

How to reproduce

  1. Install the charts
  2. run the app

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

windows 11

Before submitting

Salman11000 commented 1 month ago

npm install chart.js import { Line } from 'react-chartjs-2';

const data = { labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], datasets: [ { label: 'My First dataset', backgroundColor: 'rgba(75,192,192,0.4)', borderColor: 'rgba(75,192,192,1)', data: [65, 59, 80, 81, 56, 55, 40], }, ], };

function MyChart() { return ; }

export default MyChart;

Hey man!here the code and fix the bug.