diff --git a/src/elements/typography/README.md b/src/elements/typography/README.md new file mode 100644 index 0000000..69980cc --- /dev/null +++ b/src/elements/typography/README.md @@ -0,0 +1,16 @@ +# Typography +```html +
+

H1

+

H2

+

H3

+

H4

+
H5
+
H6
+ H7 +

P

+
+``` + +### Description +This is the base typography alignment and spacing. diff --git a/src/elements/typography/index.js b/src/elements/typography/index.js new file mode 100644 index 0000000..ccf6b7a --- /dev/null +++ b/src/elements/typography/index.js @@ -0,0 +1,16 @@ +import { PropTypes } from "react"; + +const Typography = () => ( +
+

H1

+

H2

+

H3

+

H4

+
H5
+
H6
+ H7 +

P

+
+ ); + +export default Typography; diff --git a/src/elements/typography/index.story.js b/src/elements/typography/index.story.js new file mode 100644 index 0000000..0566991 --- /dev/null +++ b/src/elements/typography/index.story.js @@ -0,0 +1,21 @@ +import { storiesOf } from "@kadira/storybook"; +import backgrounds from "react-storybook-addon-backgrounds"; +import withReadme from "storybook-readme/with-readme"; +import centered from "../../../.storybook/decorators/centered"; +import defaultColors from "../../defaults"; + +import Typography from "./index"; +import Readme from "./README.md"; + +const story = storiesOf("Typography", module) + .addDecorator(centered) + .addDecorator(backgrounds(defaultColors())); + +story.add( + "Typography", + withReadme(Readme, + () => ( + + ) + ) +);