Closed avevlad closed 4 years ago
import { ThemeProvider, createTheme } from 'hacker-ui'
const theme = createTheme()
const App = () => (
<ThemeProvider theme={theme}>
...
</ThemeProvider>
)
This worked for me, in version 0.1.0
edit: clarified version used
Hey @avevlad, try using the ThemeProvider from 'hacker-ui' instead of 'react-style-system':
import { ThemeProvider } from 'hacker-ui'
@avevlad My apologizes for the incorrect docs. Follow the advice from @tompeace and @pearlzhuzeng and import the theme provider from hacker-ui
instead of react-style-system
and it should work.
I flipped the switch on the docs new docs a bit pre-maturely because the docs of next version of hacker-ui (i.e. v0.2.0
) has much better performance and is mobile friendly.
However, v0.2.0
is still unreleased and I haven't audit the docs 😅. I'll update them today along with some patches.
Thanks a bunch for pointing this out!
@avevlad I updated the documentation and it's now live at hacker-ui.com. Please feel free to open any similar issues!
Code: