body { font-family: sans; background-color: #fbfbfb; margin: auto; max-width: 20em; } h1 { text-align: center; } .preview { width: 50%; margin-left: auto; margin-right: auto; } .hex { text-align: center; margin-top: 0.5em; } fieldset { margin-bottom: 1em; margin-top: 1em; } .color-block { width: 100%; aspect-ratio: 1; border: 1px black solid; } .slider { display: grid; grid-template-columns: 35% max-content; grip-gap: 1em; }