diff --git a/packages/docs/src/components/components.mdx b/packages/docs/src/components/components.mdx
new file mode 100644
index 000000000..07e6900f5
--- /dev/null
+++ b/packages/docs/src/components/components.mdx
@@ -0,0 +1,232 @@
+
+
+import { useTheme } from '@emotion/react'
+import {
+ Message,
+ NavLink,
+ Divider,
+ Container,
+ Box,
+ Button,
+ Card,
+ Text,
+ Paragraph,
+ Image,
+ Slider,
+ Label,
+ Flex,
+ Checkbox,
+ Select,
+ Textarea,
+ Radio,
+ Input,
+ Link,
+ Progress,
+ Badge,
+ Alert,
+} from 'theme-ui'
+
+export const Radii = () => {
+ const theme = useTheme()
+ if (typeof theme.radii === 'object') {
+ return (
+
+
+ Borders
+
+ {Object.keys(theme.radii).map((key) => (
+
+ {key}
+
+ ))}
+
+
+ )
+ }
+ return null
+}
+
+# Example components
+
+
+
+export const Buttons = () => {
+ const theme = useTheme()
+ if (typeof theme.buttons === 'object') {
+ return (
+
+
+ Buttons
+
+ {Object.keys(theme.buttons).map((key) => (
+
+ ))}
+
+
+ )
+ }
+ return null
+}
+
+
+
+---
+
+## Form elements
+
+ e.preventDefault()}
+ sx={{ width: '100%', maxWidth: '500px' }}>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+---
+
+## Links
+
+
+ Hello
+
+
+export const Badges = () => {
+ const theme = useTheme()
+ if (typeof theme.badges === 'object') {
+ return (
+
+
+ Badges
+
+ {Object.keys(theme.badges).map((key) => (
+
+ {key}
+
+ ))}
+
+
+ )
+ }
+ return null
+}
+
+
+
+export const Alerts = () => {
+ const theme = useTheme()
+ if (typeof theme.alerts === 'object') {
+ return (
+
+
+ Alerts
+
+ {Object.keys(theme.alerts).map((key) => (
+
+ {key}
+
+ ))}
+
+
+ )
+ }
+ return null
+}
+
+
+
+---
+
+## Navigation
+
+
+
+
+ Home
+
+
+ Blog
+
+
+ About
+
+
+
+
+---
+
+## Table
+
+
+
+
+ The table header |
+
+
+
+
+ The table body |
+ with two columns |
+
+
+
+
+---
+
+## Card
+
+
+
+ Cupcake ipsum dolor sit amet chocolate bar. Apple pie macaroon muffin jelly
+ candy cake soufflé muffin croissant. Gummies jelly beans cotton candy
+ fruitcake. Wafer lemon drops soufflé cookie. Sesame snaps fruitcake
+ cheesecake danish toffee marzipan biscuit.
+
+
+
+---
diff --git a/packages/docs/src/components/preset.js b/packages/docs/src/components/preset.js
index 49f9bfb33..580d38a0b 100644
--- a/packages/docs/src/components/preset.js
+++ b/packages/docs/src/components/preset.js
@@ -1,7 +1,7 @@
/** @jsx jsx */
-import { jsx, Themed, components } from 'theme-ui'
+import { Helmet } from 'react-helmet'
+import { jsx, Themed } from 'theme-ui'
import { ThemeContext } from '@emotion/react'
-import { MDXProvider } from '@mdx-js/react'
import * as presets from '@theme-ui/presets'
import {
TypeScale,
@@ -10,13 +10,19 @@ import {
ColorPalette,
FontFamily,
} from '@theme-ui/style-guide'
-import Lorem from './lorem.mdx'
+import Components from './components.mdx'
export default ({ preset: presetName }) => {
const preset = presets[presetName]
return (
+
+
+
Colors
@@ -34,10 +40,10 @@ export default ({ preset: presetName }) => {
Type Scale
-
-
-
- Raw JSON
+
+
+ Raw JSON
+