Theme Preset not loading all the styles:
See original GitHub issueHi I was wondering why all the theme presets I’m trying to load are not loading completely, the thing is that I’m trying to build a simple app using theme ui with the deep
preset and it seems that not all colors are being loaded
To Reproduce theme.js
import { deep } from '@theme-ui/presets'
export default {
...deep,
styles: {
...deep.styles,
},
}
Inject the theme provider in the root of the app.
import React from 'react';
import { ThemeProvider } from 'theme-ui'
import theme from './theme'
import AppRouter from './router/AppRouter';
function App() {
return (
<ThemeProvider theme={theme}>
<AppRouter />
</ThemeProvider>
);
}
export default App;
Run the app shows me the correct backgroung but it seems that links don’t style properly.
Body styles looks like this, I think it should have more style properties
Expected behavior I expect the preset to behave like the theme-ui doc page:
Currently repo is not on github but if you want me to upload it I will do it.
I’m using react-create-app not gatsby
Versions
"theme-ui": "^0.3.1"
"@theme-ui/presets": "^0.3.0",
Also using @emotion/core
and @emotion/styled
if that’s relevant.
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (1 by maintainers)
Top GitHub Comments
I usually “just” log the result of
useThemeUI
hookor you check out the source
Uh I see you mean the css custom properties should be at least defined 🤔 yea my
body
looks like this