rauchg / stream-chart

https://stream-chart.labs.vercel.dev
66 stars 6 forks source link

fix: replace safelist with `lib` path #2

Closed severinlandolt closed 5 months ago

severinlandolt commented 5 months ago

Hi!

This PR removes the safelisted colors in tailwind.config.ts. Instead, we add the path of the lib folder to the content section.

This ensures that all defined colors in chart-utils.tsx are generated.

  "./pages/**/*.{js,ts,jsx,tsx,mdx}",
    "./components/**/*.{js,ts,jsx,tsx,mdx}",
    "./app/**/*.{js,ts,jsx,tsx,mdx}",
+   "./lib/**/*.{js,ts,jsx,tsx,mdx}",
  ],
- safelist: ["stroke-amber-500", "bg-amber-500"],
  theme: {
    extend: {
      keyframes: {
vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
stream-chart ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 27, 2024 9:00pm