Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After updating the fonts are not properly resolved #2458

Open
kevinfoerster opened this issue Nov 18, 2023 · 1 comment
Open

After updating the fonts are not properly resolved #2458

kevinfoerster opened this issue Nov 18, 2023 · 1 comment

Comments

@kevinfoerster
Copy link

Describe the bug
It look like generally theme ui is working i updated from 0.14.7 to 0.16.1 but fonts are not correclty rendered, checking the resulting css, it looks like the names instead of its values are applied.

my theme defines fonts like this:

{
...
fonts : {
  body: 'Merriweather Sans',
  heading: 'Merriweather Sans',
},
text: {
  dateline: {
    fontFamily: 'body',
    textTransform: 'uppercase',
    fontWeight: 'light',
    color: 'dateline',
    pb: 2,
    display: 'block',
},
...
}

Expected behavior
font-family should not show heading but Merriweather Sans instead!

Screenshots

CleanShot 2023-11-19 at 00 31 01@2x

Additional context
this project uses the latest gatsby version and the follwing relevant dependencies:

    "theme-ui":"0.16.1",
    "gatsby-plugin-theme-ui":"0.16.1",
    "@emotion/react": "^11.11.1",
    "@fontsource/merriweather-sans": "5.0.8",
    "@mdx-js/react ": "1.6.22",
    "@theme-ui/mdx":"0.16.1",
@hasparus
Copy link
Member

This seems like there's a version mismatch on either Theme UI or Emotion's React Context.
Could you post your lockfile?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants