Skip to content

Commit

Permalink
Add typography presets and examples to Storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmockett committed Mar 11, 2024
1 parent cc58a40 commit c64629d
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 323 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import { css } from '@emotion/react';
import * as presets from './presets';
import { space } from '../space/space';
import { palette } from '../colour/palette';

const listCss = css`
list-style: none;
padding: 0;
li + li {
margin-top: ${space[4]}px;
padding-top: ${space[4]}px;
border-top: 1px solid ${palette.neutral[86]};
}
`;

export const TypographyPresets = () => (
<ul css={listCss}>
{Object.entries(presets).map(([preset, styles]) => (
<li>
<span
css={css`
display: block;
`}
>
{preset}
</span>
<span
css={css`
${styles}
`}
>
For facts' sake
</span>
</li>
))}
</ul>
);

This file was deleted.

Loading

0 comments on commit c64629d

Please sign in to comment.