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
View all comments
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.