Closed boskiv closed 2 years ago
Hey @boskiv,
It looks like you're merging the fontFamilies
object incorrectly. The correct place would be at the root level, i.e.
const theme = merge(defaultTheme, {
fontFamilies: {
display: "IBM Plex Sans",
ui: "IBM Plex Sans",
mono: "IBM Plex Mono"
}
});
If you're using TypeScript, I would recommend upgrading to v6.7.0 or higher. There is a mergeTheme
function that provides a type-safe way to merge on custom theme values to ensure they still match the expected shape.
Here's an example CodeSandbox that demonstrates it (should be very similar to what you already have!) https://codesandbox.io/s/evergreen-issues-1403-0cp3q?file=/src/App.tsx
App
Header