Skip to content

Commit

Permalink
fix(example): theming
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Mar 21, 2020
1 parent ef443c4 commit 06c435a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/example/src/components/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { graphql, useStaticQuery } from 'gatsby';
import { defaultTheme } from 'glaze';
import React from 'react';
import { Helmet } from 'react-helmet';
import { TreatProvider } from 'react-treat';

import theme from '../gatsby-plugin-treat/theme.treat';

export interface LayoutProps {
children: React.ReactNode;
}
Expand All @@ -29,7 +30,7 @@ export function Layout({ children }: LayoutProps): JSX.Element {
<meta name="description" content={data.site.siteMetadata.description} />
</Helmet>

<TreatProvider theme={defaultTheme}>
<TreatProvider theme={theme}>
<header>{/* TODO */}</header>

<main>{children}</main>
Expand Down
4 changes: 4 additions & 0 deletions packages/example/src/gatsby-plugin-treat/theme.treat.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { defaultTheme } from 'glaze';
import { createTheme } from 'treat';

export default createTheme(defaultTheme);

0 comments on commit 06c435a

Please sign in to comment.