The Prism Form
Input passes through a prism and splits into spectral colors
The Prism Form
by FreeCsStyles Dev's
ModernCSS
🌐HTML/CSS
#prism#spectrum#light#refraction
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/prism.
<iframe src="/embed/prism" sandbox="allow-scripts" loading="lazy" title="The Prism Form" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for The Prism Form. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.
HTML
<div class="prism-form">
<canvas class="spectrum-canvas"></canvas>
<div class="field">
<label style="color: #ef4444">Wavelength 1</label>
<input type="text" placeholder="Enter through the prism...">
</div>
</div>CSS
.prism-form {
padding: 2rem;
background: linear-gradient(180deg, #0a0a14, #050510);
border-radius: 16px;
}
.spectrum-canvas {
width: 100%;
height: 160px;
margin-bottom: 1rem;
}
.field label {
font-size: 10px;
font-weight: 700;
letter-spacing: 0.15em;
text-transform: uppercase;
}Topics
- #prism
- #spectrum
- #light
- #refraction