glass
Tinted glass with a fresnel rim and one highlight. The original look, and the dark default.
Add the script once, then use the tags anywhere.
<script type="module" src="https://mmaxence.github.io/solids/solids.js"></script>
Or copy the library into your project: download solids.js from the repo and serve it yourself. No build step, no other files.
Notes
The original solids look: a translucent tinted body, a bright fresnel rim and one specular highlight. In the light theme it turns into pale tinted glass with a darker rim. No parameters.
<sd-scene shading="glass">
<sd-orb color="color(display-p3 0.55 0.85 1)"></sd-orb>
</sd-scene>Put shading="glass" on a scene to shade every object in it, or on one object. Compare all shades on the Shades page.
License
MIT. Use it anywhere, credit appreciated.