import * as React from 'react';
import * as ReactDOM from 'react-dom';
import {
Logo,
Lockup,
Input,
View,
Monterey,
Button,
LinkButton,
GhostButton,
Text,
useTheme,
} from './src';
const Swatch = ({ color, children }) => {
return (
{children}
);
};
const Swatches = ({ debug = true }) => {
const theme = useTheme();
return (
{theme.colors &&
Object.entries(theme.colors)
.reverse()
.map(([color, code]) =>
typeof code === 'object' && debug ? (
{Object.entries(code).map(([n, c]) => (
{color}.{n}
))}
) : (
{color}
),
)}
);
};
const App = () => (
dude
foo
ghost
ghost primary
ghost alt
ghost
normal
primary
alt
default
-2r
-2u
-1r
-1b
1r
1b
2r
2b
3
4
5
6
Inputs
);
const container = document.body;
ReactDOM.render(, container);