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
This appears to occur because the shadow CSS variables (have sizes) are generated in the root,
but refer to shadow color CSS variables that do not exist in the root.
This discussion was converted from issue #2640 on May 30, 2024 10:29.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
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
-
Description
As stated in the title.
The documentation mentions
shadowColor
but it doesn't work as expected.ref: https://panda-css.com/docs/utilities/effects#box-shadow
It's convenient to be able to change it like Tailwind CSS.
ref: https://tailwindcss.com/docs/box-shadow-color
NOTE: Tailwind CSS has 3 shadows
Link to Reproduction
https://stackblitz.com/edit/vitejs-vite-zjktub?file=src%2FApp.tsx&terminal=dev
Panda CSS Version
0.40.0
Additional Information
I tried applying the CSS variables using the preset with reference to the code below,
but it didn't work.
https://github.com/chakra-ui/panda/blob/%40pandacss/core%400.40.0/packages/preset-panda/src/shadows.ts#L1-L9
I wrote a code like this:
This appears to occur because the shadow CSS variables (have sizes) are generated in the root,
but refer to shadow color CSS variables that do not exist in the root.
I think this can be resolved by making
shadowSize
a variable.archived
This does not support multiple shadows.
Beta Was this translation helpful? Give feedback.
All reactions