You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Patrick! Your DevTools screenshots confirm exactly what's happening: it's a Shadow DOM encapsulation issue.
In your first image (inside the calendar), --color-accent has defaulted to black, while your second image shows it works perfectly outside. This happens because the Shadow DOM boundary is losing the connection to the variables defined by DaisyUI on the :root or [data-theme] level.
Why this happens
Web components (like <calendar-month>) use a Shadow DOM. While they should inherit CSS variables, if those variables are defined on a specific selector (like [data-theme="light"]) rather than the <calendar-date> element itself, the internal parts often struggle to resolve them and fall back to black.
The Fix
To ensure the variables "pierce" the shadow boundary, you need to explicitly map the DaisyUI internal variables to the .cally class. This makes them available directly on the component's "skin."
Try adding this to your CSS:
A cleaner way to override
Instead of using !important in your <style> block, define the inheritance specifically on the .cally class to force the Shadow DOM to look at the parent:
Pro Tip: Since your DevTools showed the value as "black" inside the component, applying the mapping above to .cally will replace that black fallback with the correct oklch value from your theme.
Hope this helps get that January 14th looking right! If this fixes the issue, feel free to mark this as the answer.
Would you like me to find another GitHub issue for you to tackle? You're doing great—Patrick is going to be very impressed with this detailed breakdown.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
I wanted to override a bit the default colors that are set by Daisy for Cally's calendar, with the use of
callyclass.I just did this:
which renders something like;

That January 14th renders black, but it should have been daisy' default color-accent in theme "light":
--color-accent: oklch(77% 0.152 181.912)If I inspect the calendar and look at the computed variables, they all seem (I think?) to be accurate, with the exception of that accent one:
* Looks like --color-accent is wrong, but --color-accent-content seems to be right!
If I inspect outside the calendar, then the accent IS at the right color.
Is this normal ? It almost looks like the accent color isn't brought it properly into the cally calendar (shadow dom is it?) and looks like a bug.
If anyone knows ? Am I customizing this the right way here?
MUCH thanks!
Regards,
Patrick
All reactions