Weird color change from production to developement?
Hi, I've recently encountered one of the weirdest things in some time.
On my development build of my nextJS 13 app (t3-stack) I am using the following color code:
#F9C74F
in a css file. Also on inspect element it shows that color code.
On my production build that exact same color code in inspect element is shown as: rgb(128, 93, 11);
How is this even possible and how can I fix this? I can find no resources on google about this and I don't even know where to look.26 Replies
First screenshot is production, second one is development
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Hmm same issue
This is the css in question:
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Well I have 10 total childs all with different colors
and all of the colors of these childs get changed to rgb values instead of their original hex values
This is the inspect element of the 10th child
Something weird is happening to it
The hex value is canceled out for this weird rgb value
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
It's a private repo
Trying in both firefox and chrome
I have no inline styling on these elements... but it seems something is adding this new background-color which overwrites the original hex value
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ye
Wait just tested in edge and there it's correct the values
in chrome its exact same as firefox
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yeah
this is in edge
this is so weird lol
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
oh wait
oh
oh
oh
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
about that
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Hahah
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I'm so dumb. Alright thank you so much!
yep
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Yeah I never have
the reason is
I am running on port 3001 for a change, cus my production needs to run on port 3001
normally I run on port 3000
So it totally slipped my mind
Thank you for your help! Have a nice day
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View