Pigment-CSS: Material-UI Fixed on NextJS and React 19

Sdílet
Vložit
  • čas přidán 28. 06. 2024
  • Material-UI has come out with a new CSS in JS build-time ilbrary that supports CSS any way you want to specify it. It's also themeable! Is this the best CSS library for NextJS and React 19? Let's find out!
    💻 Code: arc.net/l/quote/lazrkxqd
    Pigment CSS: github.com/jherr/material-ui/...
    👉 Upcoming NextJS course: pronextjs.dev
    👉 Don't forget to subscribe to this channel for more updates: bit.ly/2E7drfJ
    👉 Discord server signup: / discord
    👉 VS Code theme and font? Night Wolf [black] and Operator Mono
    👉 Terminal Theme and font? oh-my-posh with powerlevel10k_rainbow and SpaceMono NF
    0:00 Introduction
    1:11 Example App Setup
    3:46 Creating CSS Classes
    6:20 Styled Components Support
    11:56 Theming
    15:15 Outroduction
  • Věda a technologie

Komentáře • 25

  • @thecodecatalyst
    @thecodecatalyst Před 3 měsíci +9

    A wild CSS library appears!

  • @firstprincipleslearning
    @firstprincipleslearning Před 3 měsíci +3

    Great content as always, I am waiting with my ccard in my hand for your course :D

  • @dc33333
    @dc33333 Před 2 měsíci +1

    Wow!!! Production graphics are stunning!!!

  • @codernerd7076
    @codernerd7076 Před 3 měsíci +13

    Sticking to Shadcn, used Material UI before but had so many issues updating, Next.js that I will not use it again.

  • @carlosricardoziegler2650
    @carlosricardoziegler2650 Před 3 měsíci +3

    Really nice ! I lke schadcn but miss my styled components :)

  • @BenjaminSolum
    @BenjaminSolum Před 3 měsíci

    I really like where this library is headed. Hopefully we'll see an Atomic output option like Linaria!

  • @adloltery
    @adloltery Před 3 měsíci +3

    Hello Jack, I was wondering if you could please share what React extensions you use in VScode

  • @arzievsultan
    @arzievsultan Před 3 měsíci +3

    Thanks!

    • @jherr
      @jherr  Před 3 měsíci

      Wowzers. Thank yoU!

  • @jeremytenjo
    @jeremytenjo Před 3 měsíci +6

    MUI ❤

  • @jucianocarvalho
    @jucianocarvalho Před 3 měsíci +1

    Rsbuild has a plugin that do the exactly same thing with styled components

  • @Technology_Forum
    @Technology_Forum Před 3 měsíci +1

    What are the different notable vscode plugins you are using

  • @julianklumpers
    @julianklumpers Před 3 měsíci

    can you use this in MUI v5? as a replacement or something?

    • @LuisVazquez-ky7yb
      @LuisVazquez-ky7yb Před 3 měsíci

      I don't understand the title either. I thought they fixed it but he didn't show anything on mui

    • @olivtassinari
      @olivtassinari Před 3 měsíci +8

      Material UI v5 works with Next.js App Router, and also with suspend streaming.
      We are working on Pigment CSS because we want to drastically improve the runtime performance of Material UI but without forcing a costly migration. The goal is to have this as backward-compatible as possible with Emotion. None of the existing solutions we could test or were aware of would deliver this, so we had to create this library.
      As a side win, this allows us to support RSC for layout components. To be fair, it looks like we could contribute RSC to Emotion (using React.cache()) but not sure if it's worth the opportunity cost yet.

    • @tharindurajarathna
      @tharindurajarathna Před 3 měsíci

      ​@@olivtassinarican you update the material ui documentation with some examples?

    • @olivtassinari
      @olivtassinari Před 3 měsíci +1

      ​@@tharindurajarathnawe will document it, we are still very much dogfooding it right now. It's in the early preview stage.

  • @xxXAsuraXxx
    @xxXAsuraXxx Před 3 měsíci +2

    Coming from styled components, I am trying to achieve same thing with just Tailwind css. So far its going good :)

  • @FeFeronkaMetallica
    @FeFeronkaMetallica Před 3 měsíci +1

    But this is not out yet?

    • @olivtassinari
      @olivtassinari Před 3 měsíci +3

      It's in an early preview phase, v0.0.1. We will share more updates as it gets closer to production. We want this to be at least opt-in in Material UI v6 😄

    • @FeFeronkaMetallica
      @FeFeronkaMetallica Před 3 měsíci +6

      @@olivtassinari I will definitelly switch once it is production ready. I have been keeping an eyy on updates from MUI

  • @rrAzz
    @rrAzz Před 3 měsíci

    It's just another css-in-js library, nothing to compare with MUI 👎

    • @jherr
      @jherr  Před 3 měsíci +1

      It's from MUI. It probably what the next version of MUI will be built on so that it will be compatible with both RSC and non-RSC frameworks.

    • @mui-jose
      @mui-jose Před 3 měsíci

      Exactly,@@jherr!

    • @coherentpanda7115
      @coherentpanda7115 Před 3 měsíci

      It's basically a replacement for Styled Components and (Emotion underneath) since those devs don't seem intent on a version 7 that is app router ready anytime soon. It looks straightforward and light, which is great.