import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { Meta, StoryObj } from '@storybook/react';
import React from 'react';
import { Typography as TypographyComponent } from '../../components/Typography';
import { ColorTokens } from '../Colors';
import { TypographyTokens } from './types';
const Grid = styled('div')`
display: grid;
gap: 16px;
grid-template-columns: 1fr;
z-index: 1;
`;
const AllTypography: React.FunctionComponent<{
colorToken: ColorTokens;
}> = ({ colorToken }) => {
const { typography } = useTheme();
return (
{Object.keys(typography).map((key) => (
{key}
))}
);
};
export default {
component: AllTypography,
title: 'Foundation/Typography',
} as Meta;
export const TypographyStory: StoryObj = {
args: {
colorToken: 'white100',
},
};