import { blue, blueDark, gray, grayDark, green, greenDark, red, redDark, yellow, yellowDark, } from '@tamagui/colors' import { H2, Paragraph, Separator, Square, XStack, YStack } from 'tamagui' const colorGroups = ['gray', 'blue', 'green', 'yellow', 'red'] as const const lightColors = { gray, blue, green, yellow, red, } const darkColors = { gray: grayDark, blue: blueDark, green: greenDark, yellow: yellowDark, red: redDark, } export function ColorsDemo() { return ( ) } type ColorSet = Record function ColorsRow({ title, colorSets, }: { title: string colorSets: Record<(typeof colorGroups)[number], ColorSet> }) { return (

{title}

{colorGroups.map((groupName) => { const colorSet = colorSets[groupName] const colors = Object.values(colorSet) return ( {colors.map((color, index) => { return ( ) })} ) })} {new Array(13) .fill(0) .slice(1) .map((_, index) => { return ( {index} ) })} {colorGroups.map((name) => ( {name} ))}
) }