saadeghi / daisyui

๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ โ€ƒThe most popular, free and open-source Tailwind CSS component library
https://daisyui.com
MIT License
33.74k stars 1.29k forks source link

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

Open Innei opened 17 hours ago

Innei commented 17 hours ago

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/sJeDF0hk7x?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 commented 17 hours ago

Link: https://github.com/saadeghi/daisyui/pull/3241

github-actions[bot] commented 17 hours ago

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.