saadeghi / daisyui

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

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

Open Innei opened 3 weeks ago

Innei commented 3 weeks 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/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 commented 3 weeks ago

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

github-actions[bot] commented 3 weeks 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.