import * as React from 'react'; import { storiesOf } from '@storybook/react'; import Color from '.'; import * as tokens from '../../tokens'; import { hexToRgba, hexToHsl, hexToRgb } from '../../utils/converters'; (storiesOf('Colors', module) as any).addWithJSX('Rapha Color Pallet', () => { return (
{tokens.colors.tokens.map((token: any) => { const color = { ...token, hex: token.value, hsl: hexToHsl(token.value), rgb: hexToRgb(token.value), rgba: hexToRgba(token.value) }; return ; })}
); });