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

bug: tailwindcss neutral color compatibility with theme() #3250

Open
Innei opened this issue Oct 26, 2024 · 2 comments
Open

bug: tailwindcss neutral color compatibility with theme() #3250

Innei opened this issue Oct 26, 2024 · 2 comments
Labels

Comments

@Innei
Copy link

Innei commented Oct 26, 2024

What version of daisyUI are you using?

daisyui@4

Which browsers are you seeing the problem on?

No response

Reproduction URL

https://play.tailwindcss.com/ZykCesQyCH?file=css

Describe your issue

@tailwind base;
@tailwind components;
@tailwind utilities;

.myclass{
  color: theme(colors.neutral.50/10); // error
}

'colors.neutral.50/10' does not exist in your theme config. 'colors.neutral' is not an object.

Or:

'colors.neutral.50' does not exist in your theme config. 'colors.neutral' is not an object.

@tailwind base;
@tailwind components;
@tailwind utilities;

.myclass{
  color: theme(colors.neutral.50);
}
@Innei
Copy link
Author

Innei commented Oct 26, 2024

Link: #3241

Copy link

Thank you @Innei for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants