You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
606 B
24 lines
606 B
import React from "react";
|
|
import { Color } from "utils/Color";
|
|
|
|
import styles from "./ColorPalette.module.css";
|
|
|
|
export function ColorPalette() {
|
|
return (
|
|
<>
|
|
<h2>Color Palette</h2>
|
|
<div className={styles.wrapper}>
|
|
{Object.entries(Color).map(([colorName, colorCSSName]) => (
|
|
<div key={colorName} className={styles.item}>
|
|
<div
|
|
className={styles.box}
|
|
style={{ backgroundColor: colorCSSName }}
|
|
key={colorName}
|
|
/>
|
|
<span>{colorName}</span>
|
|
</div>
|
|
))}
|
|
</div>
|
|
</>
|
|
);
|
|
}
|
|
|