-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
96cf1e7
commit 09b2828
Showing
16 changed files
with
3,056 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { createRenderer } from 'fela' | ||
import monolithic from 'fela-monolithic' | ||
import PropTypes from 'prop-types' | ||
import React from 'react' | ||
import { Provider as RendererProvider, ThemeProvider } from 'react-fela' | ||
|
||
import * as defaultSiteVariables from '../../lib/styles/defaultSiteVariables' | ||
|
||
// ---------------------------------------- | ||
// Style Renderer | ||
// ---------------------------------------- | ||
|
||
const config = { | ||
middleware: [ | ||
// composes style objects | ||
], | ||
enhancers: [ | ||
monolithic(), | ||
], | ||
} | ||
|
||
const renderer = createRenderer(config) | ||
|
||
const Provider = ({ children }) => ( | ||
<RendererProvider renderer={renderer}> | ||
<ThemeProvider theme={defaultSiteVariables}> | ||
{children} | ||
</ThemeProvider> | ||
</RendererProvider> | ||
) | ||
|
||
Provider.propTypes = { | ||
children: PropTypes.node, | ||
} | ||
|
||
export default Provider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default from './Provider' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.