render(() => {
return bf.Bluefish(
bf.StackV({spacing: 32},
bf.Text({ 'font-size': 48 }, 'Complementary Colors'),
bf.StackV({spacing: 24}, ForEach([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], (i, _) => {
return (
bf.Background({ padding: 20, background: bf.Rect( { fill: 'none', stroke: '#D4D4D4', 'stroke-width': 1, rx: 3})},
bf.StackV({spacing: 8},
ColorSwatch({ colors: groupedColors[i+5]}),
ColorSwatch({ colors: groupedColors[complementaryColors[i][1]+5]}),
)
)
)
}))
)
)
})