aanckar / react-pdf-tailwind

Use Tailwind CSS to style PDFs created with react-pdf
315 stars 11 forks source link

Does not seem to support tailwindcss-radix-colors plugin #15

Open justin-hackin opened 1 year ago

justin-hackin commented 1 year ago

When I add tailwindcss-radix-colors plugin to my config and use the radix color classes e.g. bg-blue-1, I get an error:

react-pdf-tailwind: Invalid class "bg-blue-1"

aanckar commented 8 months ago

Sorry for being late, but this library doesn't really support plugins at the moment.

rohitomar91 commented 8 months ago

Adding to above query, even if we don't use plugin and try to extend theme like:

const tw = createTw({ theme: { fontFamily: { sans: ["Comic Sans"], }, extend: { colors: { '"cmp-custom-100": "#bada55", }, }, }, });

It throws an error:

react-pdf-tailwind: Invalid class "bg-cmp-custom-100"