Saturation Slider
A copy-paste color pickers component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Color PickersHTMLCSSany framework
Copy into your project
HTML
<div class="nuda-satslide">
<div class="nuda-satslide__row">
<span>Sat</span>
<div class="nuda-satslide__track"
style="background: linear-gradient(90deg,#63636e,#62b6ff)">
<span class="nuda-satslide__thumb" style="left:75%"></span>
</div>
<span class="nuda-satslide__val">75</span>
</div>
<!-- Lightness row -->
</div>CSS
.nuda-satslide {
display: flex;
flex-direction: column;
gap: 8px;
padding: 10px;
background: rgba(255,255,255,.02);
border: 1px solid rgba(255,255,255,.06);
border-radius: 10px;
width: 100%;
max-width: 240px;
}
.nuda-satslide__row {
display: flex;
align-items: center;
gap: 8px;
color: #a0a0a8;
font-size: 10px;
font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
}
.nuda-satslide__row > span:first-child {
width: 18px;
color: #63636e;
}
.nuda-satslide__track {
position: relative;
flex: 1;
height: 6px;
border-radius: 99px;
cursor: pointer;
}
.nuda-satslide__thumb {
position: absolute;
top: 50%;
width: 14px;
height: 14px;
border-radius: 50%;
background: #fafafa;
border: 2px solid #0c0c10;
transform: translate(-50%,-50%);
box-shadow: 0 0 0 1px rgba(255,255,255,.4);
transition: transform .25s,left .35s cubic-bezier(.16,1,.3,1);
}
.nuda-satslide__thumb:hover {
transform: translate(-50%,-50%) scale(1.18);
}
.nuda-satslide__val {
width: 24px;
text-align: right;
color: #fafafa;
font-weight: 700;
font-variant-numeric: tabular-nums;
}
How to use Saturation Slider
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.