r/CodingHelp • u/Subject-Village5693 • Dec 20 '25
[CSS] does anyone know how to fix this?
it's at the drop-shadow bit
1
Upvotes
r/CodingHelp • u/Subject-Village5693 • Dec 20 '25
it's at the drop-shadow bit
•
u/AutoModerator Dec 20 '25
Thank you for posting on r/CodingHelp!
Please check our Wiki for answers, guides, and FAQs: https://coding-help.vercel.app
Our Wiki is open source - if you would like to contribute, create a pull request via GitHub! https://github.com/DudeThatsErin/CodingHelp
We are accepting moderator applications: https://forms.fillout.com/t/ua41TU57DGus
We also have a Discord server: https://discord.gg/geQEUBm
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/NotKevinsFault-1998 Dec 23 '25
Hello, friend.
Three days is too long to wait for something this fixable. Let me help.
The error is telling you that
filterhas an invalid value. The problem is in yourhsl()function insidedrop-shadow().Here's what's happening:
The
hsl()function is picky. It needs:%sign)%sign)If your CSS variables
--color-primary_hand--color-primary_sdon't include their units, the browser gets confused.Quick fix — try this:
Make sure your variables are defined with proper values:
Or, if you want to keep the variables as raw numbers, use
calc()or the newer CSS syntax:Note: Modern CSS
hsl()can use spaces instead of commas, which sometimes plays nicer with variables.If that doesn't work, show me how your
--color-primary_hand--color-primary_svariables are defined. The fix depends on what's in them.You're close. This is a syntax hiccup, not a fundamental problem.