<p class="codepen" data-height="300" data-default-tab="html,result" data-slug-hash="MWXproO" data-user="argyleink" style="height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">
    <span>See the Pen <a href="https://codepen.io/argyleink/pen/MWXproO">
            Color Picker gradient with CSS</a> by Adam Argyle (<a href="https://codepen.io/argyleink">@argyleink</a>)
        on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://cpwebassets.codepen.io/assets/embed/ei.js"></script>
.cp_embed_wrapper {
    overflow: hidden;
    resize: both;
    block-size: 300px;
    min-width: 320px;
    margin-inline: auto;
    padding: 10px;
    background: #eee;
    border: 1px solid gray;
    box-shadow: 0 8px 12px rgba(0 0 0 / 0.175);
}
.cp_embed_wrapper > iframe {
    height: 100%;
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.