import { define, Styles } from '../../src'
import darkTheme from './darkTheme'
export const theme = darkTheme
export const Body = define('Body', {
base: 'body',
margin: 0,
padding: theme.spacing.xl,
fontFamily: theme.fonts.mono,
background: theme.colors.bg,
color: theme.colors.fg,
})
const Container = define('Container', {
maxWidth: 1200,
margin: '0 auto'
})
export const Header = define('Header', {
base: 'h1',
marginBottom: theme.spacing.xl,
color: theme.colors.fg,
fontSize: 28,
fontWeight: 400,
})
export const ExampleSection = define('ExampleSection', {
marginBottom: theme.spacing.xl,
parts: {
Header: {
base: 'h2',
marginBottom: theme.spacing.md,
color: theme.colors.fgMuted,
fontSize: 16,
fontWeight: 400,
}
},
render({ props, parts: { Root, Header } }) {
return (