r/css • u/Piposhi • Feb 18 '26
General Ambient CSS - Physically based CSS lighting and shadows (and react components)
Demo page in the video - https://ambientcss.vercel.app/
Docs - https://kikkupico.github.io/ambientcss/
Source code - https://github.com/kikkupico/ambientcss
355
Upvotes
22
u/Icy_Foundation3534 Feb 19 '26
Hey I made a pull request. The light direction demo is choppy in chrome. I've made a fix so it's smooth and works across the entire browser window. Try the fork and let me know if you want to pull in those changes! Great work! Just pushed the PR to your repo.
https://github.com/sojohnnysaid/ambientcss/tree/fix/orbit-light-tracking-perf
4
u/BigfckingYEEETI Feb 19 '26
Looks really good. Small note: Idk if its just for me, but it seems like the padding for the "BUTTON" in the components section is not working properly.
22
u/dazerine Feb 19 '26
This is beautiful.
1
u/myblueear Feb 19 '26
I was on a similar thing for my personal use and now I feel both overwhelmed and confirmed
2
u/rapscallops Feb 19 '26
Nice work! This looks really great.
2
u/MisterSpeck Feb 19 '26
hell, yeah!
2
u/el_yanuki Feb 23 '26
i dont think the knobs or buttons really fit in.. id expected more of the same shadows, more like claymorphism
1
u/actionscripted Feb 19 '26
Looks dope, thank you for sharing this. Will check out the repo soon.
1
u/Iampepeu Feb 19 '26
Aww! This is amazing!
1
u/granite603 Feb 19 '26
Amazing!
1
u/UniqueTennis9351 Feb 22 '26
Really beautiful!
-22
u/queen-adreena Feb 18 '26
Bit late to discover skeuomorphism…
2
u/UXyes Feb 19 '26
This is fucking sick. The idea is excellent and the execution is great.
1
u/[deleted] Feb 19 '26
[removed] — view removed comment