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: Not compiling theme(colors.<x>) in /base #2634

Closed
gorango opened this issue Dec 8, 2023 · 1 comment · Fixed by #2635
Closed

bug: Not compiling theme(colors.<x>) in /base #2634

gorango opened this issue Dec 8, 2023 · 1 comment · Fixed by #2635

Comments

@gorango
Copy link
Contributor

gorango commented Dec 8, 2023

What version of daisyUI are you using?

v4.4.19

Which browsers are you seeing the problem on?

Other

Reproduction URL

https://stackblitz.com/edit/daisyui-vite-l1jv1a?file=package.json

Describe your issue

You can see the issue in the stackblitz repro by running the terminal:

cat node_modules/daisyui/dist/base.js
// actual:                                                   🚨                               🚨
module.exports = {":root,\n[data-theme]":{"backgroundColor":"theme(colors.base-100)","color":"theme(colors.base-content)"} // ... ...
// expected:
module.exports = {":root,\n[data-theme]":{"backgroundColor":"var(--fallback-b1,oklch(var(--b1)/1))","color":"var(--fallback-bc,oklch(var(--bc)/1))"} // ... ...

It seems that the file is being skipped in the compilation step. Will investigate further.

Copy link

github-actions bot commented Dec 8, 2023

Thank you @gorango 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.

saadeghi pushed a commit that referenced this issue Dec 20, 2023
* fix: compile base colors

* fix: compile base colors

dir typo

* fix: add tailwind config to base
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

Successfully merging a pull request may close this issue.

1 participant