Mantine Example is Deprecated

plasmo-with-mantine example is deprecated. Mantine v7.0 no longer uses emotion or emotionCache.

I tried fixing by based on the Tailwind approach. It works well for the default Mantine, but not for custom themes and fonts:
import cssText from "data-text:@mantine/core/styles.css";
import "@mantine/core/styles.css";

export const getStyle = () => {
  const style = document.createElement("style")
  style.textContent = cssText
  return style
}

Can someone help me update the plasmo-with-mantine example? Thanks! ✌️

Resources:
- https://github.com/PlasmoHQ/examples/tree/main/with-mantine
- https://mantine.dev/changelog/7-0-0/
GitHub
🔰 Example projects that demonstrate how to use the Plasmo Framework and integrate with popular tools - PlasmoHQ/examples
React components and hooks library with native dark theme support and focus on usability, accessibility and developer experience
Version v7.0.0 | Mantine
Was this page helpful?