from Hacker News

Material Web Components for React (MUI Alternative)

by bazaz on 8/9/24, 7:50 AM with 5 comments

  • by bazaz on 8/9/24, 7:50 AM

    Hey hn, I've built a performant, compact and composable Material library for React. It's based off of @material/web's official Web Components implementation.

    I am to use Tailwind as a styling engine, and I want to make it installable in-project, like shadcn. Kind of like a lightweight alternative to MUI.

    btw I'm already using this in a production project. Looking forward to your thoughts.

  • by andrico on 8/9/24, 10:35 AM

    This is cool.

    Quick question, how are you implementing the Tailwind styles? I'm assuming that the material/web use the shadow DOM to encapsulate styles, and therefore allow customised using CSS variables.

    So I'm a little confused why the global tailwind CSS seems to work

  • by Akash_deshmukh on 8/9/24, 8:07 AM

    Thnaks for sharing!