Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
justin-hackin opened this issue Mar 19, 2023 · 2 comments
Open

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

justin-hackin opened this issue Mar 19, 2023 · 2 comments

Comments

@justin-hackin
Copy link

justin-hackin commented Mar 19, 2023

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
Copy link
Owner

aanckar commented Dec 17, 2023

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

@rohitomar91
Copy link

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"

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

No branches or pull requests

3 participants