как-то так получилось
.palette-small {
display: flex;
}
.part {
display: flex;
}
.palette-box:first-child .palette-small {
flex-direction: column;
padding-top: 12px;
}
.palette-box:first-child .color-3,
.palette-box:first-child .color-4 {
width: 10px;
align-self: center;
}
.palette-box:first-child .color-3 {
order: -1;
}
.palette-box:first-child .color-4 {
order: 3;
}
.palette-box:first-child .color-2 {
order: 2;
}
.palette-box:nth-child(2) .palette-small {
flex-direction: column-reverse;
justify-content: space-between;
padding-top:5px;
}
.palette-box:nth-child(2) .palette-small .color-1,
.palette-box:nth-child(2) .palette-small .color-2,
.palette-box:nth-child(2) .palette-small .color-6,
.palette-box:nth-child(2) .palette-small .color-4 {
width: 10px;
}
.palette-box:nth-child(2) .palette-small .color-2,
.palette-box:nth-child(2) .palette-small .color-6 {
align-self: flex-end;
}
.palette-box:nth-child(3) .palette-small .part:first-child {
flex-direction: column;
justify-content: space-between;
}
.palette-box:nth-child(3) .palette-small .part:last-child {
flex-direction: column;
justify-content: space-between;
margin-left: 69px;
}
.palette-box:nth-child(4) .palette-small .part:last-child {
flex-direction: column-reverse;
justify-content: space-between;
margin-left: 41px;
}