Made List more extensible

This commit is contained in:
knownotunknown
2024-02-10 15:09:49 -06:00
parent b57415c846
commit 14a90f3dc0
6 changed files with 152 additions and 80 deletions

View File

@@ -95,7 +95,7 @@ export const Variants: Story = {
),
};
const colors = Object.keys(theme.colors)
export const test_colors = Object.keys(theme.colors)
// check that the color is a colorway (is an object)
.filter(color => typeof theme.colors[color] === 'object')
.slice(0, 17)
@@ -104,7 +104,7 @@ const colors = Object.keys(theme.colors)
export const AllColors: Story = {
render: props => (
<div className='grid grid-rows-9 grid-cols-2 grid-flow-col max-w-2xl w-90vw gap-x-4 gap-y-2'>
{colors.map((color, i) => (
{test_colors.map((color, i) => (
<PopupCourseBlock key={color.primaryColor} course={exampleCourse} colors={color} />
))}
</div>