import { colors } from '../../theme/colors/colors' import { cn } from '../../utils/cn' import { Typography } from '../Typography' export default { title: 'Theme/Tokens', tags: ['!manifest'], } function isScale(obj: any) { return typeof obj === 'object' && obj !== null } const ColorSwatch = ({ name, value }: { name: string; value: string }) => (
{name} {value.toUpperCase()}
) const ColorGroup = ({ group, colors }: { group: string; colors: any }) => (
{group.charAt(0).toUpperCase() + group.slice(1)}
{isScale(colors) ? ( Object.entries(colors).map(([scale, value]) => ( )) ) : ( )}
) export const ColorPalette = () => (
{Object.entries(colors).map(([group, value]) => ( ))}
)