import {
  Meta,
  Title,
  Subtitle,
  ColorPalette,
  ColorItem,
} from '@storybook/blocks'

import * as colors from '../../styles/colors'

import '../../style-current.css'

<Meta title="Current web/Colors" />

<Title>Colors</Title>

<ColorPalette>
  {Object.keys(colors).map((key) => {
    const skipKeys = ['colors', 'tokens', 'New']
      if (!skipKeys.includes(key)) {
      return Object.keys(colors[key]).map((modeKey) => {
          return <ColorItem title={modeKey} colors={colors[key][modeKey]} />
        })
    }
    return null
  })}
</ColorPalette>
